Compare commits

..

2121 Commits

Author SHA1 Message Date
jband%netscape.com
bc463ac08f small changes based on shaver's (partial) review
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94219 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 06:30:41 +00:00
mstoltz%netscape.com
5c88b66fdb Changed nsScriptSecurityManager to use new prefs APIs because caps was
unable to read prefs otherwise. Also made some default security policy changes.


git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94215 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 04:22:45 +00:00
jst%netscape.com
fe73648baa Get the JSContext from the callcontext in stead of from the context stack service since we have the callcontext in most cases.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94183 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 00:49:57 +00:00
jst%netscape.com
9202a315dc Making the JS only version of window.prompt() call into the non JS version of window.prompt().
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94166 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 00:04:34 +00:00
jst%netscape.com
1278715cd3 Don't assert about invalid finalize calls if we haven't been properly initialized, only warn.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94156 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 23:25:28 +00:00
peterv%netscape.com
fb0edb21a4 Add/remove files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94145 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 22:13:51 +00:00
jst%netscape.com
e9d6a80ce4 Making changes suggested by Steve Morse in his review feedback.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94132 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 20:20:03 +00:00
jst%netscape.com
8ee5e14c6c null string fun...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94121 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 10:50:12 +00:00
jst%netscape.com
2eed752846 Since we don't have support for null DOMString's we'll haveto use XPConnect in window.prompt() to null out the return value.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94120 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 10:46:03 +00:00
jst%netscape.com
52c2f74719 Making SetDOMStringToNull() trunkate the string for now.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94119 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 10:37:00 +00:00
jst%netscape.com
5dec0b3919 Hmm, I got that completely backwards.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94118 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 10:01:16 +00:00
jst%netscape.com
45d59093b8 Use the correct error code...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94117 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 09:52:23 +00:00
jst%netscape.com
2a1de23383 Adding DOMStringIsNull() check to check if the pseudo tag passed to getComputedStyle() is null, and doing lot's of whitespace cleanup.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94116 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 09:48:48 +00:00
jst%netscape.com
e2c7780e5b Adding inline DOMString null setting and getting helper methods.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94115 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 09:30:45 +00:00
jst%netscape.com
491139b697 This shouldn't have been checked in, and it's not need any more.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94112 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 08:55:53 +00:00
jst%netscape.com
2526ea23dc Adding/removing dom Makefile's...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94111 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 08:46:32 +00:00
jst%netscape.com
6f82d9712d Removing unused files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94110 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 08:42:22 +00:00
jst%netscape.com
0d7ae6bb1d Don't #include nsDOMPropEnums.h any more.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94109 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 08:39:17 +00:00
jst%netscape.com
ddea539d52 Reorganizing security checking code.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94108 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 08:34:53 +00:00
jband%netscape.com
99b0325c7b fiddling with whitespace and vanity comments
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94101 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 06:34:07 +00:00
jst%netscape.com
fee69c2e06 Cleanup...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94100 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 05:55:01 +00:00
mstoltz%netscape.com
d41f67bf9c Added back nsISecurityCheckedComponent support, added security checks
to global window helper, fixed some JS stack bugs in SSM.


git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94097 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 02:59:16 +00:00
jst%netscape.com
a8fc166b85 Updating license header.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94085 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-06 12:45:05 +00:00
jst%netscape.com
e3856339b1 Updating license header.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94084 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-06 12:36:38 +00:00
jst%netscape.com
d0cdf27237 Updating license header in idl files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94083 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-06 12:34:19 +00:00
jst%netscape.com
d75597e04f Removing nsIDOMClassInfo since it was only used as a namespace for the dom classinfo id's
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94051 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 13:07:42 +00:00
jst%netscape.com
9d85cccad0 We don't need nsDOMPropEnums.h here any more.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94050 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 13:02:24 +00:00
jst%netscape.com
d9b839502d Oops, this must have crept in during the merge.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94044 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 09:29:20 +00:00
jst%netscape.com
983a63d9f0 #include jsapi.h rather than forward declaring JSObject.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94043 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 09:22:42 +00:00
jst%netscape.com
61857ea0c0 Use MODULE=dom and XPIDL_MODULE=dom_xxx
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94042 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 09:21:09 +00:00
jst%netscape.com
3d88d9fbcf Renaming nsIScriptExternalNameSet::InitializeClasses to ::InitializeNameSet.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94040 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 08:02:49 +00:00
jst%netscape.com
dc6a19d888 Make the dom makefile.win's use MODULE=dom and XPIDL_MODULE=dom_xxx
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94036 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 07:42:51 +00:00
jband%netscape.com
6280ec2afc fixing nsSidebar to work as a DOM_OBJECT (as far as the caps system is concerned)
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94021 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 03:40:08 +00:00
jband%netscape.com
2b51f248c8 switching over to use the exception service. My hacks to the code from MarkH@activestate.com
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94020 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 03:18:03 +00:00
jst%netscape.com
91dc92be0c Merging in changes between MOZILLA_0_9_2001042510_BASE and XPCDOM_20010502_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@94017 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 02:39:31 +00:00
jst%netscape.com
42735431ab Merging in changes between MOZILLA_0_9_2001042510_BASE and XPCDOM_20010502_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93982 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 22:33:37 +00:00
jst%netscape.com
d397d500ff Merging in changes between MOZILLA_0_9_2001042510_BASE and XPCDOM_20010502_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93974 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 22:12:35 +00:00
jst%netscape.com
910f29ad9a Merging in changes between MOZILLA_0_9_2001042510_BASE and XPCDOM_20010502_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93971 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:55:34 +00:00
jst%netscape.com
04106e957b Merging in changes between MOZILLA_0_9_2001042510_BASE and XPCDOM_20010502_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93968 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:43:24 +00:00
(no author)
5e32d2ffdc This commit was manufactured by cvs2svn to create branch
'XPCDOM_20010329_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93966 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:39:12 +00:00
jst%netscape.com
1134ba5186 Merging in changes between MOZILLA_0_9_2001042510_BASE and XPCDOM_20010502_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93963 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:32:52 +00:00
jst%netscape.com
8ee241a9c1 Removing unused file.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93960 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:30:36 +00:00
jst%netscape.com
e93977bba2 Merging in changes between MOZILLA_0_9_2001042510_BASE and XPCDOM_20010502_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93958 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:24:11 +00:00
jst%netscape.com
03992dcc49 Removing unused file
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93917 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:35:45 +00:00
jst%netscape.com
5b49b84446 Cleanup
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93916 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:34:38 +00:00
jst%netscape.com
df68d2d619 Cleanup.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93915 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:33:21 +00:00
jst%netscape.com
d5dfe0e7d0 Cleaning up...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93914 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:29:13 +00:00
jst%netscape.com
5c488d3bc6 Use XPConnect to get the native from the JSObject when setting select.options[x].
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93912 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:18:35 +00:00
jst%netscape.com
14d344eea5 Oops, wrong type.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93911 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:09:25 +00:00
jst%netscape.com
9fdf843e1f Make sure the plugin object's proto isn's shared before changing the proto of the proto.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93910 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:08:07 +00:00
jst%netscape.com
8f1fdb81b0 Removing unused variable.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93909 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:06:47 +00:00
jst%netscape.com
a0ad6a8f98 Only root wrappers while we have a script global object.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93908 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:01:47 +00:00
jst%netscape.com
5f893998b9 Making form.3 work, problem found by Vidur.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93906 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 08:00:21 +00:00
jst%netscape.com
ab3518c84a Removing unused code.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93905 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 07:54:13 +00:00
jst%netscape.com
271ebfe76b Removing more unused code.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93903 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 07:21:47 +00:00
jst%netscape.com
3f50dae1bb Removing unused files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93902 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 07:12:06 +00:00
jst%netscape.com
893f7b535c When setting document.location don't require that the value is a string, convert the value into a string and use that.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93901 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 07:10:21 +00:00
jst%netscape.com
38ed3f0174 Checking in change for mstoltz, ignore the first frame on the stack in CheckLoadURIFromScript().
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93898 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 06:19:40 +00:00
jst%netscape.com
d77ac36399 If we don't find something by name in a named array fall through to the index based array.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93897 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 06:08:42 +00:00
jst%netscape.com
eca4535211 Fixing pachages files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93896 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 06:05:49 +00:00
jst%netscape.com
28e316c09e Passing along access to .oncontextmenu to the event listener manager to support the .oncontextmenu event property.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93894 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 05:58:25 +00:00
jst%netscape.com
aa4ec74afb Giving credit where credit is due.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93892 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 05:19:44 +00:00
jst%netscape.com
064f238c0e Check if the context is intitialized earlier before doing all the work in the resolver. Change suggested by Vidur.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93891 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 05:16:53 +00:00
jst%netscape.com
161192e637 Fixing nsDOMClassInfo leak.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93890 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 05:15:07 +00:00
jst%netscape.com
734b89c0fd Fixing nsDOMClassInfo leaks.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93889 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 04:22:30 +00:00
jst%netscape.com
7dd994b5f6 Moving #includes...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93888 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 04:20:58 +00:00
jst%netscape.com
f1f01e68a9 Making the DOM factory listen to XPCOM's shutdown notifications for doing some final cleanup at shutdown.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93878 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 02:09:40 +00:00
jst%netscape.com
22a63a98f6 Reorganizing the stubconstructor code a bit...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93792 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 10:36:33 +00:00
jst%netscape.com
cbc6537449 Not sure what I was thinking here...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93791 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 10:32:01 +00:00
jst%netscape.com
e9f9a729dc window._content is not really a 'replaceable' property any more.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93790 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 10:30:04 +00:00
jband%netscape.com
08d45a0a44 Only printf stuff in DEBUG builds. bug 78668
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93778 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 07:39:35 +00:00
(no author)
2bd5e8080c This commit was manufactured by cvs2svn to create branch
'XPCDOM_20010329_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93743 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 00:55:52 +00:00
jband%netscape.com
dbc909899a making OK to fail in some nsIClassInfo calls. This allows for implementing nsIClassinfo in script code without requiring unnecessary methods to also be implemented
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93664 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 19:17:23 +00:00
jband%netscape.com
7a57dc9bef fix 'out' param conversion to deal with a couple of problems: 1) it did not take into account that the JSObject we put in the js operand stack could be overwritten by an 'incorrect' callee script. 2) the HANDLE_OUT_CONVERSION_FAILURE junk was not really breaking out of the conversion loop on error!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93662 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 18:57:44 +00:00
peterv%netscape.com
0fc20c1d5a Keep this compiling on Mac.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93641 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 11:04:57 +00:00
markh%activestate.com
e7535ec61b Turn on the new Exception Service. Still not used by anyone yet tho.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93635 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 10:27:32 +00:00
peterv%netscape.com
198e40e8fc Build ExceptionService on the mac.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93632 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 10:21:13 +00:00
jst%netscape.com
81bea9fafb Fixing typo
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93629 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 08:15:37 +00:00
jst%netscape.com
a94038373c Adding classinfo to nsIControllers's so that they don't need to be nsISecurityCheckedComponent's.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93628 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 08:15:01 +00:00
jst%netscape.com
0507d44775 Adding classinfo to nsIBoxObject's so that they don't need to be nsISecurityCheckedComponent's. Also renaming some internal scriptable flag defines
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93624 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 07:07:41 +00:00
jband%netscape.com
61af298359 keeping todo current
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93607 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 02:09:32 +00:00
jst%netscape.com
d92b8e23ce Fixing navigator.preference().
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93606 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 01:49:48 +00:00
jband%netscape.com
41e71483e1 fix bug 78386
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93602 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 01:13:53 +00:00
jst%netscape.com
69d0ce5198 Comment change...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93556 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 20:45:44 +00:00
markh%activestate.com
fbfceddefc Adding new exception service and interfaces. Not yet hooked into the build.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93543 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 14:12:17 +00:00
jst%netscape.com
dcf0d449fc No need for sInstanceCount any more...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93536 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 09:49:56 +00:00
jst%netscape.com
a83a7aeaf6 Making the nsDOMClassInfoData be a static array in stead of allocating it.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93535 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 09:47:19 +00:00
jband%netscape.com
16de409ca3 somehow this memset got lost in the shuffle
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93533 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 08:34:18 +00:00
jst%netscape.com
de9991b2ec Woohoo, scriptable plugins work, almost, I think
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93532 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 08:21:36 +00:00
(no author)
c219328076 This commit was manufactured by cvs2svn to create branch
'XPCDOM_20010329_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93530 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 07:03:28 +00:00
jst%netscape.com
d2cba6c927 Removing setters that are not required by the spec nor supported by any other browsers either.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93528 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 06:51:04 +00:00
jband%netscape.com
33ace530bf added nsIXPConnect::clearAllWrappedNativeSecurityPolicies requested for future use by mstoltz
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93503 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 01:25:50 +00:00
jst%netscape.com
93a5414ea9 Fixing crasher found by jband, raw pointers need to be initialized! (nsCOMPtr's don't).
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93489 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 23:36:17 +00:00
jband%netscape.com
ce309ffc37 No more reference counting of XPCWrappedNativeProto objects
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93482 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 22:56:56 +00:00
jst%netscape.com
65de23402c Merging in changes between XPCDOM_20010420_BASE and MOZILLA_0_9_2001042510_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93461 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 10:04:32 +00:00
jst%netscape.com
f2f10145da Adding classinfo to psm-glue and fixing build bustage.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93457 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 05:21:59 +00:00
jst%netscape.com
46519d837e Adding classinfo to psm-glue and fixing build bustage.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93456 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 05:21:38 +00:00
jst%netscape.com
b6bffc682a Yes we do.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93455 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 05:11:53 +00:00
jst%netscape.com
19797aa6d6 The classinfo flags are always the same so there's no need to store them in the nsDOMClassInfoData struct.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93454 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 05:11:19 +00:00
jst%netscape.com
384f6a8196 xmlextras now have complete classinfo, woohoo!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93453 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 05:07:55 +00:00
jst%netscape.com
2a9588e7fa Making nsDOMClassInfo::GetClassInfoInstance() return an addreffed pointer, and adding classinfo for xmlextras.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93452 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 04:47:49 +00:00
jst%netscape.com
e6e497feca Reparenting of content wrappers.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93450 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 04:36:34 +00:00
jst%netscape.com
27258d7d74 Removing unused files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93444 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 02:46:56 +00:00
jst%netscape.com
e6b602b1e6 Renaming internal macro and adding classinfo for crypto objects.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93439 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 00:05:45 +00:00
jst%netscape.com
db171b456d Adding classinfo to nsXMLHttpRequest.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93438 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-29 23:40:07 +00:00
jst%netscape.com
7f27970914 Splitting out the interface nsIScriptObjectPrincipal into it's own file.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93437 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-29 23:38:43 +00:00
(no author)
3622f87995 This commit was manufactured by cvs2svn to create branch
'XPCDOM_20010329_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93431 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-29 21:43:18 +00:00
jst%netscape.com
9b5ccc60db Making the argument to navigator.plugins.refresh() optional.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93427 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-29 20:30:12 +00:00
jband%netscape.com
b9ecb5f545 fix warning
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93411 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-29 02:56:53 +00:00
jband%netscape.com
226c2e5639 it's often better to initialize an object pointer to something other than null before calling a method on the object
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93408 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-29 01:07:25 +00:00
jst%netscape.com
e98ab73bc1 I really wich the compiler would catch this type of errors.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93407 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-29 00:56:55 +00:00
jband%netscape.com
a724916636 fix non-debug macro
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93405 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-29 00:20:33 +00:00
jband%netscape.com
46049c3a39 added debug instrumentation to XPCWrappedNativeScope
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93404 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-29 00:17:56 +00:00
jband%netscape.com
a8e900fea9 fix the whitespace
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93403 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-28 23:09:36 +00:00
jband%netscape.com
95599e663e Get rid of the unnecessary mMaybeSecurityInfo member of XPCWrappedNative. This reduces the size of all wrappedNatives by one pointer. Change to tagging whether or not a wrapper has a proto using a low bit in the mMaybeScope/mMaybeProto union.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93402 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-28 22:51:19 +00:00
jband%netscape.com
dc35684c64 don't try to access aPolicy if it is null. mstoltz and I agreed that we were going to avoid doing fancy security for classes without nsIClassInfo. I'm changing xpconnect to not waste space on the Policy pointer for wrappers without nsIClassInfo. This saves one pointer in *all* wrappedNatives
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93401 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-28 22:40:13 +00:00
jband%netscape.com
340adda34a As jst pointed out... There's no need to do the lookup again unless preCreate was called. So, tuck the re-lookup inside the 'if(wantPreCreate)' block
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93387 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-28 10:36:35 +00:00
jband%netscape.com
088f6c3526 general cleanup
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93383 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-28 07:09:33 +00:00
jband%netscape.com
5774fd0235 factor out and share JSClass and scriptable flags. This is needed to allow for re-parenting that the DOm needs to do. The issue is that DOM nodes can be moved from one scope to another and we need to move their wrappers along with all the properties on the wrapper's JSObject. This means changing the proto of the wrapper too. With the old scheme of building custom JSClasses for each sciptableinfo we couldn't do this and still ensure the lifetime of the JSClass would be as long as the lifetime of the JSObject. Now the objects holding the JSClasses are shared across the entime runtime and are gc'd. Also, additional changes from jst aimed at getting the reparenting working
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93379 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-28 05:14:25 +00:00
jst%netscape.com
51d75d14ef Use the correct scriptable helpers for Document and Element.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93326 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 23:40:36 +00:00
peterv%netscape.com
5f5fecf7a5 Keep this buiding on Mac.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93318 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 22:48:42 +00:00
jst%netscape.com
3b78d941e9 Random cleanup...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93289 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 20:16:44 +00:00
jst%netscape.com
7bb145025c Mystery solved...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93266 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 10:30:45 +00:00
jst%netscape.com
72ff38e51e Root content/document in ::AddProperty() in stead of in ::SetProperty() which doesn't always get called when a property is set.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93265 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 10:30:14 +00:00
jst%netscape.com
2f80054b58 Scriptable plugins and applets *could* work now, probably doesn't, but they could...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93264 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 10:05:18 +00:00
jst%netscape.com
509b40f53b Fixing build bustage.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93256 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 07:28:45 +00:00
jst%netscape.com
194205a3eb Oops, the form element helper still wants the WANTS_GETPROPERTY flag...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93253 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 06:51:38 +00:00
jband%netscape.com
411b4bb15a add a cache of the mst recent JSContext -> XPCContext mapping to the per thread data. I'm seeing over 95 hit rate on this. Also fix the CleanupAllThreads mess to not do its main bit of work with the threads lock held.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93252 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 06:34:08 +00:00
jst%netscape.com
e76bbe9695 Call FlushPendingNotification() in GetInnerWidth() too since we're doing it in GetInnerHieght() already...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93251 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 06:31:49 +00:00
jst%netscape.com
3de0da2617 Call FlushPendingNotification() when accessing window.frames
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93250 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 06:13:00 +00:00
jband%netscape.com
1b28268c0c unlock while calling out of InitTearOff - somewhat academic at this point since we don't have any wrapped objects claiming threadsafety (which means that these locks are NOPs anyway).
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93234 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 04:05:19 +00:00
jband%netscape.com
060a22c14c we needed to call the security manager's CanCreateWrapper callback for *each* interface the wrapper wraps, not just for the initial creation of the wrapper. FindTearOff was just too big and frequently called to be inlined. Trying to do a better job of returning a meaningful error code on failure of FindTearOff. Since InitTearOff calls out to other code we 'reserve' the tearoff to keep nesting code from possibly grabing it up
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93226 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 03:20:10 +00:00
jst%netscape.com
42f73e19b7 Scriptable helper flags cleanup and fixing a few incorrect flags, removing unused classinfo id's...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93225 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 03:15:29 +00:00
jst%netscape.com
a6bf93ee21 Make an elements owner document reachable through it's nodeinfo.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93223 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 03:06:49 +00:00
jst%netscape.com
50ad7c8902 Adding classinfo to the elenent.attributes map...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93222 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 03:04:14 +00:00
jst%netscape.com
0abfff1ceb Let XPConnect deal with rooting of it's JSObjects...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93219 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 02:37:23 +00:00
jband%netscape.com
02a880f16a Since our native objects hold pointers to each other yet their lifetimes are linked only by JSOjbect reference *and* we make unsure assumptions that they will continued to be linked by parent and proto chains, we now propagate the JSClass::mark callbacks to the linked JSObjects to ensure shared lifetime. Thanks to brendan for bringing up the issue (and anticipating it by providing the support in the JS engine!)
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93215 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 01:57:20 +00:00
jst%netscape.com
5c05089b96 Fixing bug 77802, window.InstallTrigger wasn't properly defined...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93214 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 01:54:36 +00:00
jband%netscape.com
af167da956 pass the nsIClassInfo pointer through in the CanCreateWrapper call
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93201 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-27 00:26:59 +00:00
mstoltz%netscape.com
218dcc2c1b performance optimization and bug fixes on the XPCDOM security manager.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93181 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 21:39:08 +00:00
jband%netscape.com
be6bdb409a ignore more classes in the Shadowed Member check. Report which classes are being ignored
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93146 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 17:52:08 +00:00
jst%netscape.com
6d8193959d Move event property value code from GetProperty() to NewResolve() to speed things up, make DOM interfaces with constants in them exposed in the global namespace (to make Node.ELEMENT_NODE work again) and add proper classinfo for NamedNodeMap's.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93118 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 06:34:19 +00:00
jband%netscape.com
4b2ba83c54 use PR_Free to free strings alloc'd by PR_Malloc
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93106 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 02:43:21 +00:00
jband%netscape.com
fb8d536e9a Reorganize xpcprivate.h (looks like a big diff, but mostly just moving stuff around). Make the threee major services exported by the xpconnect module implement nsISupportsWeakReference. Add a bunch of commments. Cleanup some the XXX comments. Get rid of the nsCOMPtr use for the concrete nsXPConnect class - nsCOMPtrs work *so* much better on interfaces!. Deal - silently :( - with JS_NewDouble failure. Bring some more diagnostic code back to life. Remove some places where we were re-fetching ThreadLocalStorage needlessly. Added the missing locking to XPCNativeMember::Resolve
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93102 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 01:03:02 +00:00
peterv%netscape.com
c385643bd7 Remove obsolete files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@93079 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-25 18:43:36 +00:00
peterv%netscape.com
c2d4569849 Fixed my mistakes.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92994 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-24 09:57:29 +00:00
jband%netscape.com
461279786a fix the classname in the diagnostic message - little things matter
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92980 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-24 01:18:29 +00:00
jband%netscape.com
e8de6f6f39 Whoo! We need that JSPROP_SHARED flag for readonly getters too. Man, does this fix some leaks!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92972 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-24 00:49:18 +00:00
jband%netscape.com
323edd0565 update TODO. Also NOTE that the last big checkin also included the switchover to rely on JS_Get/SetReservedSlot (and two available reserved slots for function objects).
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92957 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 22:44:47 +00:00
jband%netscape.com
b05cf39a1c Only build XPCWrappedNativeProto for wrapped natives with class info. Don't share proto if nsIClassInfo or nsIXPCScriptable flags indicate it should not be shared. Fix bug where nsJSIID was exposing constants *and* methods. Fix bug where nsJSIID was not exposing constants if the interface did not inherit from nsISupports.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92955 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 22:30:52 +00:00
jband%netscape.com
92ef29dcc5 adding a flag
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92946 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 20:46:01 +00:00
dbaron%fas.harvard.edu
928cac0e2e Fix gcc 2.7.2.3 bustage (the two values are now from different anonymous enums rather than the same one, and gcc 2.7.2.3 doesn't like that).
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92945 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 19:36:29 +00:00
jband%netscape.com
f0bf824fe8 adding nsIClassInfo flags for use by xpconnect
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92933 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 18:49:25 +00:00
peterv%netscape.com
0254362811 Updated.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92931 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 18:24:45 +00:00
peterv%netscape.com
919da1822f Export xpc_map_end.h.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92930 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 18:22:59 +00:00
peterv%netscape.com
36e7fc4db4 Merge back my changes.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92929 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 18:18:53 +00:00
peterv%netscape.com
fbc84ab7f5 Pull stuff from the branch. FIX THIS BEFORE TRUNK LANDING!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92928 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 18:17:56 +00:00
jband%netscape.com
07270fbfac applying sfraser's patch from bug 53080 to avoid the assert here
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92917 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 05:10:46 +00:00
jst%netscape.com
0ce9173cab Fixes from dbaron...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92916 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 01:34:54 +00:00
jst%netscape.com
492f8f23e1 Build bustage fixes from dbaron
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92915 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 01:13:02 +00:00
jst%netscape.com
4c72688f26 All array items are not nsIDOMNode's, problem reported by jband.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92914 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 00:30:25 +00:00
jst%netscape.com
642914df50 Making client.mk pull the branch...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92913 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 00:04:13 +00:00
jst%netscape.com
21a780662e Merging in changes between XPCDOM_20010329_BASE and XPCDOM_20010420_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92897 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-22 13:05:29 +00:00
jst%netscape.com
4f0dfc9af5 Merging in changes between XPCDOM_20010329_BASE and XPCDOM_20010420_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92896 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-22 12:46:20 +00:00
jst%netscape.com
7e3d51d2a0 Merging in changes between XPCDOM_20010329_BASE and XPCDOM_20010420_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92895 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-22 12:00:26 +00:00
jst%netscape.com
dbe114514f Merging in changes between XPCDOM_20010329_BASE and XPCDOM_20010420_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92894 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-22 11:45:00 +00:00
jst%netscape.com
b95eb161b4 Merging in changes between XPCDOM_20010329_BASE and XPCDOM_20010420_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92893 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-22 11:35:02 +00:00
jst%netscape.com
dcb15285b5 Merging in changes between XPCDOM_20010329_BASE and XPCDOM_20010420_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92892 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-22 11:23:58 +00:00
jst%netscape.com
f4e109c3d4 Merging in changes between XPCDOM_20010329_BASE and XPCDOM_20010420_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92891 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-22 11:15:48 +00:00
jst%netscape.com
fad35f013b Merging in changes between XPCDOM_20010329_BASE and XPCDOM_20010420_BASE.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92890 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-22 11:03:13 +00:00
(no author)
593060e277 This commit was manufactured by cvs2svn to create branch
'XPCDOM_20010329_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92882 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-21 22:07:26 +00:00
jband%netscape.com
b23946905a fixed misnamed non-debug symbol
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92854 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 23:34:23 +00:00
jband%netscape.com
9f1e48a8c4 add classobjects to nsJSxID object and xpcexceptions to support sharing of wrapper protos for these common objects. Added addtional instrumentation. Fiddling with how many tearoffs to have by default per XPCWrappedNative. Fixed a broken test. Added DEBUG_xpc_hacker #define so that the more of the xpconnect hackers could see shutdown dumps and stuff
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92851 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 22:13:29 +00:00
jband%netscape.com
d7ad29c06c factoring out the interface getter declaration macro
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92849 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 21:36:59 +00:00
jband%netscape.com
0040f31c7d fix first run assertion - we were assuming that InitClassesWithNewWrappedGlobal would only be called on JSContext that did not already *have* a global object. That was a bad assumption for the JS component loader
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92821 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 06:56:22 +00:00
jst%netscape.com
9e5cb2a240 Fixing typo.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92820 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 06:47:02 +00:00
jst%netscape.com
70ab8228c1 This change was made on the trunk, preparing for merge...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92817 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 06:31:45 +00:00
jst%netscape.com
e39c1cae8b Make the docshell not re-create the script environment after it's been destroyed.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92815 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 06:16:36 +00:00
jband%netscape.com
fdfcaab7b7 adding PostCreate
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92810 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 05:08:39 +00:00
jst%netscape.com
6dfc1707ab document.write() fixes, argument concatenation n' such...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92808 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 04:55:58 +00:00
mstoltz%netscape.com
f81ff86fa6 First crack at a security manager for the new DOM. I've turned security on in
js/src/xpconnect/src/nsXPConnect.cpp so it'll get some testing, if it proves
 too annoying we can turn it off again.


git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92753 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 20:43:38 +00:00
jband%netscape.com
4bdc6b48e7 fix backwards error test!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92723 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 11:39:17 +00:00
jst%netscape.com
cee06dc638 Don't use XPConnect for the global object on the compilation contexts for pototype scripts, revert the code back to using a vanilla JSObject with it's own resolver and finalizer.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92721 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 09:06:17 +00:00
jst%netscape.com
c61e8e8974 Support for null global object when creating an initializing contexts
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92720 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 09:01:32 +00:00
jband%netscape.com
e8de050d81 patches from jst to fix warnings seen in Linux build. Thanks!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92719 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 08:12:48 +00:00
jst%netscape.com
33d14052da D'oh!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92718 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 06:41:06 +00:00
jband%netscape.com
21e58672af updating TODO list
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92717 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 06:34:21 +00:00
jband%netscape.com
2ab9911b30 set the parent of cloned function objects to be the object on which we are resolving - the wrapper's JSObject or that of the proto or tearoff. Then take that parent into account when determining (at function call time) which wrapper's function is being called. This allows things to work right if there are multiple wrappers in a proto chain - a requirement for the DOM's scriptability of plugins and applets
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92716 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 06:33:16 +00:00
jst%netscape.com
955de6cef8 String code cleanup...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92715 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 06:18:51 +00:00
jst%netscape.com
9ffa063454 Adding support for post-hooking up the prototype chain for a wrapped embed/object tag when a plugin is loaded.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92714 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 06:18:01 +00:00
jst%netscape.com
cb6b01aca2 Re-ordering code in the presshell destructor to avoid crashes when the presshell is torn down while content nodes still know their document.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92713 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 06:16:34 +00:00
jband%netscape.com
8b535bae61 all hashtables converted to use JSDHash
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92712 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 05:02:29 +00:00
jst%netscape.com
a7a612d14b Fixing bug 76568
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92711 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 04:45:53 +00:00
jst%netscape.com
fda988c208 If the plugin doesn't expose a scriptable IID we'll check if it has classinfo and use the plugin itself as the scriptable object.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92709 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 03:46:24 +00:00
jst%netscape.com
6cc4285005 Landing support for scriptable plugins.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92708 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 03:37:32 +00:00
jst%netscape.com
3183241666 Putting back the original configure files to make this branch build on unix again.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92707 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 03:17:15 +00:00
jst%netscape.com
649da583ca Re-enabling xmlextras in the build now that it compiles.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92678 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 07:30:08 +00:00
jst%netscape.com
de3756d283 Fixing build bustage, xmlextras now compiles!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92677 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 07:29:36 +00:00
jst%netscape.com
27f1a78513 More build bustage...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92672 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 06:38:20 +00:00
jst%netscape.com
2035e91bd5 Fixing build bustage.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92671 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 06:35:44 +00:00
jst%netscape.com
b693b17b28 Adding classinfo for the window.navigator object.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92601 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 23:34:54 +00:00
jband%netscape.com
6c1840d5f7 #ifdef class only used for old DOM support.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92573 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 22:03:42 +00:00
jband%netscape.com
fc3446aebd improve DEBUG_ReportShadowedMembers to not report cases of constants when the value is the same or cases of the same method inherited from a common base interface
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92572 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 21:54:00 +00:00
jband%netscape.com
73c5cda04f White space only change. Clean up those trailing spaces my editor adds. I need to teach it to not do that one of these days...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92569 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 20:02:59 +00:00
jband%netscape.com
1ac376f0fc same fix as trunk
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92533 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 07:23:34 +00:00
jband%netscape.com
f3aaf97807 updating the TODO list
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92492 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 02:19:51 +00:00
jband%netscape.com
c4a77b2431 let's not pull the security directories since we don't build them and they are not on our branch. Yet another thing to be careful about when we merge!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92490 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 02:17:46 +00:00
jband%netscape.com
85962a147f add code for reparenting wrapped natives
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92488 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 02:12:19 +00:00
jband%netscape.com
2adcf8c78c make jst fix this problem for nsXULPDGlobalObject
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92448 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-16 22:15:09 +00:00
jband%netscape.com
29b20a5d20 head off calls through FlatJSObjectFinalized if xpconnect shutdown has already happened This should fix shutdown crashes. Also pulling in the proposed fix to bug 76102
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92405 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-16 19:19:59 +00:00
jband%netscape.com
4629838038 make it work right to call InitClasses more than once without creating a new scope every time. thanks jst!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92403 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-16 18:19:11 +00:00
jst%netscape.com
b094d2c133 Removing unused method FindCotnent().
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92384 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-16 07:18:45 +00:00
jst%netscape.com
db47c773b2 Root DOM nodes when properties are set on them.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92379 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-16 03:54:44 +00:00
jst%netscape.com
f54c536e3f Tear down the prototype elements before tearing down the global prototype object so that the prototype elements (or things they held on to) can be colleced by the GC() done when tearing down the global object.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92378 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-16 03:45:12 +00:00
jst%netscape.com
cee2d0355a Fixing up re-initializing of contexts and adding finalize hook to nsIScriptGlobalObject. For this to work properly a change to XPConnect is needed, waiting for reply from jband on that...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92377 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-16 03:41:30 +00:00
jst%netscape.com
607358f6b3 Removing unused files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92360 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-15 22:26:47 +00:00
jst%netscape.com
910761dddb Renaming mScriptObject to mJSObject.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92359 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-15 22:25:20 +00:00
jband%netscape.com
35093a3d80 don't leak the thistranslators
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92354 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-15 10:01:16 +00:00
jst%netscape.com
2bdd93f0e8 D'oh! Stupid me...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92353 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-15 08:50:16 +00:00
jst%netscape.com
61245198ce Removing old unwanted methods from nsIScriptContext, such as rooting helpers, people really shouldn't be rooting things themselves any more, people should rely on XPConnect for doing that.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92351 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-15 08:07:12 +00:00
jst%netscape.com
6d8d7fede1 Rolling in Brendan's fix for bug 75975 (Use parent, if non-null, as scope chain with which to find default proto from Class.prototype, in js_{New,Construct}Object), this gets rid of unwanted references from prototype scripts to the outside world which were causing huge leaks.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92350 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-15 07:20:04 +00:00
jst%netscape.com
93864cf596 Lazily resolve standard classes in the window object helper.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92346 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-15 06:27:56 +00:00
jst%netscape.com
bebfd172c3 Maybe it's just me, but sometimes I wanto set breakpoints in AddRef()/Release()...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92345 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-15 06:22:07 +00:00
jband%netscape.com
45b6a56d1a update TODO to reflect reality
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92300 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-14 18:47:19 +00:00
jband%netscape.com
bbb012f0d1 let's try this and see if Mac is happier
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92285 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-14 06:57:20 +00:00
jband%netscape.com
89a1a5814f do marking of interface sets in the callcontexts
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92273 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-14 02:11:45 +00:00
jband%netscape.com
2efd1024f2 optimized inlined array iteration loops
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92269 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-14 01:51:49 +00:00
jband%netscape.com
fbf2a3a39e make the 'no Components in scope' assertion work again
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92244 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-13 23:20:02 +00:00
peterv%netscape.com
ce0865f6f4 Oops, this isn't the trunk. Stupid me. Backing out, sorry.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92194 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-13 10:53:51 +00:00
peterv%netscape.com
2d8a4a6358 Fix for 75724 (duplicate data in inline stylesheets). r=glazman, sr=attinasi.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92193 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-13 10:35:40 +00:00
jband%netscape.com
950a7720fb Fix xpconnect internals to only return non-AddRef'd interfaces pointers via function return values. When AddRef'd pointers are returned by functions it is done via an out param.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@92172 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-13 04:54:25 +00:00
jband%netscape.com
e03f2194d0 don't use JS_IsAssigning since it does not do the right thing for increment/decrement operators
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91999 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 21:06:28 +00:00
jst%netscape.com
1e45587df0 Making the unix build a bit happier.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91968 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 09:28:32 +00:00
jband%netscape.com
33f0daaf1e added DEBUG code to detect uses of WrappedNatives on the wrong thread. Interestingly, I found ZERO cases in my use of the browser where this ever happens.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91957 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 05:46:10 +00:00
jband%netscape.com
273dc667f2 less confusing name for the local
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91931 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 02:51:29 +00:00
jband%netscape.com
215b1cb576 fixes from debuggin session with jst
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91930 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 02:46:41 +00:00
jband%netscape.com
bafd9d1168 don't call XPConnect InitClasses twice
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91929 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 02:45:10 +00:00
jband%netscape.com
e37724d666 trying to make this compile on Mac
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91898 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 20:37:40 +00:00
jband%netscape.com
296255d636 don't compile the test 'this' translator by default - it does not build on Mac
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91887 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 17:38:54 +00:00
jband%netscape.com
c60df86592 switching locking to use a monitor for re-entrance and a cloned XPCAutoLock to allow us to use conditionally null locks for single threaded wrappers. WrappedNative locking is partially in place. Just starting on scheme for detecting multi-threaded access to single threaded wrappers (and non-main thread access to main-thread-only wrappers). Also, partially backed out peterv's change in xpccomponents.cpp. We are at an empass there... nsCOMPtr<XPCWrappedNative> is said to not build on Mac. But nsCOMPtr<nsIXPConnectJSObjectHolder> (used with dont_AddRef) leaks a reference for some mysterious reason. We need scc love here!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91873 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 09:45:02 +00:00
jband%netscape.com
9e0c3edbe2 fix client.mak to pull gfx2 and imglib2 from our branch
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91833 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 05:21:36 +00:00
jst%netscape.com
f179638d82 Fixing compiler warnings.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91817 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 02:15:45 +00:00
jst%netscape.com
7f2706a766 Adding nsIClassInfo::DOM_OBJECT to the DOM classinfo flags.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91816 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 02:15:29 +00:00
jband%netscape.com
f619ed5e27 added DOM_OBJECT flag
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91796 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 23:37:21 +00:00
jband%netscape.com
340ca5e6ac simpler macro for determining if PRUint32 will fit into a JSVAL_INT
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91765 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 19:35:52 +00:00
peterv%netscape.com
065eb019e1 Keeping up-to-date.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91754 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 14:47:18 +00:00
peterv%netscape.com
0daebbe3f0 Patch by jband to make this compile on Mac.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91753 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 14:46:59 +00:00
jst%netscape.com
bfaa8f9f78 Fixing document.title once n' for all for all document types.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91723 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 02:04:02 +00:00
jst%netscape.com
d8e2b78d12 "root" wrappers when XBL bindings are attached to content elements.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91683 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 04:57:29 +00:00
jst%netscape.com
3d02e4cfd3 Adding methods nsIDocument that lets me make documents hold on to wrappers for JSObject rooting purposes.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91682 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 04:50:21 +00:00
jst%netscape.com
e1b5a5869e Removing code that's not needed any more...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91681 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 04:46:00 +00:00
jst%netscape.com
aef1a05d6e Removing unused #include.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91680 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 04:45:20 +00:00
jst%netscape.com
bde14f7990 Adding comments...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91679 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 04:39:42 +00:00
jst%netscape.com
706c0ae094 Fixing compiler warning.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91678 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 04:38:49 +00:00
jst%netscape.com
dbfd6323e6 D'uh! window.foo should map to the child window 'foo', not the docshell!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91677 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 04:23:04 +00:00
jst%netscape.com
f0381d361d Moving code that can fail into ::Init() in stead of having it in the constructor.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91675 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 02:24:31 +00:00
jst%netscape.com
04ec3fbfb6 StyleSheetList helper.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91674 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 02:20:38 +00:00
jst%netscape.com
b0a1b2181d Oops.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91673 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 02:07:02 +00:00
jst%netscape.com
f269134e33 Adding Plugin helper.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91672 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 02:01:07 +00:00
jst%netscape.com
1ebde41d09 Adding nsStringArraySH and helpers for History, MimeTypeArray and CSSStyleDeclaration.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91671 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 01:43:12 +00:00
jst%netscape.com
5d98412872 Adding nsIDOMNSHistory to the build.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91670 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 01:42:08 +00:00
jst%netscape.com
c3b464a6e6 Oops, didn't mean to check this in...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91646 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 09:40:37 +00:00
jst%netscape.com
789fc3631d Oops, didn't mean to check this in...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91645 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 09:34:22 +00:00
jst%netscape.com
72588327a3 Pass nsISupport pointer's to GetItemAt() and GetNamedItem() to in stead of nsIXPConnectWrappedNative pointers to centralize extraction of the native object from the wrapper.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91644 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 09:24:44 +00:00
jst%netscape.com
8ad86dfb28 Woo hoo, code re-use... :-)
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91643 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 09:11:51 +00:00
jst%netscape.com
4f60854d6b More work on random helpers...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91642 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 09:05:05 +00:00
jband%netscape.com
be2afc55a1 oops. Broken macro was causing even small PRUint32 values to be converted to jsdoubles :(
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91615 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 01:41:28 +00:00
jband%netscape.com
0708a0a459 fix problem where 'typeof' wrapped native object with scriptable helper but without WANT_CALL was resolved to 'function' rather than 'object' as expected
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91614 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 01:10:07 +00:00
jband%netscape.com
5db7712bf0 adding nsIClassInfo::GetClassDescription
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91605 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 00:16:43 +00:00
jst%netscape.com
e5156f6210 Removing file that was renamed to nsIDOMNSHTMLOptionCollectn.idl
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91602 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 23:18:55 +00:00
jband%netscape.com
a6c34cf596 use new nsIInterfaceInfo::HasAncestor support. This gives a speedup in places were were doing GetPArent loops. And it allows us to cheaply do the right think in the ClassInfoInterfacesOnly case in XPCWrappedNative::InitTearOff
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91596 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 22:03:57 +00:00
jband%netscape.com
2d37fe923d adding HasAncestor support for lookups that are quicker than looped GetParent calls
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91595 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 22:01:38 +00:00
peterv%netscape.com
934eceee5a Use nsIDOMNSHTMLOptionCollectn.idl instead of nsIDOMNSHTMLOptionCollection.idl.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91593 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 21:47:42 +00:00
jband%netscape.com
0f9f1d6f96 change a flag name now while I can
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91588 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 19:39:03 +00:00
jst%netscape.com
1a8cac993f More global object fun...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91570 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 09:23:11 +00:00
jst%netscape.com
622f36f5bb Global object helper cleanup...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91569 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 08:48:48 +00:00
jst%netscape.com
1e25f185d4 Adding nsIDOMEventListener::HandleEvent() 'this' translator class.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91567 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 08:30:30 +00:00
jband%netscape.com
28dc24dac9 add support for 'this' translation in calls to function interfaces
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91562 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 07:11:32 +00:00
jst%netscape.com
a96a56d2b8 Making form controls wrappers get the right parent, and optimizing nsNodeSH::PreCreate().
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91561 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 06:38:00 +00:00
jst%netscape.com
2c8c75f8ea Adding nsIContent::IsContentOfType() that will let us optimize certain things.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91555 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 04:10:16 +00:00
jst%netscape.com
01faacf70d D'oh! toString(), not ToString()!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91549 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 03:53:10 +00:00
jst%netscape.com
ace6b11bc7 The return value of functions that return void should be JSVAL_VOID and not JSVAL_NULL, this caused javascript:alert('foo'); to not work as expected.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91538 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 01:22:00 +00:00
jst%netscape.com
1065a9513f WIP on the global resolver, probably doesn't work yet, but...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91485 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 21:37:33 +00:00
peterv%netscape.com
6786ad6eee Updated project files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91466 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 16:15:08 +00:00
peterv%netscape.com
3ac5032e1c Removing xulstubs.idl.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91465 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 16:12:56 +00:00
peterv%netscape.com
eff7dc4b34 Updated.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91464 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 16:12:29 +00:00
peterv%netscape.com
e31ea6151c Adding with a Mac-friendly filename. I'll send a patch to jst to use this one on all platforms so we can remove nsIDOMNSHTMLOptionCollection.idl, which is too long :-(.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91463 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 16:04:39 +00:00
peterv%netscape.com
fe15a1f364 Removing some obsoleted headers, and adding some new ones.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91462 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 16:03:10 +00:00
peterv%netscape.com
ff2338e5ac Updated.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91461 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 16:01:50 +00:00
peterv%netscape.com
e0639809cc Build the DOM headers from the IDL files on Mac too.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91460 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 16:01:11 +00:00
peterv%netscape.com
c0b1578b5e OpenDialog changed.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91459 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 15:49:10 +00:00
jst%netscape.com
e3d824864b Eh, well, this is what I meant...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91454 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 12:49:31 +00:00
jst%netscape.com
06c1960079 Enough of this double 'ns' prefix crap, I can't take it any more!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91449 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 11:39:45 +00:00
jst%netscape.com
800c456912 Removing unused files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91448 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 11:36:10 +00:00
jst%netscape.com
7a497f5360 Removing unused files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91447 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 11:28:13 +00:00
jst%netscape.com
624427cd85 Moving things around...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91445 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 10:44:28 +00:00
jband%netscape.com
28589402c9 Refactored nsIXPCSecurityManager
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91442 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 09:51:49 +00:00
jband%netscape.com
f4ad259197 Refactor nsIXPCSecurityManager for better use for securing the DOM. No need to expose nsIXPCNativeInterface. Fix the resolver for wrappednatives with helpers to (hopefully) correctly expose members of interfaces in addition to the original set. prepare to use the new facility in the js engine that supports two user settable private slots on function objects. Filter out classes that we are happy with from teh those reported in DEBUG_ReportShadowedMembers
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91441 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 09:50:47 +00:00
jst%netscape.com
b5186d2748 Fixing nsIDOMEventTarget/nsIDOMEventReceiver fu in my classinfo lists.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91435 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 06:49:33 +00:00
jst%netscape.com
fc44c2e26b Don't try to link with jsdom any more, it won't work!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91415 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:29:19 +00:00
jst%netscape.com
af3461afde Fixing window closing bug, yay! Thank you hyatt for enlightening me about this.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91414 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:27:16 +00:00
jst%netscape.com
0898f5464b ShutDown(), n' stuff
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91395 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:35:58 +00:00
jst%netscape.com
f84ed056fb Oh - my - god, I am so stupid! No wonder my tests stopped working.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91394 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:24:42 +00:00
jst%netscape.com
bca5315ed0 fix build bustage...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91392 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:11:03 +00:00
jst%netscape.com
87efe310f1 fix build bustage...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91389 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:03:26 +00:00
jst%netscape.com
bfcdb1c6df I can't prove that this matters, nor that this helps performance, but I wanted to do it!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91382 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:25:55 +00:00
jst%netscape.com
7dfd1fa34a More OpenDialog() fun, no more nsIDOMWindowInternalEx...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91377 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:04:10 +00:00
shaver%mozilla.org
f6c6b22046 merge configure and configure.in from the tip, so that we can keep building
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91372 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:42:31 +00:00
jst%netscape.com
a51434afa3 Don't link with jsdom any more.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91333 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:39:54 +00:00
jst%netscape.com
1896e3e1e2 Removing unused files...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91330 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:25:05 +00:00
jst%netscape.com
84c8d1252d Fixing linux build bustage.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91328 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:00:36 +00:00
jst%netscape.com
9383113eef Fixing a few compiler warnings.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91326 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 20:59:10 +00:00
jst%netscape.com
02930b4f28 Cleaning up on module shutdown...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91325 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 20:50:06 +00:00
jst%netscape.com
fbcf150735 Removing unsued files...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91323 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 18:51:07 +00:00
jst%netscape.com
8ac7c455f3 More OpenDialog() fun...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91322 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 18:47:36 +00:00
jst%netscape.com
3aa40aeb86 Removing unused files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91320 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 17:59:12 +00:00
jst%netscape.com
f49c389157 Don't build nsHTMLTagEnums.cpp, it's not needed any more.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91319 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 17:57:01 +00:00
shaver%mozilla.org
fcfeb5d69b DOM is a component now
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91318 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 17:49:19 +00:00
shaver%mozilla.org
5b51526b67 fix MODULE
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91317 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 17:48:57 +00:00
shaver%mozilla.org
fdef7089a4 don't build dead files
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91312 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 16:46:16 +00:00
shaver%mozilla.org
69d514cb3c explicitly include nsString.h
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91310 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 16:34:57 +00:00
shaver%mozilla.org
536c87c75c export gbdate.h
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91309 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 16:15:38 +00:00
peterv%netscape.com
1e5db79d4a Making this compile, need a get on the nsCOMPtr when doing (test ? nsnull : a_nsCOMPtr)
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91299 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 12:52:51 +00:00
peterv%netscape.com
81185e9bb5 Pull stuff from the branch. FIX THIS BEFORE TRUNK LANDING!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91298 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 12:49:37 +00:00
jst%netscape.com
96a65b4394 Fixing up the window opening code to work in the new world...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91293 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 10:09:06 +00:00
shaver%mozilla.org
d37786b42b tag client.mk for the branch
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91291 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:47:22 +00:00
shaver%mozilla.org
a6c0e076f8 more OpenDialog whacking
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91290 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:38:47 +00:00
shaver%mozilla.org
ebb5d38d0e no more BUILD_IDLC, yay!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91289 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:27:04 +00:00
shaver%mozilla.org
2a35eb9a9a Only link in the archives that we actually build.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91288 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:26:11 +00:00
shaver%mozilla.org
487e93d6b3 don't build obsolete (or just still-broken?) files
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91287 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:23:28 +00:00
shaver%mozilla.org
bc8e2144a4 don't build the obsolete dirs
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91286 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:21:00 +00:00
shaver%mozilla.org
92ee18111e CXXFLAGS, not CFLAGS, to see build's includes
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91285 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:18:07 +00:00
jst%netscape.com
3cd264847c D'ooh! What can I say...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91284 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:17:43 +00:00
jst%netscape.com
a3f1f3e1d7 Register nsISupportsInterfacePointer implementation.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91283 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:16:47 +00:00
shaver%mozilla.org
a282278ecc update printing to use new OpenDialog system
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91282 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:12:45 +00:00
shaver%mozilla.org
2b76bc0fb1 initial Unix build goop: we can export, but not much more
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91275 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 08:16:45 +00:00
jst%netscape.com
034498532f ...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91272 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:51:34 +00:00
jst%netscape.com
1b71a6a0a9 Making calling the binding manager from ::QueryInterface() on elements not suck in the new world.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91269 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:36:23 +00:00
jst%netscape.com
8d96617ff0 nsIDOM3Node tearoff implementation.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91261 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 06:27:34 +00:00
jst%netscape.com
d15c1c1a6f Checking in crash fix from the trunk.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91260 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 06:26:03 +00:00
jband%netscape.com
013a3d4c0c removing unused file
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91215 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 00:38:39 +00:00
jst%netscape.com
68721ee052 Adding new class ID thingies I forgot to check in last night, needed for the branch to even build.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91181 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:59:20 +00:00
jband%netscape.com
0e699bd993 hiding XPCCallableInfo in preparation for its demise with the fix of bug 73843
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91158 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:16:30 +00:00
jst%netscape.com
83521471b5 Removing code that was moved to the scriptable helper.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91134 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 12:51:09 +00:00
jst%netscape.com
de8dec754c Generalizing access to named-based arrays and adding helpers for PluginArray and MimeTypeArray.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91123 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 11:07:40 +00:00
jst%netscape.com
daf1324c4d First stab at adding class info for 'base' DOM classes.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91119 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 10:03:54 +00:00
jst%netscape.com
baf91bd7a4 Renaming nsNodeListSH to nsArraySH and making it more generic, this fixes problems with accessing elements by index on a HTMLCollection (i.e. form.elements[x]).
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91116 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 08:54:58 +00:00
jband%netscape.com
b95d168335 add a bunch of comments. Also, make the default wrapper toString print only nsIFoo when the wrapper represents only nsISupports and nsIFoo. This is more compatibile with old behaviour
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91058 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 22:42:23 +00:00
jband%netscape.com
23e24c188a doh! How many more times in my life will I make this mistake?
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91057 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 22:39:56 +00:00
jst%netscape.com
e8a863cc57 nsIDOMWindow::OpenDialog() fun...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91041 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 08:29:02 +00:00
jst%netscape.com
1b37fd5c87 Adding automatic conversion from nsISupportsInterfacePointer to XPConnect wrapped native of correct type.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91040 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 08:28:02 +00:00
jst%netscape.com
9f595afece Adding WrapNative() helper to nsDOMClassInfo.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91039 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 08:05:13 +00:00
jst%netscape.com
6a5d0a21a0 Fixing document.location.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91037 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 07:22:40 +00:00
jst%netscape.com
af6fd20c16 Removing old event property code from nsGlobalWindow.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91035 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 06:51:17 +00:00
jst%netscape.com
d52a4c84a3 Removing IDLC generated files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91034 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 06:41:55 +00:00
jst%netscape.com
5c7b02b145 Removing IDLC generated files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91033 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 06:33:51 +00:00
jst%netscape.com
a57855d4f6 removing unused file.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91032 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 06:25:57 +00:00
jst%netscape.com
af2722b8c2 Removing unused IDLC files.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91031 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 06:19:30 +00:00
jst%netscape.com
75ad0909be Removing comment...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91030 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 06:13:12 +00:00
jst%netscape.com
88ef0c0da1 Enabling event properties on the window object.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91028 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 06:06:43 +00:00
jband%netscape.com
a523b868b1 A few things...
- Fix nsXPConnect::GetCurrentJSStack to trim off leading native frames.
- Fix callcontext to use the top JSContext from the stack if present (like we have in the past).
- Speedup lookup of methods on mutated sets by noting when local set matches proto set up to the interface where the given memeber is found..
- Add debug debug output support for tracking gc of interfaces and sets.
- Enforce the rule that "All sets have exactly one nsISupports interface and it comes first."


git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91027 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 05:37:25 +00:00
jst%netscape.com
617a0b11e4 Moving new event registration code over from nsGenericElement.cpp into the scriptable helper, and reorganizing some code...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91012 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 23:41:11 +00:00
jst%netscape.com
175749eaf6 Removing unused file
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91010 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 21:45:59 +00:00
jst%netscape.com
61ef9c026e Removing #include of file that's no longer exported nor needed.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91009 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 21:32:23 +00:00
jband%netscape.com
1bbf29c749 fix xpcdom branch bustage
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@91004 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 19:11:38 +00:00
jst%netscape.com
8f580665e2 Event helper post merge changes...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90999 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 12:03:10 +00:00
jst%netscape.com
2810ab4932 Moving code around and fixin' some bugs...
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90998 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 11:47:15 +00:00
jst%netscape.com
4780df13b9 nsDOMClassInfo.* was moved to dom/src/base.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90993 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 10:57:41 +00:00
jst%netscape.com
875c476c49 Enabling code that roots nsXULPrototypeScript JSObject, this code was #if 0'ed out in my early days when I was in comment-out-code-that-doesn't-compile mode.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90992 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 10:47:18 +00:00
jst%netscape.com
efccf1c52b Use nsIDOMScriptObjectFactory to get at class info for DOM classes.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90991 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 10:30:51 +00:00
jband%netscape.com
1a1ed34685 pull stuff from our branch FIX THIS BEFORE TRUNK LANDING!
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90990 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 08:33:08 +00:00
jst%netscape.com
55e04ea037 Preparing for making all DOM object scriptable helper live in the DOM library.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90989 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 05:46:13 +00:00
jst%netscape.com
20bac1a100 Making the windowwatcher work in the new XPConnectified DOM world.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90988 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 05:39:40 +00:00
jst%netscape.com
1c9bdc3d14 Disabling the security manager.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90985 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 04:17:45 +00:00
jst%netscape.com
ecd5203ddd Crawling up from deep down in merge hell, checking in changes from XPCDOM_20010223_BRANCH.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90984 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 03:57:18 +00:00
jst%netscape.com
5ffac5aa5e Crawling up from deep down in merge hell, checking in changes from XPCDOM_20010223_BRANCH.
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90983 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 03:51:25 +00:00
(no author)
f8408c9d32 This commit was manufactured by cvs2svn to create branch
'XPCDOM_20010329_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90977 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 01:17:44 +00:00
jst%netscape.com
dd8246bb7e Moving these files from content/base/src
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90975 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 01:14:07 +00:00
(no author)
4040c50cb2 This commit was manufactured by cvs2svn to create branch
'XPCDOM_20010329_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90974 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 01:11:00 +00:00
jband%netscape.com
7063e72c64 switch off old DOM support
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90957 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 07:52:50 +00:00
jband%netscape.com
45cb0cc60a minimal changes to build with xpconnect interface imported from jband_xpconnect_flattening_BRANCH
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90954 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 07:20:43 +00:00
jband%netscape.com
0863ea3c41 Landing code to XPCDOM_20010329_BRANCH that was developed on jband_xpconnect_flattening_BRANCH. See the logs on that flattening branch for comments and the trail of changes
git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90953 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 07:18:46 +00:00
(no author)
4bf62171f6 This commit was manufactured by cvs2svn to create branch
'XPCDOM_20010329_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/XPCDOM_20010329_BRANCH@90931 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 01:43:28 +00:00
cls%seawood.org
33374aacdf Help text typo fix.
Thanks to Ben Bucksch <ben.bucksch@beonex.com> for the patch.


git-svn-id: svn://10.0.0.236/trunk@90827 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:59:43 +00:00
darin%netscape.com
d7139a472d Fixes bug 72312 "gopher needs to wrap the proxy channel"
patch=bbaetz, r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@90826 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:21:55 +00:00
sfraser%netscape.com
d84e88c630 Fix for bug 72578 -- add ability to retrieve controllers by ID from an nsIControllers. r=kin, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90825 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:20:56 +00:00
cls%seawood.org
2b0b9b564a Backout ben's erronous checkin. bug #69366
git-svn-id: svn://10.0.0.236/trunk@90824 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:19:08 +00:00
ftang%netscape.com
b843b8286d fix 71197
r=bstell sr=erik
split JIS0208 to two mapping
One for standard JIS0208 mapping one for the CP932 extension (non standard)


git-svn-id: svn://10.0.0.236/trunk@90823 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:16:10 +00:00
ftang%netscape.com
fdfed42191 fix 71489
r=bstell sr=erik
add Unicode to Johab encoding to the module


git-svn-id: svn://10.0.0.236/trunk@90822 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:11:21 +00:00
ftang%netscape.com
be39c9dd08 add nsUnicodeToJohab.cpp into the mac build system
fix bug 71489 r=bstell sr=erik


git-svn-id: svn://10.0.0.236/trunk@90821 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:09:40 +00:00
ftang%netscape.com
4e212d2368 fix 71489
add nsUnicodeToJohab.cpp to the window build system
r=bstell sr=erik


git-svn-id: svn://10.0.0.236/trunk@90820 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:09:00 +00:00
peterlubczynski%netscape.com
3e7edbf8c0 Fix to make printing OBJECTs safer bug 73846 a=av sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90819 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:07:52 +00:00
ftang%netscape.com
e399a943aa fix 71489
add nsUnicodeToJohab.cpp to the unix build system


git-svn-id: svn://10.0.0.236/trunk@90818 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:07:33 +00:00
pinkerton%netscape.com
0b05afe8e0 checking in nsXBLContextMenuHandler for hyatt.
git-svn-id: svn://10.0.0.236/trunk@90817 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:05:47 +00:00
ftang%netscape.com
26f8754867 fix 71489
Add johab document encoding support
Currently the convert from johab to unicode part is #if 0 since
we didn't have a way to test it.
r=bstell sr=erik


git-svn-id: svn://10.0.0.236/trunk@90816 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 03:03:14 +00:00
ftang%netscape.com
521dcc01ba fix 71489
r=bstell sr=erik
add x-johab font support


git-svn-id: svn://10.0.0.236/trunk@90815 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:54:46 +00:00
ftang%netscape.com
9574c0d87a add lang group for x-johab
fix 71489
r=bstell sr=erik


git-svn-id: svn://10.0.0.236/trunk@90814 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:53:55 +00:00
ftang%netscape.com
6fec59ea21 add new cid for Johab encoding
fix 71489
r=bstell sr=erik


git-svn-id: svn://10.0.0.236/trunk@90813 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:52:37 +00:00
ftang%netscape.com
f164d43056 add Johab converter to fix bug 71489
r=bstell sr=erik
Not part of the build yet.


git-svn-id: svn://10.0.0.236/trunk@90812 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:51:24 +00:00
ftang%netscape.com
229acc4d59 fix bug 71197
r=bstell sr=erik
add new mapping for non-standard jis0208 extension


git-svn-id: svn://10.0.0.236/trunk@90811 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:49:34 +00:00
ftang%netscape.com
5ef3e0dbfd remove the non standard jis0208 mapping and split into jis0208ext.uf
r=bstell sr=erik, bug 71197


git-svn-id: svn://10.0.0.236/trunk@90810 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:47:41 +00:00
ftang%netscape.com
30bffc120a fix 71197
Machine generate code for non standard jis0208 code point (from cp 932)
r=bstell sr=erik
not part of the build yet


git-svn-id: svn://10.0.0.236/trunk@90809 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:46:40 +00:00
ftang%netscape.com
8497e43f47 fix 72557
r=harishd sr=erik
add the hack mapping for the last two new cp1252 characters.


git-svn-id: svn://10.0.0.236/trunk@90808 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:45:12 +00:00
rbs%maths.uq.edu.au
b21aa14236 Enable an ordered list of preferred fonts (rather than just one font) for particular chars. Fix the problem that the stretchy direction wasn't specified in certain cases so that resolving the annotations could wrongly failed. Use NS_LITERAL_STRING like everybody else. Apply suggestions from drivers (roc+moz, dbaron)
git-svn-id: svn://10.0.0.236/trunk@90807 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:39:38 +00:00
harishd%netscape.com
23353e444d P3P code drop. Includes basic P3P support and UI.
Contributed by Tom Lendacky ( toml@us.ibm.com ).

*-- NOT PART OF THE BUILD...YET --*


git-svn-id: svn://10.0.0.236/trunk@90806 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:36:22 +00:00
hyatt%netscape.com
2ebbd7376a Checkin for 36665. r=pink, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90805 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:30:17 +00:00
danm%netscape.com
40ec918c36 restrict conditions under which fix for bug 22658 fires; a fix for many focus bugs, especially bug 54936
git-svn-id: svn://10.0.0.236/trunk@90804 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:27:50 +00:00
heikki%netscape.com
6c69c694fd Bug 72522, implemented DOM Level 3 baseURI property (node interface). r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@90803 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:15:21 +00:00
ftang%netscape.com
74c7d96b39 bug 70028
sr=erik r=ftang check in for smontagur@il.ibm.com
add methods for arabic shaping with the unreview code turn off in #ifdef
add to mac build system


git-svn-id: svn://10.0.0.236/trunk@90802 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:14:14 +00:00
ftang%netscape.com
216801a0ba bug 70028. add arabic shaping methods with unreview code turn off by default. add to mac build system
git-svn-id: svn://10.0.0.236/trunk@90801 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:12:46 +00:00
harishd%netscape.com
0cf651600f 71942 - Intialize the ptr to fix the crash.
49942 - Should not include parent when absolutely positioned.
Added border color property.
r=heikki
sr=jst


git-svn-id: svn://10.0.0.236/trunk@90800 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:08:48 +00:00
pavlov%netscape.com
8c9a17ebcd removing the extern "C" { ... } that blake accidentally added the other day. fixes runtime errors on solaris
git-svn-id: svn://10.0.0.236/trunk@90799 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:07:00 +00:00
racham%netscape.com
63508e9fab Fixing bugs 72498, 73892 and 72531. Fixing bug 72498 brings back File Here menuitem back into all mailnews folder pickers. This one missed 081 branch train. Thanks to all who reviewed this patch now and then. Fixing bug 73892 makes the Bcc Self field appear again in Copies and Folders panel of any given server and fianlly fix to bug 72531 makes Search Messages link to appear for news and movemail accounts in AccountCentral. r=gayatrib, bienvenu, racham sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90798 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:06:46 +00:00
jgmyers%netscape.com
213c4ff3cd fix logic inversion: bug 73243 r=nhotta sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90797 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:05:19 +00:00
naving%netscape.com
a1e1e0e7d1 74018. sr=sspitzer. limiting message_size working again.
git-svn-id: svn://10.0.0.236/trunk@90796 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:03:32 +00:00
leaf%mozilla.org
1b9569ddf1 Automated update
git-svn-id: svn://10.0.0.236/trunk@90795 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 02:00:03 +00:00
pavlov%netscape.com
f98e787957 fix for crash when loading images with a null URL. bug 72447. r=dr sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90794 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 01:59:03 +00:00
dmose%netscape.com
c0316344b7 Start building the LDAP XPCOM SDK by default in autoconf builds (bug 70658). Patch to flip the switch: r=leif@netscape.com, sr=cls@seawood.org. Code being turned on: moa=dmose@netscape.com, sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@90793 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 01:52:15 +00:00
nelsonb%netscape.com
58e68a8e98 Fix leak of cert reference in cert authentication callback functions.
git-svn-id: svn://10.0.0.236/trunk@90792 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 00:40:24 +00:00
blakeross%telocity.com
910a585cf0 Backing out on request of module owner (no review, no module owner approval, unstable code). Don't shoot the messenger (with the checkin access)!
git-svn-id: svn://10.0.0.236/trunk@90790 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 00:34:31 +00:00
dougt%netscape.com
5dd4ba83af Changing the ftp url to point to ftp.netscape.com. The reason for this is that there are some firewall problems that Netscape has. This should clear up the orangeness on tinderbox. I spoke to endico@netscape.com about this and there isn't any mozilla concern. a=peterl@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90789 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 00:27:52 +00:00
hyatt%netscape.com
b2c2355ad1 Fix for smoketest blocker. rs=pink,saari, bug #73336:
git-svn-id: svn://10.0.0.236/trunk@90788 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 23:01:09 +00:00
timeless%mac.com
631fbc5548 fix version.
git-svn-id: svn://10.0.0.236/trunk@90785 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 22:40:51 +00:00
timeless%mac.com
d7860a194f Bugzilla Bug 74024 check techbot1 into cvs
Land techbot1 into mozbot tree. This has been a long time coming.

techbot1 includes support for arbitrary commands, bugzilla features including
bug, component and keyword queries. more support for tinderbox including
sheriff querying.  support for multiple channels.  it handles missing
components better.


git-svn-id: svn://10.0.0.236/trunk@90784 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 22:38:35 +00:00
sgehani%netscape.com
7dfc792fe0 Fix Solaris 7 bustage.
git-svn-id: svn://10.0.0.236/trunk@90783 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 20:34:32 +00:00
morse%netscape.com
6d0476527c fix 2 smoketest blockers -- 73955 and 73956, r=pchen, sr=rods
git-svn-id: svn://10.0.0.236/trunk@90782 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 20:05:30 +00:00
darin%netscape.com
068c61e0b3 Fixes bug 73917 "cache entry data size not updated" patch=beard, r=gagan, sr=darin
git-svn-id: svn://10.0.0.236/trunk@90781 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 19:58:34 +00:00
pchen%netscape.com
aa425f80a5 fix for blocker bug 73596, remove nsCookieViewer.cpp from project
git-svn-id: svn://10.0.0.236/trunk@90780 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 19:49:32 +00:00
jdunn%netscape.com
aa243d015e the xpidl stuff is not generating a 'const' for 'in boolean permenant' so
I forced it (by adding [const].  fixing an AIX build bustage
r= morse@netscape.com
#= 73945


git-svn-id: svn://10.0.0.236/trunk@90778 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 15:58:07 +00:00
endico%mozilla.org
d99b89d066 added mozilla/security/accessible to MozillaTinderboxAll
git-svn-id: svn://10.0.0.236/trunk@90777 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 15:57:57 +00:00
ccarlen%netscape.com
57e96ea730 Sample code only - not part of mozilla. Implement nsIWebBrowserChrome::ShowAsModal() and some other windowing cleanup. r=danm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90776 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 15:40:39 +00:00
bienvenu%netscape.com
05e9e25359 fix problem fetching message-ids and priority noted in bug 71983 add space to protocol we send sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90775 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 15:06:20 +00:00
jdunn%netscape.com
fd068e422e fixing typo (added ')' after libaccessibility_s.$(LIB_SUFFIX
and added '\' after both of the libs

Also added -lgkgfx to resolve the nsRect reference.  (AIX requries all
symbols to be resolved at link time)


git-svn-id: svn://10.0.0.236/trunk@90774 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 14:33:33 +00:00
mkaply%us.ibm.com
b182ddd22b attempt to fix AIX and OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@90773 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 14:19:10 +00:00
dougt%netscape.com
a48b8d1bf4 Implementing ReadSegments. r/sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90767 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 07:21:43 +00:00
aaronl%chorus.net
251d2f9e7e Make sure visual prefs force reframe
git-svn-id: svn://10.0.0.236/trunk@90766 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 07:16:06 +00:00
dmose%netscape.com
11edc1df03 Fix senna build bustage by telling Makefile.in not to try and overwrite the LDAP C SDK Makefile using its own generation rules. r=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@90764 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 06:57:35 +00:00
gordon%netscape.com
86e3302c60 Fix bug 73099. Problems with updating lastModified time stamp. r=beard, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@90761 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 06:50:38 +00:00
beard%netscape.com
11522b4afc Added nsDiskCacheMap.cpp and nsANSIFileStreams.cpp. [bustage fixing]
git-svn-id: svn://10.0.0.236/trunk@90760 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 06:41:02 +00:00
attinasi%netscape.com
de424adb91 Empty inlines now take up space in the line, fixing problem where the backtround images for those elements were not showing up even if they had sufficient padding. b=21415 r=karnaze, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90759 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 06:39:40 +00:00
hwaara%chello.se
5775815429 Fix so we call GetSelectedLocale() safely. bug 71390. r=tao, timeless, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@90755 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 06:13:55 +00:00
gordon%netscape.com
473ba08356 Land DISKCACHE1_BRANCH, implementing first draft of cache map file for more efficient eviction and cache miss detection. Fixed some problems with overeager setting of lastModified time stamp. Read cache enable prefs on startup. r=beard, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@90752 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 05:54:58 +00:00
gordon%netscape.com
0484dbbaf3 Added evictEntries() methods to nsICacheService and nsICacheSession. Removed lastValidated attribute from nsICacheVisitor. r=beard sr=darin.
git-svn-id: svn://10.0.0.236/trunk@90751 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 05:51:46 +00:00
disttsc%bart.nl
a2d109934e Fix MOZ_TRACK_MODULE_DEPS build bustage (senna)
git-svn-id: svn://10.0.0.236/trunk@90750 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 05:51:12 +00:00
disttsc%bart.nl
e81bd4224e Fix MOD_TRACK_MODULE_DEPS builds bustage (senna)
git-svn-id: svn://10.0.0.236/trunk@90749 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 05:34:21 +00:00
disttsc%bart.nl
a724b78136 Fix MOZ_TRACK_MODULE_DEPS bustage, add embedcomponents to REQUIRES line
git-svn-id: svn://10.0.0.236/trunk@90748 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 05:20:32 +00:00
disttsc%bart.nl
d3d53198ad Add .cvsignore to accessible/build, fix REQUIRES line in Makefile.in to fix senna bustage.
git-svn-id: svn://10.0.0.236/trunk@90747 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 04:43:09 +00:00
disttsc%bart.nl
a23fcc219b Add .cvsignore to accessible/src for Makefile, fix Makefile.in's REQUIRES line
git-svn-id: svn://10.0.0.236/trunk@90746 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 04:18:46 +00:00
waqar%netscape.com
2cad0f006a #=58877
sr=erik
d=remove the underline and italic attributes for default text for XFree86 4.x


git-svn-id: svn://10.0.0.236/trunk@90743 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 04:01:20 +00:00
mkaply%us.ibm.com
95e0fe850e 36665 for OS/2 - handle contextmenu event
git-svn-id: svn://10.0.0.236/trunk@90741 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 03:46:24 +00:00
mcafee%netscape.com
553133308d Adding bonsai tree name field, plus hints in parens so it's easier for newbies to figure this out.
git-svn-id: svn://10.0.0.236/trunk@90739 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 03:45:38 +00:00
mkaply%us.ibm.com
04f41a9880 HPUX bustage - need returns at end of files
git-svn-id: svn://10.0.0.236/trunk@90738 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 03:37:57 +00:00
mkaply%us.ibm.com
5b94975bd5 8.3 name for accessibility
git-svn-id: svn://10.0.0.236/trunk@90737 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 03:33:55 +00:00
pinkerton%netscape.com
839ee7e40e Use new DOM context menu event to determine if context menus should come/go r=saari/pink, sr=hyatt.
bug# 36665


git-svn-id: svn://10.0.0.236/trunk@90736 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 03:33:09 +00:00
mscott%netscape.com
654d550677 Show the user agent string again if the user has the hidden pref set.
If we receive multiple "To" or "cc" headers in the same message, aggregate them
instead of just using the last one.


git-svn-id: svn://10.0.0.236/trunk@90735 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 03:27:41 +00:00
blakeross%telocity.com
553b515146 BodyFixupRule should not kick in in XHTML (73294, patch by Hixie -- ian@hixie.ch -- the once innocent std compliance qa turned engineer). r=tor sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90734 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 03:24:36 +00:00
morse%netscape.com
a36df1a78f fix build bustage on mac
git-svn-id: svn://10.0.0.236/trunk@90732 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 02:45:08 +00:00
darin%netscape.com
89a9cca7d2 Fixes bug 71921 "nsInputStreamTee::WriteSegmentFun has a minor bug" r=beard
sr=dougt


git-svn-id: svn://10.0.0.236/trunk@90731 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 02:42:00 +00:00
darin%netscape.com
b180a3e10a Fixes bug 72348 "Page load performance slower in 0.8.1 than under 0.8"
r/sr=dougt,brendan


git-svn-id: svn://10.0.0.236/trunk@90730 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 02:34:19 +00:00
morse%netscape.com
8d277c87e5 bug 46783, reorg cookies module for embedding, r=valeski, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@90729 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 02:11:48 +00:00
pchen%netscape.com
1a131ea3e9 bug 46783, mac buddy for morse, don't build walletviewers.mcp, add cookieIDL.mcp, and run over mozilla/extensions/cookie/MANIFEST_IDL
git-svn-id: svn://10.0.0.236/trunk@90728 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:48:21 +00:00
pchen%netscape.com
3aa298ee37 bug 46783, mac buddy for morse, add new cookie files to mac project
git-svn-id: svn://10.0.0.236/trunk@90726 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:47:46 +00:00
pchen%netscape.com
e965feffdb bug 46783, mac buddy for morse, new MANIFEST_IDL file
git-svn-id: svn://10.0.0.236/trunk@90725 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:47:27 +00:00
pchen%netscape.com
37001ee722 bug 46783, mac buddy for morse, new project for IDL files
git-svn-id: svn://10.0.0.236/trunk@90724 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:46:33 +00:00
saari%netscape.com
23f71e7b3f nsImageWin.cpp
git-svn-id: svn://10.0.0.236/trunk@90723 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:45:16 +00:00
nboyd%atg.com
d8227166d0 Subject:
Minor fix to JSDebugger
        Date:
             Wed, 28 Mar 2001 16:34:24 -0800
       From:
             Christopher Oliver <coliver@mminternet.com>
 Organization:
             Primary Interface LLC
         To:
             nboyd@atg.com




Hi Norris,

Attached is a minor fix to the JSDebugger GUI that causes the tool-bar buttons to all have the same width.
I checked out and modified a file from CVS today.  See the screenshot below.

Cheers,

Chris


git-svn-id: svn://10.0.0.236/trunk@90722 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:44:45 +00:00
hyatt%netscape.com
85789f4550 Fix for 73695. r=danm, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90721 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:30:03 +00:00
heikki%netscape.com
30d2d092c3 Bug 71869, make XML Extras component load in startup in embedded case as well as browser. r=chak, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@90719 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:11:13 +00:00
mscott%netscape.com
ea2f77b6f6 get rid of the max-heights, these were breaking wrapping of long subjects and the html divs containing long email addresses.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90718 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:11:12 +00:00
mscott%netscape.com
8c376ee256 get rid of the max-heights, these were breaking wrapping of long subjects and the html divs containing long email addresses.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90716 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 01:03:46 +00:00
bnesse%netscape.com
67f5a195e0 Updates and bug fixes based on feedback of initial prefservice and prefbranch feedback.
[Not Part of the Build]


git-svn-id: svn://10.0.0.236/trunk@90713 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 00:48:30 +00:00
bnesse%netscape.com
f8717db4e1 Initial versions based on feedback of initial prefservice and prefbranch feedback.
[Not Part of the Build]


git-svn-id: svn://10.0.0.236/trunk@90712 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 00:46:49 +00:00
waterson%netscape.com
6ce71820d4 Bug 71911. Fix MIPSpro bustage; patch courtesy John Vandenberg <zeroJ@null.net>. r=waterson, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@90711 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 00:44:21 +00:00
alecf%netscape.com
3fcbba4a60 fix bustage
git-svn-id: svn://10.0.0.236/trunk@90710 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 00:38:11 +00:00
cyeh%bluemartini.com
f9f634b5f2 add comment about DB_File requirement for collectstats.pl
git-svn-id: svn://10.0.0.236/trunk@90709 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 00:36:38 +00:00
evaughan%netscape.com
cd7ed3740c Fix for solaris horkage.
git-svn-id: svn://10.0.0.236/trunk@90708 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 00:16:20 +00:00
morse%netscape.com
564943b0f9 bug 72401, trivial wording change for consistency, r=evaughan@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90707 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 00:14:25 +00:00
rpotts%netscape.com
586fe1fd3b bug #73244 (r=darin, sr=mscott). The DocLoader cannot assume that an nsIRequest is necessarily an nsIChannel...
git-svn-id: svn://10.0.0.236/trunk@90706 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 00:12:49 +00:00
alecf%netscape.com
a9c3ef92b1 fix assert-on-exit as well as a crash when switching profiles
sr=darin, r=dmose


git-svn-id: svn://10.0.0.236/trunk@90705 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 23:59:44 +00:00
radha%netscape.com
07bc0ed5d6 Fix for bug # 72995. r=morse, mcafee. sr=alecf
git-svn-id: svn://10.0.0.236/trunk@90704 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 23:47:00 +00:00
cyeh%bluemartini.com
3ebfd5a2b9 fix for 71798: bugmail not sent when moving from cc to assigned fields
checked in patch based on patch submitted by jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@90703 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 23:43:39 +00:00
dougt%netscape.com
b326dd2298 Fixes 70580, 73824. Also fixes a security hole related to port stealing as describe by rfc2577. r=gagan@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90701 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 23:39:37 +00:00
nhotta%netscape.com
3b76c20fd9 Changed for xul syntax change, value->label, data->value, bug 73641, r=yokoyama, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@90700 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 23:25:14 +00:00
dmose%mozilla.org
e914f6b42b Workaround bug in Solaris WorkShop 6 Update 1 that crashes the compiler by ifdefing out the offending code on that compiler (bug 73834). r=rich.burridge@sun.com, sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90699 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 23:17:44 +00:00
alecf%netscape.com
a0e2890475 add call to activate app-startup components when the app starts. r=heikki, sr=blizzard bug 60117
git-svn-id: svn://10.0.0.236/trunk@90698 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 23:00:02 +00:00
waterson%netscape.com
c2b28340fe Bug 71530. Grr. Checked in wrong patch; this one gets the comparison right.
git-svn-id: svn://10.0.0.236/trunk@90697 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 22:46:43 +00:00
hyatt%netscape.com
79ea6928de Fix for 73506. r=danm, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@90696 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 22:45:43 +00:00
waterson%netscape.com
e8c59a53f6 Bug 71530. Put the wraps on the RDF outliner for now. Implement 'natural order' sorting. Also, fix off-by-one in the enumerator. r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90695 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 22:42:49 +00:00
evaughan%netscape.com
1a14c03286 adding accessible mac projects
git-svn-id: svn://10.0.0.236/trunk@90693 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 22:28:49 +00:00
evaughan%netscape.com
022ec25f69 Fix for linux bustage
-r dr -rmcafee


git-svn-id: svn://10.0.0.236/trunk@90692 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 22:16:03 +00:00
karnaze%netscape.com
ffd1603a49 new regression tests not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90690 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:40:20 +00:00
karnaze%netscape.com
9e9a1d0cb1 bug 32794 -always set aStatus. sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@90689 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:26:58 +00:00
karnaze%netscape.com
51812fbe96 bug 44523 - Get the actual rg from the cell in AppendCell rather than use the row index. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90688 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:25:13 +00:00
cmanske%netscape.com
ff44c79be3 Part of fix for bug 73674. r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@90687 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:22:14 +00:00
cmanske%netscape.com
f6cda55380 Part of fix for plaintext editor bug 69536. r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@90686 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:19:47 +00:00
karnaze%netscape.com
d685aa34f2 bug 73629 - adjust mComputedWidth of a table or caption if it's nested, larger than avail width, not initial reflow. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90685 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:19:31 +00:00
darin%netscape.com
ff4c39a9b3 Fixes bug 72339. nsDNSService doesn't shutdown. r=gordon, sr=dougt
git-svn-id: svn://10.0.0.236/trunk@90684 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:18:51 +00:00
evaughan%netscape.com
715b316918 bug 12952
-r dan, -r vidur, -sr hyatt


git-svn-id: svn://10.0.0.236/trunk@90683 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:18:29 +00:00
cmanske%netscape.com
a7aa91803a String changes needed to fix plaintext editor bugs 69536, 69540, 69544, 69547, 73674, 71702. r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@90682 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:18:02 +00:00
nhotta%netscape.com
49fddcbf8d Changed to use nsIObserver for pref change notification, added notification for mail edit menu, bug 72180, r=ftang, sr=erik.
git-svn-id: svn://10.0.0.236/trunk@90681 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:17:22 +00:00
cmanske%netscape.com
43cde2aaed Fixed plaintext editor bugs 69536, 69540, 69544, 69547, 73674, 71702. r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@90680 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:16:44 +00:00
bienvenu%netscape.com
3f10d4e777 add progress and status msg to folder compaction r=naving, sr=sspitzer 34073
git-svn-id: svn://10.0.0.236/trunk@90679 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:14:18 +00:00
darin%netscape.com
fc0ec464ed Fixes bug 73231. nsFileTransport should report progress even if content-length
is unknown.  r=rpotts, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@90676 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 20:56:59 +00:00
pinkerton%netscape.com
7567a54abf make ownership of phantomScrollbarData more explicit to help out the GC. r=beard/sr=sfraser bug# 73774.
git-svn-id: svn://10.0.0.236/trunk@90675 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 20:55:34 +00:00
darin%netscape.com
9d246d14fd Fixes bug 73234. nsInputStreamChannel needs to forward itself as the request
in progress events.  r=rpotts, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@90674 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 20:55:26 +00:00
tao%netscape.com
ecd6b44b0d take out unreferenced variable.
git-svn-id: svn://10.0.0.236/trunk@90673 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 20:46:33 +00:00
tao%netscape.com
4bf818e99e 54998: RFE: UI language switching by command line option.
(r=tao,sr=hyatt), checkin for masaki-san.


git-svn-id: svn://10.0.0.236/trunk@90672 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 20:41:50 +00:00
tao%netscape.com
7ce8dde1ec 54998: RFE: Command line switch for UI language option. (r=tao,sr=hyatt).
checkin for masaki-san.


git-svn-id: svn://10.0.0.236/trunk@90671 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 20:37:23 +00:00
attinasi%netscape.com
4ff286524c Commented out assertion that is triggering in table regression tests: problem is covered by bug 71210, this just removes the assertion alert. r=karnaze
git-svn-id: svn://10.0.0.236/trunk@90670 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 20:06:15 +00:00
attinasi%netscape.com
499e5079c3 Avoid checking for duplicates when adding a context to the cache (perf. reasons). b=72217, r=jag, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@90669 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 19:58:51 +00:00
alecf%netscape.com
c8cf72656a fix for catfood bug 71950 r=blake, a=ben, sr=shaver
fix flex so that bookmark property labels are visible


git-svn-id: svn://10.0.0.236/trunk@90668 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 19:15:18 +00:00
darin%netscape.com
4425d1dd4f Fixes bug 73554. Incorrect error message for about-cache: when entry is not found.
patch=bbaetz@cs.mcgill.ca, r=bryner, sr=darin


git-svn-id: svn://10.0.0.236/trunk@90667 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 18:26:13 +00:00
darin%netscape.com
7c8d339f55 Fixes bug 73940. HTTP URLs with '?' characters should not be cached unless
an expiration time is explicitly provided by the server.
r=gagan,valeski sr=dougt,alecf


git-svn-id: svn://10.0.0.236/trunk@90666 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 18:24:13 +00:00
alecf%netscape.com
4ebe32a8dd fix for bug 73640 - make uri loader support "true" weak references so we can implement them from JavaScript
sr=mscott
r=jag


git-svn-id: svn://10.0.0.236/trunk@90665 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 18:09:03 +00:00
miodrag%netscape.com
326874f76b Updtates for LDAPJDK 4.14
git-svn-id: svn://10.0.0.236/trunk@90662 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 15:45:58 +00:00
ccarlen%netscape.com
09b82bb257 Sample code - not part of mozilla. Updating chrome url of throbber.
git-svn-id: svn://10.0.0.236/trunk@90661 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 15:26:50 +00:00
ccarlen%netscape.com
4d15e5d5b8 Sample code - not part of mozilla. Bug 60550 - fixing popup menu event handling.
git-svn-id: svn://10.0.0.236/trunk@90660 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 15:26:07 +00:00
nboyd%atg.com
902d0c64b6 Fix problem where errors wouldn't get source positions.
git-svn-id: svn://10.0.0.236/trunk@90659 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 14:42:37 +00:00
talisman%anamorphic.com
f4cffda5f1 Corrected XML library entry. jrg
git-svn-id: svn://10.0.0.236/trunk@90658 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 14:34:24 +00:00
ccarlen%netscape.com
9fc44ba828 Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@90657 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 14:08:59 +00:00
brade%netscape.com
969c24a963 part of fix for bug #19329 (more internet config apis); r=pchen; sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@90656 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 13:56:19 +00:00
disttsc%bart.nl
baadbf578f Clean up jar.mn, r=jst, sr=ben. Add browserBindings.xml, bug=65412, r=timeless, sr=ben
git-svn-id: svn://10.0.0.236/trunk@90655 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 11:35:28 +00:00
disttsc%bart.nl
0d9c9787d2 Catch exception for goHome(), add (better) exception comments to loadURI() and loadURIWithFlags(). r=timeless, sr=ben
git-svn-id: svn://10.0.0.236/trunk@90654 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 11:22:16 +00:00
locka%iol.ie
58e403d1c0 Cleaned up code style, indentation, replaced tabs with spaces. Added dummy implementations of nsITooltipListener and nsIContextMenuListener.
git-svn-id: svn://10.0.0.236/trunk@90653 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 11:20:18 +00:00
sgehani%netscape.com
86dd4cdb0f (*) Stat for permissions of destination dir.
(*) Hook libxpnet into linux installer.
(*) Add proxy support and download settings to linux installer.
(*) Make error dialog dismiss when OK is pressed.
(*) Miscellanous dialog title and position cleanup.
(*) Make readme show on ja_JP locale builds after scrolling the license.


git-svn-id: svn://10.0.0.236/trunk@90652 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 10:57:58 +00:00
sgehani%netscape.com
0cd5626284 Make Install.arguments return the correct value.
b = 72719
r = dveditz, dbragg
sr = mscott


git-svn-id: svn://10.0.0.236/trunk@90648 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 09:10:06 +00:00
disttsc%bart.nl
4a9116ac96 Move <browser/> xbl binding out into its own file. Changing extension from xbl to xml. NOT PART OF BUILD.
git-svn-id: svn://10.0.0.236/trunk@90647 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 09:07:18 +00:00
glazman%netscape.com
d87f222482 fix for Stylesheet Dump in viewer. b=71648, r=pierre, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90645 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 08:02:20 +00:00
chuang%netscape.com
4e29698c7e Not part of build, new files for re-factoring addrbook
git-svn-id: svn://10.0.0.236/trunk@90644 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 07:54:42 +00:00
chuang%netscape.com
fbc4850edf Not part of build, new files for re-factoring addrbook
git-svn-id: svn://10.0.0.236/trunk@90643 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 07:40:07 +00:00
disttsc%bart.nl
4346080c48 bug 73237: "we should not call window.focus() on all windows right before closing them on shutdown", author=Boris Zbarsky <bzbarsky@mit.edu>, r=jag, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@90642 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 07:09:16 +00:00
sspitzer%netscape.com
6654ba32cb #73551, fix js warnings. r=hwaara, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@90641 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 07:06:22 +00:00
hwaara%chello.se
cd19d729d4 Fix javascript strict warnings in mailWindowOverlay.js. bug 68525. r=timeless, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90640 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 06:37:54 +00:00
mscott%netscape.com
4c14010bc7 Bug #73738 --> fix a race condition in news. Fix crash trying to display inline images in news articles created by lipr0n.
Implement Save and Open attachment for news articles again from the message pane.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90639 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 06:21:45 +00:00
talisman%anamorphic.com
bffab49d41 Added note about double-clicking the Grendel app in the Finder under MacOS X. jrg
git-svn-id: svn://10.0.0.236/trunk@90638 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 05:52:57 +00:00
talisman%anamorphic.com
66b4522580 Added resources target so app resources get copied to the build products directory. jrg
git-svn-id: svn://10.0.0.236/trunk@90637 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 05:51:08 +00:00
talisman%anamorphic.com
119e8048a4 Updated with new build instructions, new external lib URLs, MacOS X info, and removed Edwin from the maintainer list in README. jrg
git-svn-id: svn://10.0.0.236/trunk@90636 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 05:39:28 +00:00
talisman%anamorphic.com
00c915cace Added some new variables to pass to the -classpath flag to javac, added rules to copy app resources to the build product directory. jrg
git-svn-id: svn://10.0.0.236/trunk@90635 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 05:38:09 +00:00
disttsc%bart.nl
e1c315491b Fix bustage. More hidden dependencies (no cookie!). Fix courtesy of bbaetz.
git-svn-id: svn://10.0.0.236/trunk@90634 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 05:36:59 +00:00
pinkerton%netscape.com
b2ed0ffb1f to work around a bug in OSX, check first if we're already at the location we're trying to move a popup to and if so, don't call MoveWindow. r=danm/sr=sfraser. bug#58226.
git-svn-id: svn://10.0.0.236/trunk@90624 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 04:33:08 +00:00
sspitzer%netscape.com
b0e6df16a2 fix #73724. stop clearing the message pane on reply and when you mark a message as read.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90623 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 04:32:14 +00:00
sspitzer%netscape.com
12896d8385 #73728. make click on a row in the thread column do what 4.x did. sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@90622 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 04:06:44 +00:00
pinkerton%netscape.com
94cbe70a27 adding nsIHistoryEntry.idl and nsISHistoryInternal.idl for radha.
git-svn-id: svn://10.0.0.236/trunk@90621 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 03:49:58 +00:00
talisman%anamorphic.com
41642ddf96 fixed a typo in the include directive. jrg
git-svn-id: svn://10.0.0.236/trunk@90620 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 03:49:31 +00:00
radha%netscape.com
860953531d Fixes related to bug # 71756 r=rpotts, valeski
git-svn-id: svn://10.0.0.236/trunk@90619 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 03:35:38 +00:00
radha%netscape.com
3af4196690 Fix for bug # 71756. New SH interfaces. r=rpotts, valeski
git-svn-id: svn://10.0.0.236/trunk@90618 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 03:32:42 +00:00
radha%netscape.com
83398f29bc Initial checkin for new SH interfaces
git-svn-id: svn://10.0.0.236/trunk@90617 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 03:31:13 +00:00
sspitzer%netscape.com
62f7b98ce9 #73416 get icons in the threadpane for the classic skin. sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@90616 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 03:13:40 +00:00
sspitzer%netscape.com
6013e21507 fix for #52034. show the special "imap deleted" icon in the thread pane if you delete
a message and your delete model is "mark as deleted".  sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90615 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 02:41:56 +00:00
talisman%anamorphic.com
6eb1464dc6 Initial checkin. A new Makefile for a new dir structure. jrg
git-svn-id: svn://10.0.0.236/trunk@90614 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 02:27:23 +00:00
talisman%anamorphic.com
6e0f05f0e7 New Makefile for a new dir structure. jrg
git-svn-id: svn://10.0.0.236/trunk@90613 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 02:26:20 +00:00
talisman%anamorphic.com
70af03653c Initial checkin. This manifest allows the resulting jar to be executable. jrg
git-svn-id: svn://10.0.0.236/trunk@90612 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 02:25:43 +00:00
talisman%anamorphic.com
321971b977 Updated Makefiles to build into separate dist/classes directory. jrg
git-svn-id: svn://10.0.0.236/trunk@90611 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 02:24:29 +00:00
sspitzer%netscape.com
babf18ba81 fix for some of the nntp connection problems. sr=bienvenu. #65927
git-svn-id: svn://10.0.0.236/trunk@90610 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 02:24:20 +00:00
bryner%uiuc.edu
b84bb24279 Bug 44257 -- fix tabbing from URL bar to document. r=saari, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@90608 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 02:08:06 +00:00
javi%netscape.com
0b4182d400 Make viewing a cert easier if you have a reference to a cert object.
A preliminary draft of the cert dump implementation.


git-svn-id: svn://10.0.0.236/trunk@90607 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 02:05:54 +00:00
despotdaemon%netscape.com
de28203f31 Pseudo-automatic update of changes made by shrutiv@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@90606 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 01:54:04 +00:00
talisman%anamorphic.com
01fb76f70e Added to make life easier for building. jrg
git-svn-id: svn://10.0.0.236/trunk@90605 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 01:44:30 +00:00
talisman%anamorphic.com
8857457433 removing autoconf stuff. jrg
git-svn-id: svn://10.0.0.236/trunk@90604 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 01:39:48 +00:00
nhotta%netscape.com
4ed985da78 Adding a new converter for HKSCS (contribution from Gavin.Ho@compaq.com), bug 25226, r=nhotta, ftang, sr=erik.
git-svn-id: svn://10.0.0.236/trunk@90603 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 01:20:37 +00:00
rginda%netscape.com
71108a9e54 fix for 73680, changes missed during the great XUL wacking.
patch by samuel@sieb.net, r=me, sr/r=shaver


git-svn-id: svn://10.0.0.236/trunk@90602 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 01:03:33 +00:00
peterlubczynski%netscape.com
6fa34b640c Plugins no longer get resize events bug 70429 a=av sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90601 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 01:02:30 +00:00
peterlubczynski%netscape.com
def9171742 NPP_SetWindow should be called after instantiating the stream bug 70686 a=av sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90600 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 01:00:47 +00:00
evaughan%netscape.com
a09ca6422a Part of accessibility landing
-r vidur -sr hyatt


git-svn-id: svn://10.0.0.236/trunk@90596 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:49:05 +00:00
morse%netscape.com
3d6f5c2667 bug 63373, crash in password-manager dialog, r=dr@netscape.com, sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@90595 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:45:51 +00:00
sgehani%netscape.com
85dcbe6866 66735: implement blocking processes on the mac.
git-svn-id: svn://10.0.0.236/trunk@90594 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:45:05 +00:00
sgehani%netscape.com
18734696f3 63454: updating desktop db properly when AppleSingle decoding; 72277: use Appearance manager for drawing default button; 72092: make welcome window text display correctly for all system fonts; 69154: make install log readable
git-svn-id: svn://10.0.0.236/trunk@90593 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:42:27 +00:00
nhotta%netscape.com
a9bd534094 Adding a new converter for HKSCS (contribution from Gavin.Ho@compaq.com), bug 25226, r=nhotta, ftang, sr=erik.
git-svn-id: svn://10.0.0.236/trunk@90591 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:13:45 +00:00
nhotta%netscape.com
5541f88e16 Adding a new converter for HKSCS (contribution from Gavin.Ho@compaq.com), bug 25226, r=nhotta, ftang, sr=erik.
git-svn-id: svn://10.0.0.236/trunk@90589 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:05:21 +00:00
sonmi%netscape.com
c05e3063bd added RSH variable, since 4 out of 5 rsh on NT don't work as expected...
git-svn-id: svn://10.0.0.236/trunk@90588 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:04:37 +00:00
sonmi%netscape.com
a250031821 fixed a win2K MKS problem (PATH seperator)
git-svn-id: svn://10.0.0.236/trunk@90587 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:03:59 +00:00
sonmi%netscape.com
7178c97084 changes for the new distributed stress test
-) split generating of cert into 2 functions, so we can add any
      number of certs to an existing Database
   -) added function to generate n certs for the stress test (run
      from the server side)^M


git-svn-id: svn://10.0.0.236/trunk@90586 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:03:02 +00:00
sonmi%netscape.com
b80f51495b changes for the new distributed stress test
-) improved errormessages
   -) changes to get around the DNS/ipaddress problem
   -) changes necessary for the remote side of the distributed test
        running in the server's directory structure
        messages and errormessages
   -) changes for the server side of the dist. stress test
        set $RSH for windows
        set variables for the certdatabase of the dist stress test


git-svn-id: svn://10.0.0.236/trunk@90585 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:02:27 +00:00
sonmi%netscape.com
739d0647aa changes for the new distributed stress test
-) to get around the DNS/ipaddress problem
   -) be sourcable from ssl_dist_stress.sh (share a lot of functionality)


git-svn-id: svn://10.0.0.236/trunk@90584 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:01:43 +00:00
sonmi%netscape.com
fd23bcdb89 distributed stress test
new script to run the server and the remote side of the test
   -) have cert.sh generate certs
   -) start a server
   -) launch strsclnts via rsh, each rsh with a range of certs to use
   -) wait 10 minutes
   -) shut down the server


git-svn-id: svn://10.0.0.236/trunk@90583 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 00:00:48 +00:00
heikki%netscape.com
97b7872494 Bug 56858, set pref layout.selectanchor to true to make link traversal also select link end.
git-svn-id: svn://10.0.0.236/trunk@90582 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:59:56 +00:00
gordon%netscape.com
11c474f077 Bug 73491 and bug 73513. Make the disk cache fail (more) gracefully. r=mcafee, sr=waterson.
git-svn-id: svn://10.0.0.236/trunk@90581 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:56:18 +00:00
nhotta%netscape.com
5f1da948d9 Adding a new converter for HKSCS, contribution from Gavin.Ho@compaq.com (not part of the build), bug 25226, r=nhotta, ftang, sr=erik.
git-svn-id: svn://10.0.0.236/trunk@90580 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:56:12 +00:00
nhotta%netscape.com
af2b1e806c Adding a new converter for HKSCS (contribution from Gavin.Ho@compaq.com), bug 25226, r=nhotta, ftang, sr=erik.
git-svn-id: svn://10.0.0.236/trunk@90579 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:51:58 +00:00
nhotta%netscape.com
91571613d8 Adding a new converter for HKSCS (not part of the build), bug 25226, r=nhotta, ftang, sr=erik.
git-svn-id: svn://10.0.0.236/trunk@90578 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:38:31 +00:00
leaf%mozilla.org
389898ff6e Automated update
git-svn-id: svn://10.0.0.236/trunk@90576 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:30:09 +00:00
jdunn%netscape.com
257b5f36ae needed to link in another lib to resolve all dependencies at link time
r= cls@seawood.org
# 72188


git-svn-id: svn://10.0.0.236/trunk@90575 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:23:10 +00:00
danm%netscape.com
bde610585a implement window.scrollbars.visible. bug 58539 r=hyatt,pinkerton
git-svn-id: svn://10.0.0.236/trunk@90574 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:23:09 +00:00
danm%netscape.com
6ee1a148db sigh. allow dependent windows without parents because the Mozilla code will try to do that
git-svn-id: svn://10.0.0.236/trunk@90573 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:19:12 +00:00
jdunn%netscape.com
5d30ca2ef8 when building sharedobjects set 2 additional flags for AIX
r= cls@netscape.com
# 72189


git-svn-id: svn://10.0.0.236/trunk@90572 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:18:37 +00:00
mjudge%netscape.com
9026e2a205 part of big editor checkin for 66318. this is NOT part of build yet but patches for this big change are going around to be approved so these files WILL be looked at. have no fear
git-svn-id: svn://10.0.0.236/trunk@90571 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:11:08 +00:00
pinkerton%netscape.com
e4b5accaab allow macs with low memory to build optimized by setting the |lowmem| option. bug 72945. r=peterv/sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@90570 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:08:32 +00:00
mjudge%netscape.com
6f39a499a2 66793 r= cmanske sr = attinasi
git-svn-id: svn://10.0.0.236/trunk@90569 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:02:21 +00:00
mkaply%us.ibm.com
04d9798734 #73620
r=jband, sr=brendan
Fix some places where we used casts instead of CALLBACKs


git-svn-id: svn://10.0.0.236/trunk@90568 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 22:59:33 +00:00
dr%netscape.com
d5732b9792 fix for 67731, r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90567 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 22:58:50 +00:00
rods%netscape.com
180f5d4f7f removing "inline" on method to fix SunOS bustage.
r=mkaply


git-svn-id: svn://10.0.0.236/trunk@90566 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 22:57:14 +00:00
rginda%netscape.com
261775c9c1 -- NOT PART OF ANY BUILD --
implement userIsOwner in ircbot.js
move the hook initialization into a function in mingus.js


git-svn-id: svn://10.0.0.236/trunk@90562 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 22:10:33 +00:00
rogerl%netscape.com
462a7977f6 Tentative fix for build releated issues.
git-svn-id: svn://10.0.0.236/trunk@90557 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 22:06:21 +00:00
rogerl%netscape.com
0eb159b375 Tentative fix for build related issues.
git-svn-id: svn://10.0.0.236/trunk@90556 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 22:05:48 +00:00
mkaply%us.ibm.com
bd6fe47e75 OS/2 breakage - need callback
git-svn-id: svn://10.0.0.236/trunk@90550 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 16:37:01 +00:00
scc%mozilla.org
f304577088 back myself out, sorry SunOS
git-svn-id: svn://10.0.0.236/trunk@90549 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 16:03:33 +00:00
waqar%netscape.com
fa880de309 #=66715
sr=jst
d=unsinged integer tested for < 0, removed the test, since it will always
be 0 or greater.


git-svn-id: svn://10.0.0.236/trunk@90548 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 15:40:15 +00:00
oeschger%netscape.com
35001657b4 xul1.0 fixes for help window, plus clean-up, NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@90547 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 15:30:28 +00:00
bienvenu%netscape.com
1c31cb4967 fix problem with missing messages in new view code r/sr =mscott, sspitzer 72698
git-svn-id: svn://10.0.0.236/trunk@90545 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 15:23:32 +00:00
bienvenu%netscape.com
8452e1b448 fix 42863 (pref for enabling env imap prot command), 26735 (respect read-only imap mailboxes) add pref for downloading msg bodies with msg headers for offline imap (15865) r=naving, sr=mscott,sspitzer
git-svn-id: svn://10.0.0.236/trunk@90544 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 15:22:14 +00:00
chak%netscape.com
737cba9658 Fix for bug#71751 - Change default font sizes for MfcEmbed
r=ksosez@softhome.net,chak


git-svn-id: svn://10.0.0.236/trunk@90543 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 15:18:03 +00:00
bienvenu%netscape.com
f3d4793056 send notification for going offline before we kill all the sockets r/sr darin,dougt 73374
git-svn-id: svn://10.0.0.236/trunk@90542 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 15:17:52 +00:00
valeski%netscape.com
3077b98973 sr=alecf. javadoc'ing comments and changing a param name
git-svn-id: svn://10.0.0.236/trunk@90541 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 15:12:57 +00:00
mkaply%us.ibm.com
4058fe29cb OS/2 bustage - need callback
git-svn-id: svn://10.0.0.236/trunk@90537 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 14:35:06 +00:00
scc%mozilla.org
aa43966ad2 syntax fix
git-svn-id: svn://10.0.0.236/trunk@90536 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 14:16:24 +00:00
rbs%maths.uq.edu.au
5a3c18409d fix bustage - typo
git-svn-id: svn://10.0.0.236/trunk@90535 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 14:05:49 +00:00
nboyd%atg.com
89feaa9efd Fix 73555.
git-svn-id: svn://10.0.0.236/trunk@90534 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 14:01:53 +00:00
peterv%netscape.com
a7eddab433 Fixing mac bustage.
git-svn-id: svn://10.0.0.236/trunk@90530 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 13:41:23 +00:00
rbs%maths.uq.edu.au
bac7e0a892 Datasets needed for bug 30543,72161. The MathFont Property Files (the metadata that guide the stretching of mutable MathML characters)
git-svn-id: svn://10.0.0.236/trunk@90529 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 13:22:03 +00:00
rbs%maths.uq.edu.au
e5d967a083 Mozilla MathML entities were as per MathML 1.x - bug 72161. Now they are MathML 2.0 conformant, and in line with the forthcoming Unicode 3.1 code points approved for math symbols
git-svn-id: svn://10.0.0.236/trunk@90527 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:56:15 +00:00
rbs%maths.uq.edu.au
6f89db1fb7 Follow up to bug 72161 - sync:ing ucvmath with the painstaking datasets needed for the MathFont Property Files
git-svn-id: svn://10.0.0.236/trunk@90526 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:41:48 +00:00
disttsc%bart.nl
78a54a411f Bustage fix, attempt #2: So Win32 seemed to like attempt #1, but Mac didn't. Different approach (I don't like this :-/ )
git-svn-id: svn://10.0.0.236/trunk@90525 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:39:59 +00:00
axel%pike.org
a5c956d8a3 not part of build, buster CSS cleanup, thanx to glazou, getting rid of !importants
git-svn-id: svn://10.0.0.236/trunk@90524 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:26:44 +00:00
locka%iol.ie
fe52992a4d Removed the BinDirectoryPath registry settings. Mozilla control now relies on the control kicker to set things up for it. b=71363
git-svn-id: svn://10.0.0.236/trunk@90523 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:23:51 +00:00
locka%iol.ie
0e338c12ee NOT PART OF BUILD. Makefile tweaks b=72851
git-svn-id: svn://10.0.0.236/trunk@90522 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:22:01 +00:00
locka%iol.ie
0c3724af68 NOT PART OF BUILD. Makefiles for embedding examples directory. b=72851
git-svn-id: svn://10.0.0.236/trunk@90521 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:19:05 +00:00
locka%iol.ie
6e3e4d5904 NOT PART OF BUILD. Makefiles for embedding wrappers directory. b=72851
git-svn-id: svn://10.0.0.236/trunk@90520 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:18:38 +00:00
locka%iol.ie
aa806a252d NOT PART OF BUILD. Readme for embedding wrappers directory. b=72851
git-svn-id: svn://10.0.0.236/trunk@90519 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:16:59 +00:00
locka%iol.ie
8466c220df NOT PART OF BUILD. Readme for embedding examples directory. b=72851
git-svn-id: svn://10.0.0.236/trunk@90518 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:16:32 +00:00
disttsc%bart.nl
cc4022c1c2 I'll have to figure out sometime why mac/win don't like assigning an nsAReadableString into a (static?) nsString... hope this fixes the bustage.
git-svn-id: svn://10.0.0.236/trunk@90517 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:12:16 +00:00
rods%netscape.com
c4b399df8d This now enables print listeners, print progress and the cancelling of printing
Bug 70946 & Bug 70949 r=dcone,chak sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@90516 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 12:04:30 +00:00
rods%netscape.com
bc01926696 This now enables print listeners, print progress and the cancelling of printing
Bug 70946 & Bug 70949 r=dcone,chak sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@90515 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 11:56:03 +00:00
disttsc%bart.nl
f69c0e7cd8 bug 73339: Remove NS_ConvertToString (just another name for NS_ConvertASCIItoUCS2) from the tree. r=jst, sr=scc
git-svn-id: svn://10.0.0.236/trunk@90514 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 11:17:17 +00:00
disttsc%bart.nl
6a8a51830a Move <browser/> xbl binding out into its own file. NOT PART OF BUILD.
git-svn-id: svn://10.0.0.236/trunk@90513 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 10:17:43 +00:00
mcafee%netscape.com
c768d72d23 openLocation.xul moved from navigator to communicator, url unassigned and not needed (70164). r=jag, sr=ben
git-svn-id: svn://10.0.0.236/trunk@90510 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 09:27:31 +00:00
disttsc%bart.nl
0bd712cf0a bug 73350: Remove USE_OBUFFER sections from mimetpla.cpp, r=ben.bucksch@beonex.com, sr=bienvenu, moa=ducarroz
git-svn-id: svn://10.0.0.236/trunk@90509 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 09:26:25 +00:00
darin%netscape.com
d69946b4a5 Add progress event sink notification test.
git-svn-id: svn://10.0.0.236/trunk@90502 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 08:23:42 +00:00
beard%netscape.com
a3f45d7675 [not part of build] Update to newer version of interface.
git-svn-id: svn://10.0.0.236/trunk@90501 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 08:17:20 +00:00
morse%netscape.com
a8b7b7214e bug 73341, fix regression in previous checkin, r=disttsc@bart.nl, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90500 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 07:54:39 +00:00
pschwartau%netscape.com
7423699d90 Minor corrections to code and whitespace.
git-svn-id: svn://10.0.0.236/trunk@90499 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 07:53:14 +00:00
mcafee%netscape.com
30460f1fe9 Changing x-remote help url to mozilla.org version, instead of 1994 jamie doc (70167). r=bryner, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@90497 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 07:48:11 +00:00
pschwartau%netscape.com
60e2112c26 Minor fixes to code and whitespace.
git-svn-id: svn://10.0.0.236/trunk@90496 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 07:43:17 +00:00
mscott%netscape.com
fa5fa5c2ab 67997 --> make saving local mail attachments work directly from the message pane. To do this,
nsMailboxService now support nsIMsgMessageFetchService.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90493 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 07:35:45 +00:00
mscott%netscape.com
e3190f3551 67997 --> now that the mail protocols automatically invoke a mime converter to extract parts, save attachment
shouldn't attempt to automatically invoke a converter. (removing code we don't need)

sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90492 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 07:26:09 +00:00
pschwartau%netscape.com
b9c3090bfe Minor corrections to code and style -
git-svn-id: svn://10.0.0.236/trunk@90491 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 07:16:36 +00:00
shaver%mozilla.org
fc19bd3692 correct cast to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@90490 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:44:00 +00:00
waterson%netscape.com
b50a206653 Fix windows bustage.
git-svn-id: svn://10.0.0.236/trunk@90489 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:39:05 +00:00
waterson%netscape.com
03cb2db790 Bug 73540. Make sure [JS|PL]DHashTable clear live entries while finalizing. Remove induction variable from [JS|PL]_DHashEnumerate() along the way. r=brendan, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@90488 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:24:25 +00:00
mscott%netscape.com
bce13671b2 Bug #73412 --> land new message display code.
r=hewitt
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90487 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:09:35 +00:00
waterson%netscape.com
0140577989 Fix regression tests bitrot on Linux. r=karnaze
git-svn-id: svn://10.0.0.236/trunk@90486 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:09:16 +00:00
mscott%netscape.com
8e10a861be Bug #73412 --> land new message display code. New code is faster to display messages due to a simpler UI for header display.
introduce a collapsed mode for header display.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90485 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:08:45 +00:00
mscott%netscape.com
deb90d9539 Bug #73412 --> land new message display code.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90484 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:08:07 +00:00
shaver%mozilla.org
44326fc42c 50602: Add support in XPConnect for sharing of refcounted string BufferHandles,
in both directions.
72552: Remedy overzealous CHECK_REQUEST placement in jsapi.c, to produce a
       minimal-but-complete set of engine entry points that require a Request
       for safe execution.
r=brendan, sr=jband, assist=scc,pinkerton


git-svn-id: svn://10.0.0.236/trunk@90483 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:04:44 +00:00
pinkerton%netscape.com
6e92e75066 doh, biffed a level of indirection.
git-svn-id: svn://10.0.0.236/trunk@90482 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:04:33 +00:00
pinkerton%netscape.com
9c95bb0dca fix ownership model when copying images. caller needs to own bits, not the helper class. r=jag/sr=hyatt. bug# 73517
git-svn-id: svn://10.0.0.236/trunk@90481 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:02:54 +00:00
pschwartau%netscape.com
1b05c381cc Initial add. Testcase for the internal [[Class]] property of Objects.
git-svn-id: svn://10.0.0.236/trunk@90480 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 05:50:08 +00:00
pschwartau%netscape.com
f468f7c9bf Initial add. Utility functions for testing Objects.
git-svn-id: svn://10.0.0.236/trunk@90479 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 05:48:48 +00:00
shaver%mozilla.org
8939a0892b 63027: Adding evalInSandbox to JS component loader script-context, to permit
JS components to execute script code with restricted privileges and
       controlled access to their (privileged) environment. r=brendan,
       sr=jband.


git-svn-id: svn://10.0.0.236/trunk@90478 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 05:35:52 +00:00
bryner%uiuc.edu
a90edd2fb0 Backing out joe.chou@eng.sun.com's changes, they broke the Mac. r=sdagley.
git-svn-id: svn://10.0.0.236/trunk@90475 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 03:49:31 +00:00
pavlov%netscape.com
c0936f4c34 fix for timer crash with animated images when changing pages bug 73477 r=pinkerton sr=brendan
git-svn-id: svn://10.0.0.236/trunk@90466 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 02:42:51 +00:00
cmanske%netscape.com
cc0eeec80b Fixed image align reversal for 'left' / 'right', b=73326, r=blake, sr=kin
git-svn-id: svn://10.0.0.236/trunk@90464 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 01:09:37 +00:00
cmanske%netscape.com
a3edf4b1bd Replaced 'value' with 'label' for Table dialog checkboxes, b=73479, r=blake, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@90463 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 01:06:55 +00:00
rpotts%netscape.com
be28647be6 All nsIProgressEventSink notifications from the socket transport should go to the nsHTTPChannel...
git-svn-id: svn://10.0.0.236/trunk@90462 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 00:56:51 +00:00
joe.chou%eng.sun.com
ca525acad2 bug=64296
r=edburns
sr=waterson

This checkin idlifies some files in the plugin hierarchy.

The following files are in this checkin.

build/mac/build_scripts/MozillaBuildList.pm
modules/oji/public/MANIFEST
modules/oji/public/MANIFEST_IDL
modules/oji/macbuild/ojiIDL.mcp
modules/plugin/public/MANIFEST
modules/plugin/public/MANIFEST_IDL
modules/plugin/macbuild/pluginIDL.mcp
modules/oji/public/Makefile.in
modules/oji/public/makefile.win
modules/oji/public/nsIJVMPluginInstance.idl
modules/plugin/public/Makefile.in
modules/plugin/public/makefile.win
modules/plugin/public/nsIPluginManager.idl


git-svn-id: svn://10.0.0.236/trunk@90461 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 00:37:58 +00:00
rpotts%netscape.com
8c05ca7fc8 All nsIProgressEventSink notifications from the socket transport should go to the nsHTTPChannel... (r=darin)
git-svn-id: svn://10.0.0.236/trunk@90460 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 00:20:04 +00:00
mcgreer%netscape.com
264eb17c61 change cert mgr to use outliner
git-svn-id: svn://10.0.0.236/trunk@90459 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 00:18:21 +00:00
mkaply%us.ibm.com
55b9bf2c68 #67913
r=mkaply, sr=blizzard
Take into account WarpCenter when determining AvailRect


git-svn-id: svn://10.0.0.236/trunk@90456 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:51:26 +00:00
shanjian%netscape.com
fa3b62c07b #72125 default font for simplified chinese system does not work
r = ftang, sr=erik
Add fallback font list for default font.


git-svn-id: svn://10.0.0.236/trunk@90455 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:49:28 +00:00
sspitzer%netscape.com
40a203070e when reading news, show "lines" as the header of the "size" column
since we are actually showing (and sorting) line counts.
this broke when we landed the mailnews perf branch.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90454 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:44:42 +00:00
shanjian%netscape.com
0921cae7a0 #72125 default font for simplified chinese system does not work
r = ftang, sr=erik
Add fallback font list for default font.


git-svn-id: svn://10.0.0.236/trunk@90453 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:43:52 +00:00
cls%seawood.org
238046be17 Change netwerk/mime to use MODULE=mimetype to remove avoid confusion with mailnews/mime . Update necessary REQUIRES.
Bug #68381 r=jag


git-svn-id: svn://10.0.0.236/trunk@90452 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:40:28 +00:00
sspitzer%netscape.com
b8e92c1eb1 when reading news, show (and sort) "lines" in the size column. sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@90451 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:38:56 +00:00
erik%netscape.com
b2e098296e checkin for prabhat.hegde@eng.sun.com:
bug 63478; r=bstell@netscape.com, sr=erik@netscape.com
recognize additional Thai fonts
fix compile bug


git-svn-id: svn://10.0.0.236/trunk@90450 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:38:36 +00:00
dougt%netscape.com
82cb3363c6 Renaming xpcom file streams. b=73169, r=sfraser@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90449 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:35:06 +00:00
shanjian%netscape.com
c08e448627 #72625 system fonts are sometimes not correctly setup for CJK windows
r = ftang, sr=erik
The font name in CJK should be converted to unicode before assignment.
we can not assume those are always ascii.


git-svn-id: svn://10.0.0.236/trunk@90448 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:32:38 +00:00
dougt%netscape.com
94b77f315b Fix to prevent ODA from firing if there is no data. b71498, r=valeski@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90447 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:32:19 +00:00
mkaply%us.ibm.com
e324a073a6 #73191
r=beard, sr=brendan
Remove CRT_CALL - change to PR_CALLBACK or JS_DLL_CALLBACK appropriately


git-svn-id: svn://10.0.0.236/trunk@90446 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:21:53 +00:00
darin%netscape.com
560da80273 Fixes bug 73447. When using a proxy, shift-reload does not force a refresh
from the network.  patch=bbaetz@cs.mcgill.ca, r/sr=darin,dougt


git-svn-id: svn://10.0.0.236/trunk@90445 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:20:07 +00:00
sspitzer%netscape.com
016adf4be1 fix for #73416. show the proper icons in the thread pane.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90443 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:17:33 +00:00
darin%netscape.com
c5cac01b12 Fixes bug 72973. HTTP needs to release its cache output stream before
releasing its cache entry descriptor.  r=sean@beatnik.com, sr=dougt@netscape.com


git-svn-id: svn://10.0.0.236/trunk@90441 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:12:33 +00:00
jeff.dyer%compilercompany.com
1bae7d6c03 Adding JSILGenerator code
git-svn-id: svn://10.0.0.236/trunk@90439 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 22:37:50 +00:00
javi%netscape.com
b1935fdd91 Install the loadable roots when installing pipnss.dll
git-svn-id: svn://10.0.0.236/trunk@90438 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 22:32:36 +00:00
jeff.dyer%compilercompany.com
c66ef4b453 Updating JSC with framework for semantics in cpp.
git-svn-id: svn://10.0.0.236/trunk@90437 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 22:31:11 +00:00
terry%mozilla.org
7aed8c81e3 Improve error message
git-svn-id: svn://10.0.0.236/trunk@90435 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 22:10:36 +00:00
pschwartau%netscape.com
46ebb3586d In some shells, carriage returns are "\n"; in others, "\r\n". Look for either possibility -
git-svn-id: svn://10.0.0.236/trunk@90434 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 22:00:53 +00:00
pinkerton%netscape.com
cb63f63515 adding libpr0n libraries to package list sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@90433 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 19:49:41 +00:00
chak%netscape.com
5c63bdf422 Fix for blocker bug #73225 - Launching mfcembed crashes in GKLAYOUT.DLL
r=cls,a=ducarroz


git-svn-id: svn://10.0.0.236/trunk@90432 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 19:03:06 +00:00
bernd.mielke%snafu.de
2a0f6a04cf adding table regression test - not part of the build
git-svn-id: svn://10.0.0.236/trunk@90428 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 14:58:11 +00:00
kestes%tradinglinx.com
f9440480ac put correct mailing address in comment.
git-svn-id: svn://10.0.0.236/trunk@90427 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 14:08:42 +00:00
kestes%tradinglinx.com
fea54d81fe put correct mailing address in comment.
git-svn-id: svn://10.0.0.236/trunk@90426 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 14:05:48 +00:00
kestes%tradinglinx.com
fe5b32d7c4 for security, set a umask.
typo with $MINIMUM_BUILD_SECONDS was causing too little sleeping and
many builds occured flooding my disk space.


git-svn-id: svn://10.0.0.236/trunk@90425 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 13:37:24 +00:00
kestes%tradinglinx.com
bba7e16977 for security, set a umask
git-svn-id: svn://10.0.0.236/trunk@90424 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 13:36:28 +00:00
kestes%tradinglinx.com
a1d71995da got the mindate/maxdate backwards for the "C" link. I thought I fixed
this already.


git-svn-id: svn://10.0.0.236/trunk@90423 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 13:36:00 +00:00
timeless%mac.com
3c0c6a5ea2 Bugzilla Bug 73426 fix viewallnotes.cgi compile errors <q src="tinderbox" class="errors"/>
fixes tinderbox bustage


git-svn-id: svn://10.0.0.236/trunk@90421 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 10:49:46 +00:00
jst%netscape.com
30c485b610 Adding interface file, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@90418 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 10:45:45 +00:00
dveditz%netscape.com
588674c115 fix commercial bustage and make depend builds not break when MOZ_SRC
slash goes the wrong way. r=cls


git-svn-id: svn://10.0.0.236/trunk@90416 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 08:39:11 +00:00
karnaze%netscape.com
d066bd289c new regression test not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90415 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 06:23:01 +00:00
karnaze%netscape.com
b9017017e4 bug 60749 - on a table cell frame style change reflow, reinitialize the table's strategy.
git-svn-id: svn://10.0.0.236/trunk@90414 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 06:13:56 +00:00
karnaze%netscape.com
f23390bfb2 new regression test not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90413 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 05:27:48 +00:00
karnaze%netscape.com
fce7835641 bug 73321 - fix regression caused by the cleanup bug 70989.
git-svn-id: svn://10.0.0.236/trunk@90411 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 05:16:32 +00:00
mscott%netscape.com
8c5611b908 If the date is today then only show a time, don't show the date in the message pane.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90410 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 05:07:19 +00:00
mscott%netscape.com
b04f0cda98 If the date is today then only show a time, don't show the date in the thread pane.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90409 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 05:07:08 +00:00
blakeross%telocity.com
8c4470b45a pav sucks. Fixing his startup crash (he didn't checkin the patch that fixed the double mem free). How did mozbot miss this?!?
git-svn-id: svn://10.0.0.236/trunk@90408 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 05:06:11 +00:00
pavlov%netscape.com
ef8db86d05 fix for the remaining gif leaks. bug 73394. r=saari sr=mozbot
git-svn-id: svn://10.0.0.236/trunk@90405 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 02:22:40 +00:00
karnaze%netscape.com
b127d9a834 new regression test not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90404 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 01:47:51 +00:00
karnaze%netscape.com
8bb773c2fd fixed regression test, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90403 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 00:57:38 +00:00
karnaze%netscape.com
334d8c996b bug 45055 - additional rounding for max element size and maximumWidth.
git-svn-id: svn://10.0.0.236/trunk@90402 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 00:56:44 +00:00
pavlov%netscape.com
0f064a2040 fixing leaks in the new gif decoder bug 73394 r=pinkerton sr=shaver
git-svn-id: svn://10.0.0.236/trunk@90401 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 00:11:53 +00:00
cls%seawood.org
c2a55d3959 Backing out previous checkin.
git-svn-id: svn://10.0.0.236/trunk@90400 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 23:53:37 +00:00
disttsc%bart.nl
d04cf04c88 Fix wchar_t bustage in wallet (oops).
git-svn-id: svn://10.0.0.236/trunk@90399 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 23:51:44 +00:00
av%netscape.com
4d26893c6c First check in. The Spy Plugin. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@90398 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 23:48:19 +00:00
endico%mozilla.org
cd0549b6cd commented out nss and nspr from tinderbox module since at this time checkins to those dirs will only yeild false positives. The only checkins there that will show up in tinderbox will be to the head, which doesn't affect client bustage.
git-svn-id: svn://10.0.0.236/trunk@90397 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 23:47:42 +00:00
av%netscape.com
62061956cd First time in. The Spy Plugin. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@90396 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 23:38:33 +00:00
disttsc%bart.nl
311f371d27 Some string, IID and CID cleaning in singsign.cpp, wallet.cpp, bug=73341, r=morse, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@90395 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 23:07:49 +00:00
karnaze%netscape.com
a16af1f12b new regression tests not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90394 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 23:06:50 +00:00
karnaze%netscape.com
da773f42f0 bug 45055 - align row heights on pixel boundaries when distributing extra space vertically. Work around block bug by rounding cells to even pixel boundary. sr=attinasi, r=bernd.mielke@snafu.de
git-svn-id: svn://10.0.0.236/trunk@90393 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 23:06:08 +00:00
disttsc%bart.nl
ce927d9f65 Clean up REQUIRES lines. r=cls
git-svn-id: svn://10.0.0.236/trunk@90392 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 22:59:27 +00:00
karnaze%netscape.com
06ce1683e5 bug 51140 - put placeholder frame which gets a pseudo table related frame into the correct pseudo child list. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90391 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 22:54:23 +00:00
bienvenu%netscape.com
d9ef559644 get replying to offline msg working sr=sspitzer 64424
git-svn-id: svn://10.0.0.236/trunk@90390 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 22:13:22 +00:00
karnaze%netscape.com
cc065f7a4f new regression tests not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90389 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 21:56:30 +00:00
blizzard%redhat.com
751c3a5b1f Query pointer for great justice. Part of bug #72556. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@90388 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 21:55:37 +00:00
scc%mozilla.org
4c9b344399 syntax fix
git-svn-id: svn://10.0.0.236/trunk@90387 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 21:51:40 +00:00
cls%seawood.org
652442b29a Add _NO_FLOCK back to make-jars.pl options.
git-svn-id: svn://10.0.0.236/trunk@90386 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 21:40:04 +00:00
scc%mozilla.org
4e305a6256 remove hidden depencies, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@90385 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 21:33:50 +00:00
karnaze%netscape.com
1ac4da86ee regression test cleanup, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90384 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 20:21:31 +00:00
cls%seawood.org
d29e9e1ce2 Erk. --enable-chrome-format actually defaults to jar not both.
git-svn-id: svn://10.0.0.236/trunk@90383 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 20:18:18 +00:00
karnaze%netscape.com
633a8de707 bug 72181 - treat style change reflow like initial reflow (with same optimizations). sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90382 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 20:06:29 +00:00
bienvenu%netscape.com
8bff542773 fix loading a newsgroup and loading a news message while offline sr=sspitzer 15865
git-svn-id: svn://10.0.0.236/trunk@90381 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 19:33:18 +00:00
bienvenu%netscape.com
16aefa57dc add new pref for limiting size of messages downloaded for offline 15865 sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90380 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 18:48:27 +00:00
bienvenu%netscape.com
83e7571b51 add some status text for offline 15865 sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90379 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 18:47:54 +00:00
bienvenu%netscape.com
364de87773 add synchronize for offline, some status text 15865 sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90378 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 18:45:47 +00:00
scc%mozilla.org
5941f7b891 syntax fix
git-svn-id: svn://10.0.0.236/trunk@90377 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 18:43:10 +00:00
scc%mozilla.org
414ed7319d fix HPUX bustage, and additionally added some comments
git-svn-id: svn://10.0.0.236/trunk@90376 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 18:06:27 +00:00
karnaze%netscape.com
997bef3c05 fix regression test, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90375 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 18:01:21 +00:00
blakeross%telocity.com
f21f284aef Removing non-compliant text/xul mimetype, replacing with application/vnd.mozilla.xul+xml (28237, patch by gerv@gerv.net). r=blake sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90374 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 16:49:38 +00:00
beard%netscape.com
0281a6c15a [not part of build] maintains a compact directory of disk cache entries, for disk cache version 1.
git-svn-id: svn://10.0.0.236/trunk@90368 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 15:49:31 +00:00
beard%netscape.com
e1c6228bd9 [not part of build] nsIInputStream/nsIOutputStream wrappers for ANSI FILE objects.
git-svn-id: svn://10.0.0.236/trunk@90367 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 15:47:36 +00:00
pavlov%netscape.com
323f3a2398 fix for hugeass memory leak. bug 73351. r=jag sr=mozbot
git-svn-id: svn://10.0.0.236/trunk@90366 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 11:57:25 +00:00
maolson%earthlink.net
3000630cf2 no bug. removing an old line that crept into blake's xul syntax change
r=jag, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@90365 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 09:08:28 +00:00
endico%mozilla.org
fa24fcf482 Lets be consistant. Switch back to #!/usr/bonsaitools/bin/perl -w
git-svn-id: svn://10.0.0.236/trunk@90364 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 08:59:55 +00:00
talisman%anamorphic.com
4474ba111d MOVED these files to sources/grendel/widgets/toolbar/mozilla.
git-svn-id: svn://10.0.0.236/trunk@90363 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 08:07:56 +00:00
talisman%anamorphic.com
762db4f9f4 REORG of source tree. Hierarchy is much cleaner now. Makefiles will likely be broken until next checkin. You've been warned.
git-svn-id: svn://10.0.0.236/trunk@90362 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 07:51:47 +00:00
cls%seawood.org
e3da50bc7a Whitespace change for tinderbox test
git-svn-id: svn://10.0.0.236/trunk@90360 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 07:04:14 +00:00
endico%mozilla.org
65744f536a add MozillaTinderboxAll module
git-svn-id: svn://10.0.0.236/trunk@90359 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 06:51:21 +00:00
cls%seawood.org
eb778f307b Add prelim support for tracking multiple branches on tinderbox
git-svn-id: svn://10.0.0.236/trunk@90358 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 06:21:35 +00:00
cls%seawood.org
942b891412 Add -lc to OS_LIBS for Linux.
Bug #72766


git-svn-id: svn://10.0.0.236/trunk@90357 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 04:44:02 +00:00
cls%seawood.org
fa4bebd3ff Add the jar files to the package list. (How did the installer ever work without them?)
Bug #73335 r=bryner


git-svn-id: svn://10.0.0.236/trunk@90356 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 04:40:52 +00:00
cls%seawood.org
9ed685ec50 Add -lc to LIBS/OS_LIBS for Linux.
Bug #72766 r=bryner


git-svn-id: svn://10.0.0.236/trunk@90355 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 04:32:08 +00:00
pavlov%netscape.com
b754d759a4 fix for bug 73345. r=hixie,bryner sr=cls
git-svn-id: svn://10.0.0.236/trunk@90354 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 02:56:38 +00:00
disttsc%bart.nl
8874b002ef Fix Win32 bustage by adding NS_COM to declaration of StringAllocator_[char|wchar_t](), r/sr=scc
git-svn-id: svn://10.0.0.236/trunk@90353 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 02:26:33 +00:00
scc%mozilla.org
3b6f8d16d6 bug #73297, r=shaver, sr=darin. Give string buffers an allocator hook to tie into js et al
git-svn-id: svn://10.0.0.236/trunk@90352 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 01:14:26 +00:00
av%netscape.com
0dd79e0251 To fix bug 58128. For old style plugins: added nsIPlugin::Shutdown as well as dll unload upon destroying the last plugin instance. r=peterl, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90351 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 00:28:53 +00:00
mscott%netscape.com
58b26a34a7 Bug #73250, 67997 --> be sure to pass out just the part or attachment by automatically
invoking a mime converter. This fixes an infinite loop with libpr0n and saving attachments
from the browser window.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90350 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 00:26:40 +00:00
mscott%netscape.com
2fe5bf86ca Bug #73250, 67997 --> fix infinite loop when displaying images with the new image lib.
When fetching a part or an attachment to an imap message, automatically invoke a mime converter
to extract just the part. this fixes saving mail attachments from the browser window.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90349 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 00:24:41 +00:00
karnaze%netscape.com
222cdae092 bug 72396 - fix CalcBorderBoxWidth to not use unconstrained width. Fix column balancing to be skipped when there is an unconstrained width. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90348 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 23:15:49 +00:00
disttsc%bart.nl
d9ef6a1ec6 Bug 60952: nsMimeTypes.h has wrong type for APPLICATION_HTTP_INDEX, author=Bradley Baetz <bbaetz@cs.mcgill.ca>, r=blake, sr=darin
Bug 68651, nsFtpConnectionThread should use NS_LITERAL_STRING, author=Bradley Baetz <bbaetz@cs.mcgill.ca>, r=jag, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@90347 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 22:57:35 +00:00
bryner%uiuc.edu
2b646c3714 Removing xp_regexp.h, now that it's unused. Bug 73297. r=blake, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@90346 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 20:13:06 +00:00
shaver%mozilla.org
52c5230a7b 72495 redux: last references to xp_regexp.h, r=bryner, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@90345 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 18:54:13 +00:00
bienvenu%netscape.com
c2d04ac67a get status msgs working again for imap 73241, couple small fixes for offline imap 15865 r=naving, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90344 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 14:53:54 +00:00
cls%seawood.org
22028a0475 If doing jar only builds, unzip all known jar files and add select chrome files to embed.jar. Bug #72390
git-svn-id: svn://10.0.0.236/trunk@90343 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 14:36:25 +00:00
cls%seawood.org
4d5fc93e6a Add a space to make verbose output less confusing
git-svn-id: svn://10.0.0.236/trunk@90342 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 13:44:41 +00:00
cls%seawood.org
1a21bbb1ce Extract chrome files from moz .jars to create embed.jar if building with jar chrome only. Bug #72390. Shoudl fix tinderbox bustage too.
git-svn-id: svn://10.0.0.236/trunk@90341 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 13:38:53 +00:00
disttsc%bart.nl
5afd721d44 Fix senna bustage (MOZ_TRACK_MODULE_DEPS)
git-svn-id: svn://10.0.0.236/trunk@90340 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 12:02:07 +00:00
cls%seawood.org
491faaa272 Only build chrome jar files by default. Use either --enable-chrome-format (autoconf) or MOZ_CHROME_FILE_FORMAT (win32) to override.
Bug #72390 r=jag


git-svn-id: svn://10.0.0.236/trunk@90339 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 11:07:15 +00:00
gayatrib%netscape.com
9c0a34ecc8 Implementing deleting/filing messages on single and multiple folders in search. Fixed regression introduced after merging performance branch that search does not display number of search hits. r=bhuvan,bienvenu. sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@90338 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 09:08:26 +00:00
sfraser%netscape.com
2c914c21f2 Fix the imglib2 build stuff to not break the build progress functionality, by keying off build{foo} rather than options{foo}
git-svn-id: svn://10.0.0.236/trunk@90337 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 08:06:38 +00:00
sfraser%netscape.com
a9b490a249 Add libimg2 to the list of modules, which is what saari should have done.
git-svn-id: svn://10.0.0.236/trunk@90336 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 07:38:33 +00:00
bryner%uiuc.edu
272bfc695e If we get the URI from the channel, return the result of that call, not NS_ERROR_FAILURE. r=saari, sr=tor.
git-svn-id: svn://10.0.0.236/trunk@90335 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 07:12:41 +00:00
dmose%netscape.com
089c45bae6 Initial interface and implementation of a class that represents the unique characteristics of an nsILDAPConnection (bug 70421). Patch from Leif Hedstrom <leif@netscape.com>. r=<dmose@netscape.com>, sr=<shaver@mozilla.org>.
git-svn-id: svn://10.0.0.236/trunk@90334 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 07:09:55 +00:00
saari%netscape.com
7f677b102d fixing typo in mac build script to ensure that you can build with useimg2 set to off.
git-svn-id: svn://10.0.0.236/trunk@90333 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 07:08:21 +00:00
attinasi%netscape.com
05ca9509c1 CSS-only fix - Fixes invalid values for content property. b=72315 r=dbaron, hwaara
git-svn-id: svn://10.0.0.236/trunk@90332 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 06:25:33 +00:00
dmose%netscape.com
017440453f Fix MOZ_TRACK_MODULE_DEPS bustage with --enable-xpctools (bug 72120). Only touches unix build-system. r=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@90331 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 06:14:28 +00:00
saari%netscape.com
58a391cde8 fix opt build
git-svn-id: svn://10.0.0.236/trunk@90330 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 04:55:47 +00:00
saari%netscape.com
bcb70008ee oh fine, try this fix for mac
git-svn-id: svn://10.0.0.236/trunk@90329 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 04:05:07 +00:00
saari%netscape.com
e83d14be2e pull libpr0n on mac
git-svn-id: svn://10.0.0.236/trunk@90328 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 03:31:16 +00:00
saari%netscape.com
dd45ea39cd libpr0n 4 mac
r=pinkerton,pavlov, sr=smfr


git-svn-id: svn://10.0.0.236/trunk@90327 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 02:44:26 +00:00
saari%netscape.com
4b5b8ff105 like MIR, libpr0n is landing for mac
r=pinkerton, pavlov, sr=smfr


git-svn-id: svn://10.0.0.236/trunk@90326 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 02:44:07 +00:00
saari%netscape.com
0bccf5846b jpeg decoder for mac libpr0n
git-svn-id: svn://10.0.0.236/trunk@90325 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 02:30:15 +00:00
hyatt%netscape.com
a84416574c Forgot xul atoms.
git-svn-id: svn://10.0.0.236/trunk@90324 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 02:22:32 +00:00
andreww%netscape.com
d0f930b470 bugzilla 45034 r=timeless, sr=hewitt, mail filter dialog cleanup.
git-svn-id: svn://10.0.0.236/trunk@90323 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 02:09:33 +00:00
andreww%netscape.com
4c0882bc4c bugzilla 45034 r=timeless, sr=hewitt :mail filter ui cleanup
git-svn-id: svn://10.0.0.236/trunk@90322 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 02:08:49 +00:00
hyatt%netscape.com
71357fbdd2 Fix misalignment problem in the outlienr for image cols.
git-svn-id: svn://10.0.0.236/trunk@90321 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 02:04:57 +00:00
hyatt%netscape.com
9f6ea62170 Turning on images in outliner. r=pav, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@90320 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:50:33 +00:00
hewitt%netscape.com
fc80a315c2 73199 - scrollbar image missing (for atontti@cc.hut.fi), r=bzbarsky, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@90319 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:40:56 +00:00
hewitt%netscape.com
3db7d456c3 72231 - splitter images missing, r=hwaara, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@90318 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:40:42 +00:00
radha%netscape.com
fa73d43aec Fix for bug # 69457 r=valeski, rpotts
git-svn-id: svn://10.0.0.236/trunk@90316 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:23:42 +00:00
cmanske%netscape.com
2ab803eb5e Fixed Image dialog. b=73043, r=kin, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@90315 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:17:27 +00:00
sspitzer%netscape.com
d414eaff38 fix it so we show the right sort indicator when viewing a folder (or newsgroup) for the first time.
add "View | Sort By | Thread" back to the menus.

add an accelerator for "Select Thread" (ctrl shift a). #21094

make it so when we delete the last message in the folder, we clear  out the message pane.
make it so when we compact folders, we blank out the thread pane. #72674

fix some crashers when clicking on the thread pane and there is no db or there are no rows.  #72282

kill thread should not be "ctrl w", it should be "w".  #73260

sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90314 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:12:33 +00:00
cmanske%netscape.com
c3fb9b6033 Fixed Join Cells enabling. b=71985, r=hyatt, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@90313 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:11:33 +00:00
pierre%netscape.com
4376913cf6 Debug files for bug 43457. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@90312 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:07:31 +00:00
sspitzer%netscape.com
15c7051ebc fix it so we won't try to send "ARTICLE <" to the nntp server. on quit, we sometimes get into a state where we try to send that to the server. if I detect that state, I return error but I don't send the bogus data over the wire. sr=bienvenu
related to bugs #57659 and #72317


git-svn-id: svn://10.0.0.236/trunk@90311 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:06:53 +00:00
despotdaemon%netscape.com
d5961922dc Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@90310 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 01:03:43 +00:00
cmanske%netscape.com
46be3afcb6 Added quick access to last-picked color. b=72090, r=glazman, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@90309 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:58:52 +00:00
valeski%netscape.com
ef0c94c88a sr=dougt. adding missing lowercaseing of scheme. 72720.
git-svn-id: svn://10.0.0.236/trunk@90308 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:58:32 +00:00
stephend%netscape.com
3a60b620f2 Per RFC2606, using user@domain.invalid in bug 71121. r=Ben Bucksch sr=sspitzer@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@90307 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:54:09 +00:00
danm%netscape.com
7d8ebc3547 fixing OpenWindow with extra args TYPE_CHAR and TYPE_WSTRING cases. r=jst,hyatt
git-svn-id: svn://10.0.0.236/trunk@90306 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:52:16 +00:00
varada%netscape.com
4a66fa3a76 fix for bug#72235- crash on replying to message;r=ducarroz;sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@90305 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:51:59 +00:00
radha%netscape.com
dccd9eefc1 Fix for bug # 63991 r=adamlock
git-svn-id: svn://10.0.0.236/trunk@90304 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:45:56 +00:00
varada%netscape.com
e303a3d2a4 fix for bug 70392 - beautifying send format prefs panel; r=ducarroz;sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@90303 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:43:12 +00:00
varada%netscape.com
ad44898d2d fix for bug#69525-dnd attachment not working for compose window on mac;r=ducarroz;sr=mscott
git-svn-id: svn://10.0.0.236/trunk@90302 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:35:31 +00:00
brendan%mozilla.org
152a38ce62 Fix old 1.4-era bogus code for setting JSPD_ARGUMENT or JSPD_VARIABLE given a heavyweight activation (68825, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@90301 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:31:43 +00:00
dmose%mozilla.org
7c36993274 Turn on LDAP XPCOM SDK code in the default build; no user-visible changes yet (bug 70658). Code being turned on: moa=dmose@netscape.com, sr=shaver@mozilla.org. Windows build patch: r=cls@seawood.org, sr=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@90300 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:28:50 +00:00
bnesse%netscape.com
b8c37a8903 Added some missing calls to add the requested preference to the branch root value. [Not part of the build]
git-svn-id: svn://10.0.0.236/trunk@90299 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:25:47 +00:00
valeski%netscape.com
e028f93870 r=rpotts. comment changes only. 48726. adding status to idl files of api rev. ifaces.
git-svn-id: svn://10.0.0.236/trunk@90298 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:22:18 +00:00
dougt%netscape.com
0ddb749e90 Adding Cache to the release builds. r=pavlov, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@90296 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:20:38 +00:00
dr%netscape.com
db17cb7cb9 fix for 67006, patch from MarkH@ActiveState.com, r=dr, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90295 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:14:10 +00:00
dr%netscape.com
4737ba6953 fix for 67731, patch from varga@utcru.sk, r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90294 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:12:47 +00:00
ducarroz%netscape.com
4a449261e5 FIx for bug 73041. SendMsg now has only two parameters. SR=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90293 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:10:59 +00:00
hewitt%netscape.com
be8b6da149 72316 - mail threadPane polish (all themes), r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90292 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:08:01 +00:00
cmanske%netscape.com
daffb1c9d2 Fixed Named Anchor dialog ok enabling, b=72194, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@90291 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 23:57:23 +00:00
sean%beatnik.com
35842d5a40 bug 72017 dual xpcom/npapi plugins are not initialized properly. Add code to get plugin factory for xpcom modules that export NSGetModule instead of NSGetFactory. r=av a=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90290 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 23:53:09 +00:00
pavlov%netscape.com
c4d4d6bb10 fix for bug 73261. unix printing causing crash. r=pinkerton sr=shaver
git-svn-id: svn://10.0.0.236/trunk@90289 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 23:52:11 +00:00
timeless%mac.com
debde7f1c7 fix Bugzilla Bug 65428 language="javascript" should be type="application/x-javascript" mailnews
r=fabian, a=ben


git-svn-id: svn://10.0.0.236/trunk@90287 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 23:44:31 +00:00
nelsonb%netscape.com
37ab6208d1 Eliminate the old global arena lock. Each ArenaPool now has its own lock.
The new PORTArenaPool struct, an extended PLAreanaPool, is used in place
of PLArenaPools.


git-svn-id: svn://10.0.0.236/trunk@90286 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 23:40:09 +00:00
nhotta%netscape.com
e9242d467c Changed to output '?' for unmapped characters if text/plain, bug 72155, r=ftang, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@90285 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 23:39:04 +00:00
nhotta%netscape.com
b552d6fe10 Changed to duplciate tm record to avoid the memory to be disturbed by following usage of localtime(),
r=bstell,jelwell, sr=erik.


git-svn-id: svn://10.0.0.236/trunk@90284 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 23:38:14 +00:00
javi%netscape.com
bc3ae9aaaa Add a second tab to the cert view dialog for the pretty print
stuff.


git-svn-id: svn://10.0.0.236/trunk@90283 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 22:58:13 +00:00
gordon%netscape.com
b7c36856ef Fix bug 73018 "SSL fails on Mac", check in for sfraser. r=pinkerton, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@90281 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 22:41:07 +00:00
pavlov%netscape.com
2830c89559 fix for bug 73239. output pixels instead of twips from GetNaturalImageSize. r=ninsheeth sr=shaver,smfr
git-svn-id: svn://10.0.0.236/trunk@90279 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 21:52:08 +00:00
mcafee%netscape.com
f4e24e5a54 Fixes for OBJDIR builds
git-svn-id: svn://10.0.0.236/trunk@90278 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 21:37:13 +00:00
javi%netscape.com
e2352cc6ea Delete the ns*CertificateManager related files that are no longer part of the build.
git-svn-id: svn://10.0.0.236/trunk@90277 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 21:27:29 +00:00
sonmi%netscape.com
418e282ca6 took out yesterday's change, since it did not work
git-svn-id: svn://10.0.0.236/trunk@90275 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 21:11:14 +00:00
pavlov%netscape.com
892c7ce230 fix for windows crash on profile startup, initalize disk cache lazily. bug 73197. r=beard, gordon sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@90272 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 21:06:39 +00:00
cotter%netscape.com
4f47a8dad1 Added files & initial placeholders for PSM 2.0 help & related docs.
git-svn-id: svn://10.0.0.236/trunk@90271 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 20:24:47 +00:00
nicolson%netscape.com
62c6613239 Allow the option of not overriding the Sun provider, for CMS.
git-svn-id: svn://10.0.0.236/trunk@90270 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 19:50:02 +00:00
relyea%netscape.com
396a9316a6 Change structure passing to pointer passing.
removed debugging printf's


git-svn-id: svn://10.0.0.236/trunk@90269 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 19:33:59 +00:00
bernd.mielke%snafu.de
f39bdc29bd fix javascript warnings in table testcases. bug 62965 r=karnaze
not part of the build


git-svn-id: svn://10.0.0.236/trunk@90262 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 15:44:07 +00:00
bernd.mielke%snafu.de
ef6d9f26bb remove javascript warnings from table testcases bug 62965 r=karnaze
git-svn-id: svn://10.0.0.236/trunk@90261 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 15:39:08 +00:00
karnaze%netscape.com
3a2764755a bug 72393 - correctly determine col min/max when cell changes size during incremental reflow and a strategy re-init is not needed. sr=attinasi, r=bernd.mielke@snafu.de
git-svn-id: svn://10.0.0.236/trunk@90260 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 15:34:14 +00:00
alecf%netscape.com
874291fed3 make this DEBUG_roc instead of DEBUG - we dont' ALL need to debug the view manager
git-svn-id: svn://10.0.0.236/trunk@90259 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 15:27:16 +00:00
alecf%netscape.com
3429dd7075 defer history loading until the first page is added to history for percieved performance improvement
sr=waterson bug=38621


git-svn-id: svn://10.0.0.236/trunk@90258 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 15:23:40 +00:00
mkaply%us.ibm.com
0c1f5d6d96 More OS/2 bustage - callback
git-svn-id: svn://10.0.0.236/trunk@90257 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 15:16:09 +00:00
locka%iol.ie
af1f8e780b Updated PATH setting code to be less reliant on registry settings. b=71363
git-svn-id: svn://10.0.0.236/trunk@90256 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 14:56:12 +00:00
mkaply%us.ibm.com
83aced4404 OS/2 bustage - forgot one callback
git-svn-id: svn://10.0.0.236/trunk@90255 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 14:44:37 +00:00
kmcclusk%netscape.com
631e1e02b3 Removed code which prevented reparenting of views + added code to check floating child list when reparenting views bug 71032; sr = waterson@netscape.com; r=dcone@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90254 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 14:43:09 +00:00
disttsc%bart.nl
b8d183d032 Attempt to fix SpeedRacer and Senna bustage
git-svn-id: svn://10.0.0.236/trunk@90253 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 14:36:38 +00:00
kmcclusk%netscape.com
dfc987a3b6 Added 1 pixel to the invalidate rect to compensate for twips to pixel rounding error. bug=63951; sr=karnaze@netscape.com; r=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90252 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 14:36:28 +00:00
disttsc%bart.nl
b1a54d34a5 Fix MOZ_TRACK_MODULE_DEPS bustage
git-svn-id: svn://10.0.0.236/trunk@90251 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 14:34:00 +00:00
kmcclusk%netscape.com
3ce507a2b4 Changed default for mNotificationInterval from 1sec to 1/4sec to improve incremental page load performance for slow connections/servers bug 72138; r=karnaze@netscape.com sr=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90250 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 14:16:05 +00:00
morse%netscape.com
50e36e2810 coded by disttsc@bart.nl, r=morse@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90249 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 13:58:44 +00:00
morse%netscape.com
b34a8fcc9b bug 24533, view image should open in same window, coded by doronr@naboonline.com, r=bzbarsky@mit.edu, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90248 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 13:48:27 +00:00
disttsc%bart.nl
8acefc36a0 Hoping this "fixes" senna bustage
git-svn-id: svn://10.0.0.236/trunk@90247 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 13:27:58 +00:00
waterson%netscape.com
79b2865cda Fix ports bustage (HP-UX, messina & palermo).
git-svn-id: svn://10.0.0.236/trunk@90246 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 12:16:09 +00:00
locka%iol.ie
eb5d1a7e74 NOT PART OF BUILD. Added WindowCreator.cpp & h to project
git-svn-id: svn://10.0.0.236/trunk@90245 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 11:50:18 +00:00
locka%iol.ie
2105558e49 Fixed problem of double clicking on a profile from the selection dialog caused winEmbed to quit.
git-svn-id: svn://10.0.0.236/trunk@90244 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 11:49:46 +00:00
waterson%netscape.com
92db598eb6 Bug 71530. Implement RDF outliner. Break nsXULTemplateBuilder into two subclasses: nsXULContentBuilder and nsXULOutlinerBuilder. Explode helper classes into separate files. Fix ownership and communication between nsXULElement, nsXULDocument, and nsXULTemplateBuilder. r=hyatt, sr=ben
git-svn-id: svn://10.0.0.236/trunk@90243 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 10:56:18 +00:00
axel%pike.org
03890be359 not part of the build; XSLT buster rework, the grid one was horked by the xul change, this one moved to outliner, yeah
git-svn-id: svn://10.0.0.236/trunk@90241 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 10:43:55 +00:00
pavlov%netscape.com
c14d3ca70f include <$(DEPTH)\config\config.mak>
yet again.  fixing build bustage


git-svn-id: svn://10.0.0.236/trunk@90238 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:49:08 +00:00
rbs%maths.uq.edu.au
c83bd679a8 back-end to extend and generalize the support of stretchy chars. b=72161 [s]r=waterson
git-svn-id: svn://10.0.0.236/trunk@90237 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:46:24 +00:00
disttsc%bart.nl
606281de09 Fix MOZ_TRACK_MODULE_DEPS bustage
git-svn-id: svn://10.0.0.236/trunk@90236 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:45:16 +00:00
timeless%mac.com
c7d84847c9 these files were not supposed to have been committed, reverting to previous version. sorry
git-svn-id: svn://10.0.0.236/trunk@90235 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:41:36 +00:00
anthonyd%netscape.com
785fbe7f7a bug fix for 59785 Impossible to select document root element
r=mjudge
sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@90234 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:29:51 +00:00
pavlov%netscape.com
59fcc612f1 including config.mak to fix build bustage on windows. r=darin
git-svn-id: svn://10.0.0.236/trunk@90233 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:25:25 +00:00
darin%netscape.com
21260302ca Added nkcache to packages for unix and win platforms. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@90231 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:10:38 +00:00
darin%netscape.com
2704f19a78 nkcacheservice --> nkcache
git-svn-id: svn://10.0.0.236/trunk@90228 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:09:47 +00:00
pavlov%netscape.com
da016e9b75 adding new imagelib stuff to packages-win r=darin
git-svn-id: svn://10.0.0.236/trunk@90227 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:06:33 +00:00
disttsc%bart.nl
38efce0f42 Fix MOZ_TRACK_MODULE_DEPS bustage
git-svn-id: svn://10.0.0.236/trunk@90224 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 08:44:39 +00:00
pavlov%netscape.com
ce26ff0c13 turning on the new imagelib on windows. bug 70938 r=jag sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90223 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 08:41:05 +00:00
timeless%mac.com
b351664b13 fix Bugzilla Bug 25497 view source on image only brings unknown file type dialog
patch by gervase.markham@univ.ox.ac.uk
r=timeless sr=alecf


git-svn-id: svn://10.0.0.236/trunk@90222 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 08:35:21 +00:00
disttsc%bart.nl
0849826eaa Fix MOZ_TRACK_MODULE_DEPS bustage.
git-svn-id: svn://10.0.0.236/trunk@90221 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 08:16:59 +00:00
disttsc%bart.nl
242c7b07ea Back out delayedInit, it's a race problem waiting to happen. Keeping some of the goodness of that patch though, like setting session history before hooking up the progress listener. sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90220 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 08:14:49 +00:00
waterson%netscape.com
f65841b190 Bug 71530. Preflight required changes for RDF outliner. Need to include 'rdf.h' for progid prefixes. r=hyatt, sr=ben
git-svn-id: svn://10.0.0.236/trunk@90218 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 07:45:02 +00:00
pavlov%netscape.com
d15881bd4c adding extern "C" around the #include <jpeglib.h> to fix bug 73164 r=tor@cs.brown.edu
git-svn-id: svn://10.0.0.236/trunk@90217 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 07:45:00 +00:00
waterson%netscape.com
38805b0f14 Bug 71530. Preflight required changes for RDF outliner: fix typo. r=hyatt, sr=ben
git-svn-id: svn://10.0.0.236/trunk@90216 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 07:44:17 +00:00
waterson%netscape.com
7b2fc0c9c6 Bug 71530. Preflight required changes for RDF outliner. Hack outliner body frame initialization to hookup outliner if one exists; don't assume scrollbar can be created. r=hyatt, sr=ben
git-svn-id: svn://10.0.0.236/trunk@90215 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 07:42:50 +00:00
mcafee%netscape.com
44f0f282dc 23733OBJDIR build case needs path to file name (73124). r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90214 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 07:42:36 +00:00
waterson%netscape.com
6c3da9ef63 Bug 71530. Implement RDF outliner; preflight new files. r=ben/hyatt
git-svn-id: svn://10.0.0.236/trunk@90211 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 07:39:31 +00:00
disttsc%bart.nl
aaff541a26 Fix some inefficiency in nsNativeComponentLoader.cpp, bug=51210, author=Mark Stankus <mstankus@calpoly.edu>, r=bzbarsky@mit.edu, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@90210 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 07:34:34 +00:00
tor%cs.brown.edu
95b57155e8 Fix alpha depth check to return the right value for rgba images.
Not part of build.  r=pavlov


git-svn-id: svn://10.0.0.236/trunk@90209 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 07:12:52 +00:00
jband%netscape.com
1748df2ff5 fix bug 54792 by running assert dialog out or process on Win32. r=danm sr=brendan
git-svn-id: svn://10.0.0.236/trunk@90208 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 06:57:17 +00:00
waterson%netscape.com
e391417cec Bug 72905. Add 'trap' to XPCOM_DEBUG_BREAK flags to bust into the debugger on asserts. r=sspitzer, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@90207 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 06:21:41 +00:00
sspitzer%netscape.com
3b57d52626 fix #21094. implement "select thread" (for my patient pal leaf).
disable "select thread" if nothing is selected in the thread pane.
disable "select flagged" until it is finished.  sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90206 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 06:12:31 +00:00
nisheeth%netscape.com
38ab550178 r=heikki. sr=jst. Use PR_smprintf. Get rid of nsTimer.cpp. Fixes bug 57592.
git-svn-id: svn://10.0.0.236/trunk@90205 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 05:44:03 +00:00
stephend%netscape.com
451b647861 Part of the fix for bug 73051, observing RFC2606. r=robinf@netscape.com, hixie@netscape.com, sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@90204 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 05:35:19 +00:00
stephend%netscape.com
45f1dc6b47 Part of the fix for bug 73051, observing RFC2606. r=robinf@netscape.com, hixie@netscape.com, sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@90203 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 05:33:07 +00:00
shaver%mozilla.org
8d15cc6563 72768: fix Solaris/Intel xptcall, p=<rich.burridge@sun.com
git-svn-id: svn://10.0.0.236/trunk@90202 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 05:26:44 +00:00
naving%netscape.com
c008892b5c 71666 sr=bienvenu. Don't display the alert. The login dialog describes the
same error.

71670 sr=bienvenu. Ensure that the messages are not lost when the user hits
"Stop" while downloading messages.

68875 sr=bienvenu. Ensure that the old berkeley mailbox is deleted by closing
streams to local folders in mailnews code. This helps in compacting folder

66795 sr=bienvenu. The above fix also helps in stopping tmp files displayed
as local folders.


git-svn-id: svn://10.0.0.236/trunk@90201 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 05:25:32 +00:00
sspitzer%netscape.com
397aefd6bb #72826 fixed sort by sender. r=ducarroz, sr=sspitzer. (thanks to jgmyers for the patch).
#72819 added ascend / descend to the "View | Sort By" menu.  sr=bienvenu

#72248 properly update the checkboxes for the "View | Sort By" menu (when it is created).  sr=bienvenu

#21094, #72823 some work for "select thread" / "select flagged".  sr=bienvenu

change some printf("fix me") into assertions to catch problems.

remove some dead js.


git-svn-id: svn://10.0.0.236/trunk@90200 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 04:39:54 +00:00
sspitzer%netscape.com
7e4e8a96a7 fix for #73091. javascript exception when setting up a news account.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90199 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 04:32:50 +00:00
sspitzer%netscape.com
949afe0bbf fix #70641. allow the user to set a signature file. sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@90197 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 04:32:11 +00:00
mkaply%us.ibm.com
3dbfa9ef97 Mac breakage - forgot MANIFEST
git-svn-id: svn://10.0.0.236/trunk@90196 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 04:27:07 +00:00
mstoltz%netscape.com
6079a31c93 Bugs 55069, 70951 - JS-blocking APIs for mailnews and embedding. r=mscott, sr=attinasi.
Bug 54237 - fix for event-capture bug, r=heikki, sr=jband.


git-svn-id: svn://10.0.0.236/trunk@90195 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 04:22:56 +00:00
danm%netscape.com
61da537725 temporary fix for compiler error
git-svn-id: svn://10.0.0.236/trunk@90194 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:47:32 +00:00
darin%netscape.com
6ba0fd6047 Fixes bug 73042. Make new disk cache recover well from a corrupted disk
entry.  patch=beard; sr=darin


git-svn-id: svn://10.0.0.236/trunk@90192 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:44:55 +00:00
darin%netscape.com
1555f0a44b Fixes bug 38260. Use big endian in disk cache. r=beard,pavlov; sr=dougt
git-svn-id: svn://10.0.0.236/trunk@90191 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:35:10 +00:00
mkaply%us.ibm.com
dd00f3abfc #36665
r=saari, sr=hyatt
Enablement of a DOM event for displaying a context menu


git-svn-id: svn://10.0.0.236/trunk@90190 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:34:15 +00:00
darin%netscape.com
060025d292 Completes transistion from ULONG_MAX to PRUint32(-1) which was intended to
fix frizilla redness.  pinkerton checked in the necessary ones; this is
just for completeness.  r=gagan,sdagley,sfraser,pinkerton


git-svn-id: svn://10.0.0.236/trunk@90189 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:32:26 +00:00
mkaply%us.ibm.com
bb489cba9a #72745
r=doron, sr=alecf
Change hardcoded Mozilla to brandShortName


git-svn-id: svn://10.0.0.236/trunk@90188 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:26:54 +00:00
jband%netscape.com
dd396d5c21 not part of the build. Update xptcall status page
git-svn-id: svn://10.0.0.236/trunk@90187 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:24:59 +00:00
mkaply%us.ibm.com
c2d7008718 #36665
r=saari, sr=hyatt
Enablement of a DOM event for displaying a context menu


git-svn-id: svn://10.0.0.236/trunk@90186 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:22:56 +00:00
mkaply%us.ibm.com
6cbd1f8e22 #72555
r=mkaply, a=blizzard
Code from aaronr - use DosCopy if DosMove fails (OS/2 can't move across drives)


git-svn-id: svn://10.0.0.236/trunk@90185 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:21:22 +00:00
mkaply%us.ibm.com
33007e25ed #72656
r=mkaply, a=blizzard
Change initialization of widget resources to we can embed


git-svn-id: svn://10.0.0.236/trunk@90182 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:19:06 +00:00
danm%netscape.com
3ddc369197 match rev 1.3 of nsPIWindowWatcher.idl. r=ccarlen,hyatt (hyatt also r=ed my previous checkins)
git-svn-id: svn://10.0.0.236/trunk@90181 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:16:51 +00:00
blizzard%redhat.com
5aecae3b36 Fix bug #63162 . Make sure that nsSocketBOS::Write actually finishes the write with non-blocking sockets where there is a short write. This should fix problems with large corrupted mail attachments. r=darin,bryner sr=brendan
git-svn-id: svn://10.0.0.236/trunk@90180 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:14:56 +00:00
danm%netscape.com
ed589c965d changing |open| methods' parameters to 8-bit strings. adding window.openDialog-style 'extra arguments' parameter to OpenWindow(). preliminary for bug 71895 & others. code largely=jst, r=ccarlen,jst,me
git-svn-id: svn://10.0.0.236/trunk@90179 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:14:55 +00:00
mkaply%us.ibm.com
192d1723fb #36665
r=saari, sr=hyatt
Enablement of a DOM event for displaying a context menu


git-svn-id: svn://10.0.0.236/trunk@90178 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:14:46 +00:00
danm%netscape.com
2e2b09eef8 adding 'type' field to make it easier than a series of QIs to determine a generic nsISupports object's type. code=jst r=jband,me
git-svn-id: svn://10.0.0.236/trunk@90177 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:09:49 +00:00
darin%netscape.com
ae83f6f5a8 Fixes bug 73097. No new cache in win32 builds (as in not at all). r=gagan
(These changes should have gone in yesterday when we enabled the new cache,
but were somehow forgotten.)


git-svn-id: svn://10.0.0.236/trunk@90176 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:08:59 +00:00
morse%netscape.com
fda5461bfe bug 67379, bug 67389, bug 72855 Wallet Preview enhancements r=pnunn, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@90174 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:58:11 +00:00
andreww%netscape.com
db5e5fc3dd bugzilla 72223 r=timeless, sr=hewitt fixing clipped buttons in spell check window.
git-svn-id: svn://10.0.0.236/trunk@90173 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:57:15 +00:00
pinkerton%netscape.com
4c712e1bb0 make sure we have a valid content node before calling methods on it. bug 73108. r=pav,sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90172 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:56:24 +00:00
pinkerton%netscape.com
d1fb9e2395 fix fizzilla bustage.
git-svn-id: svn://10.0.0.236/trunk@90171 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:52:13 +00:00
morse%netscape.com
365728a4e8 bug 72402, re-do fixes that got lost, coded by disttsc@bart.nl, r=morse@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90169 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:48:21 +00:00
pinkerton%netscape.com
f6ce562552 checking in new icons. old ones were fugly. r=endico/sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@90168 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:46:21 +00:00
erik%netscape.com
af0dd4c71d checkin for prabhat.hegde@eng.sun.com:
bug 63478; r=bstell@netscape.com, sr=erik@netscape.com
recognize additional Thai fonts


git-svn-id: svn://10.0.0.236/trunk@90167 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:42:55 +00:00
jj%netscape.com
361cd35842 #71991: added archive size tags + valid download url for the xpi's - r=sgehani
git-svn-id: svn://10.0.0.236/trunk@90166 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:35:41 +00:00
mkaply%us.ibm.com
a8a0b77028 No bug
r=mkaply, a=blizzard
Fix trap caused by Pavlov changing our code wrong :)


git-svn-id: svn://10.0.0.236/trunk@90165 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:34:41 +00:00
mkaply%us.ibm.com
84cc69b80b No bug
r=mkaply, a=blizzard
From javier - fix chatzilla and file picker regressions


git-svn-id: svn://10.0.0.236/trunk@90164 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:33:18 +00:00
bryner%uiuc.edu
b50e465f11 Removing unused code, for bug 38061. r=beard, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@90163 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:27:51 +00:00
chak%netscape.com
6d178542df Bug#73037 - MfcEmbed needs a debug console window like winembed
r=adamlock


git-svn-id: svn://10.0.0.236/trunk@90162 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:27:13 +00:00
heikki%netscape.com
1ddf3b7ae8 Bug 72675, document.load() can cause crash if loading HTML document. r=harishd,sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@90161 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:27:10 +00:00
gagan%netscape.com
a1d8379b63 Fix for bug 72831. r/sr=gagan,blizzard,darin,shaver
git-svn-id: svn://10.0.0.236/trunk@90158 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:19:37 +00:00
blakeross%telocity.com
2168e5b0f4 More of the same -- Fix 73033, crash on opening addressbook.
git-svn-id: svn://10.0.0.236/trunk@90157 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 01:45:52 +00:00
hyatt%netscape.com
34498a8121 Fix arrow key bustage.
git-svn-id: svn://10.0.0.236/trunk@90156 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 01:16:08 +00:00
hyatt%netscape.com
1541469ca4 Fix cut/copy/paste, still trying to figure out arrow key bustage. r=akkana, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@90155 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 00:59:29 +00:00
sspitzer%netscape.com
b738836d9f fix for #73080. more blake fallout. subscribe is broken. sr=bienvenu
a=akk,lpham.


git-svn-id: svn://10.0.0.236/trunk@90154 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 00:46:01 +00:00
sonmi%netscape.com
9e8f909773 put Ian's fix to the HP coredump back, call cmsutil without parameters prior
to any cmsutil action


git-svn-id: svn://10.0.0.236/trunk@90153 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 00:39:57 +00:00
mkaply%us.ibm.com
e24fdc0181 Fix BeOS bustage
git-svn-id: svn://10.0.0.236/trunk@90150 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 23:52:25 +00:00
bnesse%netscape.com
64bd0100ee Potential final candidates for the basis of the nsPref re-write. [Not part of the build]
git-svn-id: svn://10.0.0.236/trunk@90148 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 23:34:41 +00:00
pavlov%netscape.com
ce0f4e3210 adding a way to get the imgIDecoderObserver back from the request
git-svn-id: svn://10.0.0.236/trunk@90146 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 23:16:52 +00:00
sfraser%netscape.com
f96da00aea Fix the fizilla build a better way by #including <limits.h> only where needed. r=pinkerton,brade, a=akkana.
git-svn-id: svn://10.0.0.236/trunk@90145 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 22:56:11 +00:00
blakeross%telocity.com
dee9306af0 Fixing broken menulists in mac classic. r=andreww
git-svn-id: svn://10.0.0.236/trunk@90144 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 22:54:56 +00:00
sspitzer%netscape.com
2200005c48 fix account manager regression. use new style contract id
instead of old style.  patch from shaver.  sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90143 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 22:22:20 +00:00
blakeross%telocity.com
46bcacdc97 Missing prefs text (checked in after landing). sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90142 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 22:16:49 +00:00
sdagley%netscape.com
08096611f3 Fix busted Mac Carbon builds due to usage of ULONG_MAX without specific inclusion of <limits.h> (non-Carbon builds apparently include it for you). r=Loki, Odin, Gracie, PolarBear, Jester, Poeka, Jack, Lumpy and bnesse
git-svn-id: svn://10.0.0.236/trunk@90141 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 22:01:45 +00:00
nboyd%atg.com
af16ca2171 Fix bug 72921.
git-svn-id: svn://10.0.0.236/trunk@90140 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 21:56:12 +00:00
blakeross%telocity.com
cdf75afeca Fixing 73076, missing mail text. sr=shaver
git-svn-id: svn://10.0.0.236/trunk@90139 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 21:47:04 +00:00
mcgreer%netscape.com
8a82afe95b fix a couple UI bugs introduced by the XUL changes
git-svn-id: svn://10.0.0.236/trunk@90138 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 21:46:00 +00:00
blakeross%telocity.com
b914b0a77f 73072, spellchecker fix. sr=sfraser, sspitzer
git-svn-id: svn://10.0.0.236/trunk@90137 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 21:37:41 +00:00
blakeross%telocity.com
8fa75c4597 Undoing accidental change.
git-svn-id: svn://10.0.0.236/trunk@90136 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 21:11:00 +00:00
sspitzer%netscape.com
8399e86edf fix for message display blocker. headers not showing up
(like from, cc, etc.)  fix by blake.  sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@90135 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 21:07:34 +00:00
morse%netscape.com
265ce13d18 smoketest blocker 73045, r=blakeross@telocity.com, sr=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90134 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 20:53:13 +00:00
blakeross%telocity.com
908d44462f Blocker bug 73043.
git-svn-id: svn://10.0.0.236/trunk@90132 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 20:45:12 +00:00
bryner%uiuc.edu
767b7f2c54 Fixing blocker bug 73038. patch by atontti@cc.hut.fi, r=blake, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@90131 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 20:21:16 +00:00
hyatt%netscape.com
f6a354b20d More on 73034. This will help us shake out the places that were missed (if any exist).
git-svn-id: svn://10.0.0.236/trunk@90130 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 20:17:33 +00:00
jband%netscape.com
ac85f4f7d0 [Not part of mozilla build]. Fix for bug pointed out by Celso Aguiar <caguiar@Adobe.COM>.
git-svn-id: svn://10.0.0.236/trunk@90129 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 20:11:26 +00:00
sspitzer%netscape.com
ff5e877670 fixing blocker bug #73028. more fallout from blake's checkin.
patch started by blake, rest of fix by bienvenu.  sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@90128 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 20:06:28 +00:00
sspitzer%netscape.com
9f4b022526 fix for blocker bug #73034. sr=brendan,shaver,r=sspitzer fix by blake.
a=loan pham


git-svn-id: svn://10.0.0.236/trunk@90127 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 19:36:46 +00:00
darin%netscape.com
4ad9e1d532 Fixes bug 73016. Should not cache POST transactions. r=valeski, sr=dougt, a=loan
git-svn-id: svn://10.0.0.236/trunk@90126 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 18:47:06 +00:00
despotdaemon%netscape.com
a15ff2b94b Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@90125 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 17:11:13 +00:00
mcgreer%netscape.com
5b29600a43 one more place to remove nsICertificateManager
git-svn-id: svn://10.0.0.236/trunk@90124 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 17:10:50 +00:00
mcgreer%netscape.com
4441ca3b97 clean up cert manager code
* move trust to nsIX509CertDB
* remove unneccessary interface nsICertificateManager (everything should be handled by nsIX509CertDB)


git-svn-id: svn://10.0.0.236/trunk@90123 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 16:48:19 +00:00
karnaze%netscape.com
53705dbe6b bug 72554 - fix printing assertions, account for footer space when spliting row group and reflow footer. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90121 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 15:59:37 +00:00
roc+%cs.cmu.edu
0d4080bde9 Activating new view manager by default. This fixes a swath of bugs related to fixed positioning, transparent views, z-index handling, and more! Bug 39621. r=kmcclusk, sr=attinasi. To disable the new view manager, use 'user_pref(nglayout.debug.enable_scary_view_manager, false);' in your prefs.js file.
git-svn-id: svn://10.0.0.236/trunk@90120 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 15:54:50 +00:00
hwaara%chello.se
0ad256180d Fix possible memory leak. bug 62668. r=hwaara, sr=attinasi. (initial fix by gverdun@acm.org)
git-svn-id: svn://10.0.0.236/trunk@90119 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 15:10:02 +00:00
peter.vanderbeken%pandora.be
c8fe6486de Clean up datasource. Return partial result list to allow progressive display. Don't onAssert for the attributes, let the user ask for them. Not part of the default build. r=dmose.
git-svn-id: svn://10.0.0.236/trunk@90118 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 15:02:24 +00:00
locka%iol.ie
86257eaf73 Updated profile switching code. Fixed some chrome issues related to javascript open/close behaviour. Cleaned up the code somewhat. b=66533
git-svn-id: svn://10.0.0.236/trunk@90117 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 14:49:39 +00:00
bienvenu%netscape.com
424cb34f3c add boolean for purging offline msg bodies by msg age sr=sspitzer, 15865
git-svn-id: svn://10.0.0.236/trunk@90116 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 14:40:35 +00:00
bienvenu%netscape.com
a6af46240c add support for local folders under imap servers, also fix problem with offline sync playback r=naving,sr=sspitzer 15865
git-svn-id: svn://10.0.0.236/trunk@90115 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 14:38:00 +00:00
bienvenu%netscape.com
4429473f70 add support for local folders under imap servers r=naving,sr=sspitzer 15865
git-svn-id: svn://10.0.0.236/trunk@90114 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 14:36:51 +00:00
ccarlen%netscape.com
7f76561a81 Bug 71527 - On Unix, first profile after clean install is forgotten - migration will happen twice. r=racham@netscape.com, sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90113 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 14:13:54 +00:00
disttsc%bart.nl
425ba45ea3 Delay some browser startup/init stuff and the actual page load till after the window shows. bug=38621, r=shaver, sr=hyatt,alecf
git-svn-id: svn://10.0.0.236/trunk@90112 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 13:05:53 +00:00
disttsc%bart.nl
f3f1acd1d6 Add |const| to nsGlobalHistory::GetFindUriPrefix's second parameter as per .h definition to fix OS/2 bustage. author=|lou|, r=jag, sr=jst
git-svn-id: svn://10.0.0.236/trunk@90111 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 10:52:57 +00:00
jst%netscape.com
d1a26b0f07 Attempt at fixing OS2 bustage.
git-svn-id: svn://10.0.0.236/trunk@90110 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 10:47:23 +00:00
pavlov%netscape.com
380a89b148 some code needed on unix with the new imagelib for animated images. not part of the build
git-svn-id: svn://10.0.0.236/trunk@90109 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 10:37:08 +00:00
disttsc%bart.nl
6dea72511d Attempt to fix BeOS bustage
git-svn-id: svn://10.0.0.236/trunk@90108 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 10:30:03 +00:00
pavlov%netscape.com
11beb4e2ee removing printfs. adding asserts... fixing warnings
git-svn-id: svn://10.0.0.236/trunk@90107 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 10:26:36 +00:00
disttsc%bart.nl
0ba5b6bfab Fix leak of nsAtom, r=gagan, sr=jst. Clean up some string stuff (more .get()). sr=jst
git-svn-id: svn://10.0.0.236/trunk@90106 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 10:23:24 +00:00
disttsc%bart.nl
d429819869 Fix leak of nsAtom, some string clean-up, r=gagan, sr=jst
git-svn-id: svn://10.0.0.236/trunk@90105 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 09:53:30 +00:00
pavlov%netscape.com
ea97de95fe make it build without the new cache
git-svn-id: svn://10.0.0.236/trunk@90104 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 09:31:00 +00:00
jst%netscape.com
44345760e7 Fixing bugs 64523, 50018, 57626, 59024, 61413 and probably others, making the document and form JS engine resolve hooks find what they're supposed to find, and nothing more, making the element-by-name and element-by-id lookup in the document be hashtable based to avoid walking the whole DOM tree over and over again when resolving names on the document object and also on form objects. This is an order of magnitude speedup for pages that contain a large number of form controls, such as hotmail and aol mail. Also did a bunch of cleanup here n' there. r=pollmann@netscape.com, sr=vidur@netscape.comI.
git-svn-id: svn://10.0.0.236/trunk@90103 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 08:51:52 +00:00
pavlov%netscape.com
6fbfb747bb conditionaly build the new imagelib on windows. bug 70938. r=bryner sr=cls
git-svn-id: svn://10.0.0.236/trunk@90102 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 08:47:54 +00:00
darin%netscape.com
7335f0ee3e Fixes bug 13393. HTTP should send Accept-Charset. patch=havill@redhat.com,
r=gagan, sr=darin


git-svn-id: svn://10.0.0.236/trunk@90101 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 08:39:41 +00:00
sspitzer%netscape.com
0ea684be67 remove unused interface.
git-svn-id: svn://10.0.0.236/trunk@90100 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 08:35:01 +00:00
darin%netscape.com
d0a01665d5 Remove stupid printfs. r=pavlov, sr=darin
git-svn-id: svn://10.0.0.236/trunk@90098 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 08:34:34 +00:00
bryner%uiuc.edu
4933fda6af Removing reference to obsolete header file (for bug 38061). Not part of build.
git-svn-id: svn://10.0.0.236/trunk@90097 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 08:03:13 +00:00
mcafee%netscape.com
840099f8a6 Adding 32048ObjDir support, some comments
git-svn-id: svn://10.0.0.236/trunk@90096 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 08:02:43 +00:00
blakeross%telocity.com
e5e8a29449 This file escaped my wrath somehow.
git-svn-id: svn://10.0.0.236/trunk@90095 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 07:24:56 +00:00
erik%netscape.com
63f9f241bb checkin for prabhat.hegde@eng.sun.com:
bug 63478; r=bstell@netscape.com, sr=erik@netscape.com
recognize additional Thai fonts


git-svn-id: svn://10.0.0.236/trunk@90094 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 07:19:35 +00:00
pavlov%netscape.com
125d7ad871 fixing case in a #include that isn't part of the default build.
git-svn-id: svn://10.0.0.236/trunk@90093 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 07:14:44 +00:00
mkaply%us.ibm.com
7f62f97132 OS/2 TB breakage
Need more CRT_CALL


git-svn-id: svn://10.0.0.236/trunk@90091 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 07:12:42 +00:00
jst%netscape.com
3badb7bf4a Fixing bug 72476. Check for a null document *both* times we access the document pointer, this causes a crash if window.location is set on a window that doesn't contain a document (which can be the case when the window is a frame in a frameset). r=pollmann@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90090 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 07:11:49 +00:00
pavlov%netscape.com
aad32bcf85 bug 37779. patch mostly from tor@cs.brown.edu. r=me, saari. r=blizzard for gtk gfx changes. r=rods for the nsImageFrame changes. sr=waterson. needed to land new imagelib.
git-svn-id: svn://10.0.0.236/trunk@90089 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 07:05:22 +00:00
bryner%uiuc.edu
104d08c70c Patch from sfraser to remove dependence on net.h (for bug 38061). r=bryner, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@90088 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 06:59:52 +00:00
mkaply%us.ibm.com
4d20351680 fix indentation
git-svn-id: svn://10.0.0.236/trunk@90087 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 05:27:32 +00:00
mkaply%us.ibm.com
a29632f207 Stupid mistake - used CRT_CALLBACK instead of CRT_CALL
git-svn-id: svn://10.0.0.236/trunk@90086 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 05:23:37 +00:00
blakeross%telocity.com
3ccab7f67c Whatever this is, it's *not* more fallout from my landing.
::whistle::


git-svn-id: svn://10.0.0.236/trunk@90085 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:47:32 +00:00
pavlov%netscape.com
1c7e268413 adding the gfx changes, that arn't part of bug 37779, needed for the new imagelib (ifdef'd) r=saari, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@90084 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:45:42 +00:00
darin%netscape.com
233fe61167 Fixes Win32 redness. a=mcafee
git-svn-id: svn://10.0.0.236/trunk@90083 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:24:07 +00:00
mkaply%us.ibm.com
af092cd3fb #72075
r=cls
OS/2 TB breakage on new cache


git-svn-id: svn://10.0.0.236/trunk@90082 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:23:20 +00:00
mkaply%us.ibm.com
e224862c37 #72075
r=jag
OS/2 TB breakage on new cache


git-svn-id: svn://10.0.0.236/trunk@90078 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:20:20 +00:00
pinkerton%netscape.com
6ab481a582 missed some changes in the carbon files.
git-svn-id: svn://10.0.0.236/trunk@90077 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:09:54 +00:00
blakeross%telocity.com
f679be571d More fallout from landing. Won't affect current bustage.
git-svn-id: svn://10.0.0.236/trunk@90076 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:03:17 +00:00
sspitzer%netscape.com
22cf19af35 fix for #72932. we used to rely on the msg view navigation service to
flush the pending notifications on the document.  the msg view navigation
service is gone.  so I've added the functionality to the nsIAddrBookSession
(which is a service) so that everything works like it used to.

sr=mscott


git-svn-id: svn://10.0.0.236/trunk@90075 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:02:18 +00:00
pinkerton%netscape.com
44be2822e6 don't use nsIDOMNode, use nsIContent. r=saari/sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@90074 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 03:59:49 +00:00
pinkerton%netscape.com
b74db57a0f look in associated command object while building for attribute changes and dispatching. rewrite to use nsIContent and atoms instead of nsIDOMNode and strings. r=saari/sr=sfraser. bug 71470
git-svn-id: svn://10.0.0.236/trunk@90073 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 03:53:57 +00:00
pinkerton%netscape.com
e29161f44d add nsWidgetAtoms.cpp r=saari/sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@90072 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 03:51:40 +00:00
pinkerton%netscape.com
53d87a3819 new file.
git-svn-id: svn://10.0.0.236/trunk@90071 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 03:51:09 +00:00
pinkerton%netscape.com
f27d10805c move widgetatoms to dist.
git-svn-id: svn://10.0.0.236/trunk@90070 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 03:50:34 +00:00
pinkerton%netscape.com
f4ab03baf2 adding atom lists for widget, can't use the ones in content because of linkage. r=saari/sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@90069 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 03:50:21 +00:00
darin%netscape.com
243f656b5e Fixes redness on speedracer. sr=dougt
git-svn-id: svn://10.0.0.236/trunk@90068 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 03:25:24 +00:00
darin%netscape.com
6f64cadfc6 Enables new cache on Win32. r=dougt,gagan a=mscott,rpotts,chofmann
git-svn-id: svn://10.0.0.236/trunk@90067 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 03:08:15 +00:00
brendan%mozilla.org
f6b51cdcaf - [jsemit.c] Fix horrid stupid bugs generating JSOP_ARGCNT and JSOP_ARGSUB,
where any occurrence of arguments.length or arguments[0], e.g., would be
  "optimized" to use those bytecodes.  This is just wrong if the occurrence
  is an operand of delete, ++, --, or the left-hand-side of an assignment
  operator!

- [jsfun.c, jsinterp.c]  args_getProperty etc. must use JS_GetInstancePrivate,
  not JS_GetPrivate, as the arguments object is exposed, and can be made a
  prototype of other objects that do not have private data, or private data
  that's a JSStackFrame*.  Same goes for fun_getProperty, js_GetArgument, etc.

- [jsfun.c, jsobj.c, jsstr.c]  No need to specialize fun_delProperty and
  str_delProperty to help convince users and ECMA conformance tests that
  fun.length and str.length are direct properties of instances, instead of
  being delegated to Function.prototype.length and String.prototype.length.
  This special case is done universally in js_DeleteProperty for all SHARED
  and PERMANENT proto-properties.

- [jshash.c]  Sneaking this followup-fix for bug 69271 in: use JS_HASH_BITS
  rather than hardcoded 32.

- [jsobj.c, jsscope.[ch]]  Fix misnamed js_HashValue (it takes a jsid, so it
  is now js_HashId).

- [jsscript.c] script_compile needs to call JS_InstanceOf, to ensure that obj
  is a Script object.


git-svn-id: svn://10.0.0.236/trunk@90066 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 02:52:42 +00:00
hyatt%netscape.com
f7ab053b7f Checking in #ifdefed image loading code for outliner.
git-svn-id: svn://10.0.0.236/trunk@90065 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 02:51:39 +00:00
jgaunt%netscape.com
df95c282e1 Fixing bustage
git-svn-id: svn://10.0.0.236/trunk@90064 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 02:46:36 +00:00
tao%netscape.com
4cff0d2e33 53638: URL in mailWindowOverlay.xul needs to be localized.
(r=chuang,sr=sspitzer)


git-svn-id: svn://10.0.0.236/trunk@90063 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 02:45:37 +00:00
blakeross%telocity.com
b5c1311cfe Fix problem from my checkin.
git-svn-id: svn://10.0.0.236/trunk@90062 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 02:43:21 +00:00
darin%netscape.com
2526d0229b Fixes speedracer bustage. a=mcafee
git-svn-id: svn://10.0.0.236/trunk@90061 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 02:25:36 +00:00
tao%netscape.com
0fcd8761a1 71341: mailnews.view_default_charset pref item should not be stored,
(r=naoki,sr=erik)


git-svn-id: svn://10.0.0.236/trunk@90060 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 02:20:48 +00:00
tao%netscape.com
fe3687dbe3 71042: Linux installer build: "English UNIX" in "View|Set Language"
(r=ssu,sr=erik)


git-svn-id: svn://10.0.0.236/trunk@90059 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 02:17:47 +00:00
sspitzer%netscape.com
6f8f2860c3 the interface changed, but the js never did. this caused and error
which prevented us from closing the window.  sr=mscott


git-svn-id: svn://10.0.0.236/trunk@90058 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:55:30 +00:00
sspitzer%netscape.com
033b515a1d remove unused files. clean up Mark Message Read. add some bullet proofing
to handle the case where sorting fails.  sr=mscott


git-svn-id: svn://10.0.0.236/trunk@90057 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:42:59 +00:00
pavlov%netscape.com
553e9ade0d adding ifdef'd code to use the new imagelib. bug #70938. r=jst sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@90056 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:42:32 +00:00
pavlov%netscape.com
6635c7f8e0 adding ifdef'd code to use the new imagelib. bug #70938. r=rpotts sr=jst
git-svn-id: svn://10.0.0.236/trunk@90055 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:42:01 +00:00
pavlov%netscape.com
af920845ac adding ifdef'd code to use the new imagelib. bug #70938. r=waterson sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90054 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:38:35 +00:00
peterlubczynski%netscape.com
5f7a6826fe Fix for regression bug 72676 a=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90053 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:37:36 +00:00
bryner%uiuc.edu
d8825fac69 Missed these XUL changes from earlier. r=blake.
git-svn-id: svn://10.0.0.236/trunk@90052 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:37:12 +00:00
sspitzer%netscape.com
4d427b24e2 fix for #72818. don't allow rename of the sent folder. r=naving
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@90051 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:36:27 +00:00
beard%netscape.com
735367598e enabling new cache to build by default. a=chofmann, r=darinf
git-svn-id: svn://10.0.0.236/trunk@90050 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:33:46 +00:00
sspitzer%netscape.com
bdf92484eb the message navigation service has gone away. we need a new way of doing
this.  for now, comment out the old code to prevent the js error.
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@90049 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:31:42 +00:00
javi%netscape.com
d5e95564d2 Fix for bug 72843 r=dougt sr=sfraser
Update Mac build scripts for PSM 2.0
Make necko export the default prefs for security on the Mac.


git-svn-id: svn://10.0.0.236/trunk@90048 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:28:52 +00:00
sspitzer%netscape.com
0f52d8b5c8 fix for #72817. r=naving, sr=mscott
don't allow the user to dnd and move a folder under "Local Folders"
that is not allowed to be moved (renamed)


git-svn-id: svn://10.0.0.236/trunk@90047 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:28:35 +00:00
shanjian%netscape.com
cb71ede265 #36863 CSS: small-caps/uppercase: ß should become SS
r = erik, sr = erik


git-svn-id: svn://10.0.0.236/trunk@90046 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:27:13 +00:00
sspitzer%netscape.com
93904c4130 fix js exception on startup. thanks to sarah and mscott for the
heads up.  sr=mscott


git-svn-id: svn://10.0.0.236/trunk@90045 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:26:58 +00:00
jgaunt%netscape.com
9c60c1807e fix for bug#62361 r=ccarlen@netscape.com sr=scc@mozilla.org
profile migration over remote connection


git-svn-id: svn://10.0.0.236/trunk@90043 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 01:13:07 +00:00
blakeross%telocity.com
f2d2a6e526 Fixing 70746: major xul syntax changes. If you use xul, this WILL affect you! Read n.p.m.xpfe for details on the changes and how you can fix your code. r=hewitt sr=hyatt, ben
git-svn-id: svn://10.0.0.236/trunk@90042 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 00:59:29 +00:00
leaf%mozilla.org
d89ec10590 Automated update
git-svn-id: svn://10.0.0.236/trunk@90041 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 00:30:10 +00:00
bryner%uiuc.edu
a70a265b49 Bugs 70745, 70747. Making the following XUL syntax changes:
<textfield/> -> <textbox/>
<title/> -> <label/>
value -> label for all widgets except textbox, progressmeter, and text.
progresstext -> label
data -> value

r=blake, hewitt.  sr=ben, hyatt.  checking in for maolson@earthlink.net and blakeross@telocity.com.


git-svn-id: svn://10.0.0.236/trunk@90040 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 00:21:54 +00:00
darin%netscape.com
451d9835a2 Enabling new cache build in Linux. r=beard; sr=mscott,rpotts; a=chofmann
git-svn-id: svn://10.0.0.236/trunk@90039 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 00:18:13 +00:00
maolson%earthlink.net
c9b6b9480a fix bug 70747 [XUL Syntax] Replace <textfield> with <textbox>
r=blake, a=ben


git-svn-id: svn://10.0.0.236/trunk@90038 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 00:15:47 +00:00
cls%seawood.org
37da82b4dd Do NOT use C++-style comments in a C file. It causes builds to fail on some compilers. Fixing cement tinderbox bustage
git-svn-id: svn://10.0.0.236/trunk@90037 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 00:08:48 +00:00
heikki%netscape.com
9595e206f3 Didn't notice tree was closed, backing out to wait for open.
git-svn-id: svn://10.0.0.236/trunk@90036 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 23:35:22 +00:00
heikki%netscape.com
5fb127d4e0 Bug 72675, document.load() can cause crash if loading HTML document. r=harishd,sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@90035 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 23:20:12 +00:00
pinkerton%netscape.com
0b1aae7b9b include limits.h to fix fizzilla build bustage. r=beard/sdagley.
git-svn-id: svn://10.0.0.236/trunk@90034 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 23:11:42 +00:00
shanjian%netscape.com
1939c29c1f #64235, 25037
mishandling of 'stand-alone' octet with MSB set in CJK(multibyte) encodings

r = ftang sr=erik,
p =  Jungshik Shin


git-svn-id: svn://10.0.0.236/trunk@90033 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 22:50:05 +00:00
shanjian%netscape.com
61b67fc084 #64235, 25037 illegal 0xA0 code point in Multibyte charset break parser
r=ftang, sr=erik
uscan.c
nsUnicodeDecodeHelper.cpp
nsGB2312ToUnicodeV2.cpp
nsGBKToUnicode.cpp
nsJapaneseToUnicode.cpp


git-svn-id: svn://10.0.0.236/trunk@90032 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 22:46:25 +00:00
blakeross%telocity.com
36a188b7cb Backing out to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@90031 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 22:37:59 +00:00
morse%netscape.com
693754c5a7 bug 72603, form manager captures bad values for sample2 page, r=jag, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@90030 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 22:18:54 +00:00
bryner%uiuc.edu
1fa4cee7c7 Need to add -I. as well. Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@90029 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 22:01:47 +00:00
mcgreer%netscape.com
79ed4efb3f add certificate verification and usages to cert display
git-svn-id: svn://10.0.0.236/trunk@90028 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 22:00:15 +00:00
bryner%uiuc.edu
88f074c4de Fixing build bustage. r=cls.
git-svn-id: svn://10.0.0.236/trunk@90027 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 21:58:23 +00:00
mjudge%netscape.com
0d731312ff removal of #ifdefs foor 68396 r=cmanske all depricated code just a clean up
git-svn-id: svn://10.0.0.236/trunk@90025 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 21:30:08 +00:00
sonmi%netscape.com
90f42b3947 searching for "error" "failed" and "fatal" in the output logs
git-svn-id: svn://10.0.0.236/trunk@90024 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 21:29:48 +00:00
hyatt%netscape.com
cd06dea613 Backing out preventDefault checkin, since it's already there.
git-svn-id: svn://10.0.0.236/trunk@90023 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 21:27:04 +00:00
shanjian%netscape.com
47775245a8 #59924 Win IME for Japanese: the candidate window is incorrectly positioned covering the current lineWin IME for Japanese: the candidate window is incorrectly positioned covering the current line
r = roy, sr=erik
using an alternative way to position candidate window.


git-svn-id: svn://10.0.0.236/trunk@90022 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 21:13:26 +00:00
blizzard%redhat.com
748e56f661 remove old files that are no longer in the build
git-svn-id: svn://10.0.0.236/trunk@90021 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 21:07:59 +00:00
karnaze%netscape.com
cef8c02118 new regression tests, cleanup, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90020 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 20:49:08 +00:00
akkana%netscape.com
74b1b5f661 57078: Eliminate bogus xul bindings which were conflicting with XBL bindings.
Clean up XBL bindings and eliminate redundancies and errors.
       Fix a bug in which XBL bindings didn't check for event cancellation.
       r=brade sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@90018 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 20:32:59 +00:00
alecf%netscape.com
66e1113587 fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@90017 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 20:17:24 +00:00
hwaara%chello.se
79fe072db0 Fix the memleak regression caused by bug 72388. r=brade, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@90016 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:45:12 +00:00
dougt%netscape.com
65840ed246 fix for 69143. This patch prevents non existant files from entering into
the file transport process loop for reading.


git-svn-id: svn://10.0.0.236/trunk@90015 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:44:23 +00:00
larryh%netscape.com
9ae95caa87 bugzilla: 72261. fix linking problems
git-svn-id: svn://10.0.0.236/trunk@90014 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:36:31 +00:00
alecf%netscape.com
7e11d0efe8 other part of fix for 46488 - fix mac build scripts to use NS_LITERAL_STRING so we have a unicode build date.
git-svn-id: svn://10.0.0.236/trunk@90013 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:35:32 +00:00
alecf%netscape.com
d153824829 fix for bug 46488 r=valeski, sr=waterson
make the content DLL an HTTP startup listener, so that loading the content DLL doesn't load HTTP


git-svn-id: svn://10.0.0.236/trunk@90012 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:35:29 +00:00
pchen%netscape.com
9bcecbbac0 mac buddy for alecf on bug 46488, r=valeski, sr=waterson, add nsContentHTTPStartup.cpp to project
git-svn-id: svn://10.0.0.236/trunk@90011 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:35:25 +00:00
alecf%netscape.com
da62903bf5 fix for bug 71871 - group history by day, not by age, by normalizing the AgeInDays property to the current local day's midnight.
... and bug 66906 - update history UI while surfing - this ensures that visited URIs get added to any open history windows/sidebars by asserting against all sorts of expected find URIs
sr=shaver


git-svn-id: svn://10.0.0.236/trunk@90010 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:26:10 +00:00
alecf%netscape.com
ff23e00a9a no bug - just reworking nsIURIContentListener to be more easily implemented in JS - does not affect any C++ interface signatures
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@90009 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:21:34 +00:00
dougt%netscape.com
c7f1f7a5c1 Fixes many ftp problems. Details in 72280. r=valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90007 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:04:32 +00:00
axel%pike.org
bee1aaa68d not part of build;fixing 72436; bring Makefile uptodate, code by kvisco, r=me
git-svn-id: svn://10.0.0.236/trunk@90006 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 18:54:02 +00:00
karnaze%netscape.com
00f68ec3ab new regression tests not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90005 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 17:51:36 +00:00
cls%seawood.org
2ca9d11fab Fix for OS/2 emx build bustage.
Thanks to Dmitry Kubov <dmitry@north.cs.msu.su> for the patch.
Bug #72471 r=cls


git-svn-id: svn://10.0.0.236/trunk@90003 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 15:56:31 +00:00
oeschger%netscape.com
e42db5381d updating help chrome, not part of build
git-svn-id: svn://10.0.0.236/trunk@90002 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 15:09:24 +00:00
mkaply%us.ibm.com
036caa33f6 #41077
r=mkaply, a=blizzard
On OS/2, the caret is hidden during selection


git-svn-id: svn://10.0.0.236/trunk@90001 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 14:30:31 +00:00
locka%iol.ie
217e551f08 NOT PART OF BUILD. Updated project file for MSVC++ now invokes "nmake /f makefile.win"
git-svn-id: svn://10.0.0.236/trunk@90000 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 13:07:21 +00:00
sspitzer%netscape.com
044670a955 fix for #72265. update the unread / total counter in the bottom right of the 3 pane.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@89999 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 10:13:12 +00:00
glazman%netscape.com
4942f74de3 easy fix for 71647 ; that bug was hidden behind 72302, [s]r=attinasi
git-svn-id: svn://10.0.0.236/trunk@89998 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 09:40:41 +00:00
hyatt%netscape.com
3943fa653e Missed a file on 71470.
git-svn-id: svn://10.0.0.236/trunk@89997 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 09:01:34 +00:00
hyatt%netscape.com
db5e8ad4fb Fix for 71740. r=jag, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@89995 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 08:15:49 +00:00
hyatt%netscape.com
6931e0af77 Fix for 71740. r=jag, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@89994 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 08:15:12 +00:00
hyatt%netscape.com
0431ed8c18 Fix for 62985, r=dbaron, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89993 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 08:10:20 +00:00
timeless%mac.com
88e9d9a734 ports bustage *sorry* HPUX doesn't want to make abstract temporary variables, so reverting
git-svn-id: svn://10.0.0.236/trunk@89992 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 07:10:15 +00:00
mscott%netscape.com
f988074c2b Bug #72696 incorrectly supressing message display when you click on the thread pane splitter
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@89991 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 06:31:23 +00:00
bernd.mielke%snafu.de
a65d68f47f limit the spread of desired content width in colspans with specified fixed width's
bug 42187, it fixes also the regression in bug 2684. r=karnaze sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89990 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 06:02:21 +00:00
javi%netscape.com
1b5116db6d Fix build bustage for Linux RH 7 + patches.
git-svn-id: svn://10.0.0.236/trunk@89988 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 05:35:58 +00:00
bryner%uiuc.edu
9b6f2a3037 Removing references to obsolete headers (bug 38061). r=timeless, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@89987 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 05:35:27 +00:00
timeless%mac.com
534247895d fix Bug 70989 Clean up lots of "shadows" and other common warnings
r=peterv, jst, ducarroz, edburns. sr=jst, shaver


git-svn-id: svn://10.0.0.236/trunk@89986 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 05:32:22 +00:00
karnaze%netscape.com
e70037c46a bug 23714 - forgot to make NeedsFrameFor static per waterson's sr.
git-svn-id: svn://10.0.0.236/trunk@89985 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 05:18:27 +00:00
karnaze%netscape.com
73c80c2c81 bug 23714 - don't resolve style for irrelevant whitespace. sr=waterson, r=rbs,hyatt
git-svn-id: svn://10.0.0.236/trunk@89984 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 05:10:40 +00:00
dmose%netscape.com
51ce4e6b59 Fix for mac bustage from Zach.
git-svn-id: svn://10.0.0.236/trunk@89983 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 04:30:48 +00:00
sspitzer%netscape.com
cbfcb76a2e fix for #71930. sr=bienvenu. catch the js exception caused by bogus
typedown text.


git-svn-id: svn://10.0.0.236/trunk@89982 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 04:22:54 +00:00
shaver%mozilla.org
5dbf4c4ed5 72495: libjar/"regexp" cleanup (r=dveditz,sr=brendan)
git-svn-id: svn://10.0.0.236/trunk@89981 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 04:08:12 +00:00
mcafee%netscape.com
aac581eebb Fixing strict JS warnings (20364). patch=david.gardner
git-svn-id: svn://10.0.0.236/trunk@89980 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 03:57:33 +00:00
javi%netscape.com
4c7707dfe6 Use the token name instead of the slot name when formatting the string
name.


git-svn-id: svn://10.0.0.236/trunk@89979 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 03:46:49 +00:00
sspitzer%netscape.com
0c4f495d85 other part of fix for #72642. defensive programming. sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@89978 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 03:39:53 +00:00
javi%netscape.com
8dee41e6f0 Make the "Examine Certificate" button on the SSL error dialgs work.
Fix nsPKCS12Blob to use the default password handler callback so
that SDR continues to work.

Give the certViewerDetails window the ability to load a cert based on
its certDBKey instead of nickname.


git-svn-id: svn://10.0.0.236/trunk@89977 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 03:37:49 +00:00
sspitzer%netscape.com
0411ce5a1b fix for #72642. crash when deleting the last message in a local folder from the stand alone message window.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@89976 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 03:34:29 +00:00
jgmyers%netscape.com
e0d25b8bb9 Fix more callers of the MIME header decoder: bug 65277 r=nhotta r=ducarroz sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@89974 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 03:20:23 +00:00
sspitzer%netscape.com
7a29d3e08e part of the fix for #72716, problems with compact folder. sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@89973 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 03:13:37 +00:00
sspitzer%netscape.com
f6267573f5 fix for #72586. check row height to avoid divide by zero crash. (happens if you scroll too early)
sr=hyatt.


git-svn-id: svn://10.0.0.236/trunk@89972 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 03:03:58 +00:00
pollmann%netscape.com
66a5319730 Bug 72288: Don't turn off scrollbars on all XML documents, r=heikki@netscape.com, sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@89971 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 03:00:18 +00:00
sspitzer%netscape.com
b531bff61e fix for #72750, sr=mscott. caused by me not paying attention to 32 character limit for filenames on the mac.
git-svn-id: svn://10.0.0.236/trunk@89968 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 02:49:37 +00:00
sspitzer%netscape.com
2629ce603f fix for #70494. newsgroups not showing up under news server.
sr=mscott.


git-svn-id: svn://10.0.0.236/trunk@89967 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 02:43:39 +00:00
pavlov%netscape.com
e58777b904 fix the crash on shutdown in the new cache due to us holding on to cache descriptors too long. destroy our cache session when we get unregistered. more assertions
git-svn-id: svn://10.0.0.236/trunk@89966 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 02:37:47 +00:00
timeless%mac.com
b693f22073 fix Bugzilla Bug 63103 add "About Plug-ins" to the Help menu
by bzbarsky@mit.edu r=timeless, a=ben


git-svn-id: svn://10.0.0.236/trunk@89965 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 02:35:13 +00:00
timeless%mac.com
5a5a4f8f79 fix Bug 72626 [XUL] disable for radio doesn't fully disable the button
patch by bzbarsky@mit.edu r=doron sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@89964 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 02:23:20 +00:00
mkaply%us.ibm.com
1e85bf3bf4 #69313
r=mkaply, a=blizzard
Following suit - removing italicslope from OS/2


git-svn-id: svn://10.0.0.236/trunk@89963 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 02:12:49 +00:00
maolson%earthlink.net
e83888a8bb bug 56680 - use a xul <stringbundle/> instead of including the strres.js code
first pass through prefs, more to come later.
r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@89962 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 02:08:19 +00:00
endico%mozilla.org
ee33353875 add module for NSS
git-svn-id: svn://10.0.0.236/trunk@89961 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 02:03:59 +00:00
rbs%maths.uq.edu.au
63713eb3b9 remove unused code. b=69313 r=bstell sr=erik
git-svn-id: svn://10.0.0.236/trunk@89960 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:53:52 +00:00
peterlubczynski%netscape.com
be7931b525 Null plugin registered twice. bug 67933 a=av r=attinasi
git-svn-id: svn://10.0.0.236/trunk@89959 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:47:37 +00:00
dmose%netscape.com
b3d40180c2 Turn on basic LDAP infrastructure in the default mac build. No user-visible changes yet. Code being turned on: moa=dmose@netscape.com, sr=shaver@mozilla.org. Mac system build changes: r=peterv@netscape.com, sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89958 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:45:24 +00:00
rbs%maths.uq.edu.au
3ad05b88e6 remove unused code. b=69313 r=bstell sr=erik
git-svn-id: svn://10.0.0.236/trunk@89957 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:41:56 +00:00
mkaply%us.ibm.com
35227e709b #72563
r=javier, a=jband
Change some PR_CALLBACK to JS_DLL_CALLBACK and vice versa and remove IBM cruft


git-svn-id: svn://10.0.0.236/trunk@89956 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:35:39 +00:00
brendan%mozilla.org
2cc30d28ec Add JS_MapGCRoots for complete enumeration of GC roots (72465, r/sr={shaver,jband}).
git-svn-id: svn://10.0.0.236/trunk@89955 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:33:39 +00:00
pinkerton%netscape.com
6349cc13d8 fix a const warning.
git-svn-id: svn://10.0.0.236/trunk@89954 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:32:22 +00:00
javi%netscape.com
91998e8935 Fix Linux build bustage.
git-svn-id: svn://10.0.0.236/trunk@89953 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:27:04 +00:00
stephend%netscape.com
99d334219c Inconsistency between News Server and News Server (NNTP) in bug 70128. r=jglick@netscape.com sr=sspizter@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89952 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:23:17 +00:00
pinkerton%netscape.com
75a29487aa turn off translucent dragging and make outline building code a little better. make drag/drop work on OSX. r=saari/sr=sfraser. bug#67407
git-svn-id: svn://10.0.0.236/trunk@89951 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:17:44 +00:00
yokoyama%netscape.com
a4193c9a18 Bug fix 72308: Removing duplicate files
git-svn-id: svn://10.0.0.236/trunk@89950 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:17:43 +00:00
erik%netscape.com
d294fedda9 bug 71314; author=simon@softel.co.il; r=mjudge,anthonyd; sr=erik; changes
from IBM bidi project (Arabic, Hebrew, etc); some in ifdef for now


git-svn-id: svn://10.0.0.236/trunk@89949 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:16:22 +00:00
ccarlen%netscape.com
c301ab4a03 Bug 72129 - OpenANSIFIleDesc on Mac won't create new files.
r=beard@netscape.com, sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@89948 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:13:20 +00:00
dbragg%netscape.com
261b7b3310 NOT PART OF BUILD. Removing a bunch of extraneous linefeeds that break IRIX.
git-svn-id: svn://10.0.0.236/trunk@89947 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:11:26 +00:00
yokoyama%netscape.com
42e3d60337 bug fix 72660; sr=erik
git-svn-id: svn://10.0.0.236/trunk@89945 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:03:30 +00:00
javi%netscape.com
a810338812 Make p12 build on the Mac. Make p12 initialize the key db if it hasn't been initialized.
git-svn-id: svn://10.0.0.236/trunk@89944 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 00:57:46 +00:00
darin%netscape.com
c28bedd082 Fixes bug 71962. HTTP POST data corruption. r=blizzard, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@89943 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 00:53:16 +00:00
alecf%netscape.com
843ff084eb NOT PART OF BUILD
first checkin of timing service so we can get rough timing of specific events


git-svn-id: svn://10.0.0.236/trunk@89942 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 23:39:25 +00:00
darin%netscape.com
c946992117 Removing some printf's.
git-svn-id: svn://10.0.0.236/trunk@89941 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 23:37:22 +00:00
pavlov%netscape.com
9dcccce063 fixing jpegs on windows, adding some more assertions.
git-svn-id: svn://10.0.0.236/trunk@89939 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 23:06:29 +00:00
gordon%netscape.com
7b8581452d Landing MOZ_NEW_CACHE_20010314_BRANCH, incorporating feedback from recent test builds. New cache is still disabled by default.
git-svn-id: svn://10.0.0.236/trunk@89933 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 22:42:03 +00:00
bryner%uiuc.edu
052a3d2251 Fixing bustage from string changes. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@89932 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 22:41:35 +00:00
saari%netscape.com
fce6df0b42 updating mac build
git-svn-id: svn://10.0.0.236/trunk@89931 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 21:44:22 +00:00
saari%netscape.com
132e432388 Updates for imglib2 mac build
git-svn-id: svn://10.0.0.236/trunk@89929 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 21:43:23 +00:00
saari%netscape.com
3aff239081 update for mac build
git-svn-id: svn://10.0.0.236/trunk@89928 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 21:42:19 +00:00
saari%netscape.com
679af13853 Updates for libimg2 mac
git-svn-id: svn://10.0.0.236/trunk@89927 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 21:41:54 +00:00
saari%netscape.com
cd4c9e8e01 changing timer default to 100
git-svn-id: svn://10.0.0.236/trunk@89926 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 21:41:39 +00:00
hyatt%netscape.com
58c927c811 Fix for 72614.
git-svn-id: svn://10.0.0.236/trunk@89925 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 20:27:38 +00:00
mcgreer%netscape.com
d54eee2922 make the cert name show up in the edit window
git-svn-id: svn://10.0.0.236/trunk@89924 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 18:32:04 +00:00
mcgreer%netscape.com
7ed512e6fd stuff for cert manager
* PKCS#12 backup and restore
* editing cert trust
* more detail for view cert (UI to change later)
* temporary token login


git-svn-id: svn://10.0.0.236/trunk@89923 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 18:00:44 +00:00
blizzard%redhat.com
679ab7988f Fix bug #66457. Cursor is still a stopwatch after the page finished loading until the mouse moves. sr=alecf, r=bryner
git-svn-id: svn://10.0.0.236/trunk@89922 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:57:00 +00:00
karnaze%netscape.com
e430d1ff85 bug 67864 - don't create anonymous ancestors of table inside caption. sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@89921 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:53:29 +00:00
brade%netscape.com
813ef26aaf remove unused file at the request of shaver
git-svn-id: svn://10.0.0.236/trunk@89920 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:51:52 +00:00
karnaze%netscape.com
698c240060 bug 68912 - allow nsHTMLTableRowElement::SetCells() to pass a null value. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89919 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:40:18 +00:00
brade%netscape.com
04f2a5fef2 ensure we actually have a file (bug #71856); sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@89918 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:34:29 +00:00
brade%netscape.com
2c4f175c83 handle cancellation of filepicker; bug #71856, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@89917 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:29:53 +00:00
brade%netscape.com
debba03ea8 change PutOnClipboard to pass in a PRInt32 rather than a short; bug #72537; sr=sfraser, r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@89916 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:27:29 +00:00
shaver%mozilla.org
5a9cca3c72 remove unused, atotic-era mac stuff, r=brade
git-svn-id: svn://10.0.0.236/trunk@89915 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:23:01 +00:00
chak%netscape.com
4ac922eba6 Fix the previous checkin for Bug# 71994 - Add SetVisibility() to MfcEmbed
r=mao via IRC yesterday


git-svn-id: svn://10.0.0.236/trunk@89914 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:07:53 +00:00
shaver%mozilla.org
366fb7f66c 39268: fix FreeBSD object layout <lennox@cs.columbia.edu>
git-svn-id: svn://10.0.0.236/trunk@89912 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 15:01:06 +00:00
shaver%mozilla.org
c3e99c89f2 71654: BSD/OS xptcall support from <lidl@pix.net> and <torek@bsdi.com>
git-svn-id: svn://10.0.0.236/trunk@89909 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 14:50:49 +00:00
dcone%netscape.com
4c83a31628 Open and embed correctly a printpreview presentation. r=kmcclusk. Viewer only.
git-svn-id: svn://10.0.0.236/trunk@89907 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 14:40:59 +00:00
shaver%mozilla.org
446f1ad3f6 39373 and 71237: make prefs use JS_*Request to defend against off-thread calls
and ensure that we don't destroy a context after the runtime has gone away.
(r=alecf, sr=brendan, assist=dbaron)


git-svn-id: svn://10.0.0.236/trunk@89906 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 14:34:56 +00:00
hwaara%chello.se
3701608574 Fix "FMM in nsMsgNewsFolder::UpdateSummaryFromNNTPInfo". bug 66787. r=timeless, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@89905 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 13:43:33 +00:00
hwaara%chello.se
6e2b2cf1af Fix "FMM: Freeing mismatched memory in PresShell::DumpReflows". bug 71956. r=rods, sr=scc.
git-svn-id: svn://10.0.0.236/trunk@89904 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 13:34:17 +00:00
hwaara%chello.se
2a8b96a54e Fix compiler warning and small optimization in NewsDeliveryCallback(). bug 72388. r=ducarroz, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@89903 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 13:14:57 +00:00
glazman%netscape.com
9b195bce94 Tables without border attribute were invisible in editor. Highly depends on 71647. b=57686, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@89902 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 12:25:15 +00:00
glazman%netscape.com
710439fbb7 adds support for :not() css3 pseudo-class; b=71647, r=pierre, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89901 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 11:49:20 +00:00
rods%netscape.com
4390601f54 fixed move mouse over selected item in dropdown, it will no longer hilite disabled items
Bug 72226 r=waterson sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89900 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 11:48:27 +00:00
rods%netscape.com
ed6ac30d24 Change box sizing atom back to correct non-xul name
Bug 72226 r=waterson sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89899 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 11:42:56 +00:00
disttsc%bart.nl
714ce714ad Add accel+0 to reset text zoom to 100%. bug=69565, r=Hixie, a=ben
git-svn-id: svn://10.0.0.236/trunk@89897 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 08:47:55 +00:00
sspitzer%netscape.com
47181f8b0d fix for #60776. don't land in the trash folder on "next message"
navigation.  thanks to putterman for the patch.  also some cleanup
of some dump() statements.  sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@89896 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 08:30:11 +00:00
maolson%earthlink.net
1597d536e0 fix Bug 71845 - Schedule/Notify tabs in bookmark properties don't show if url starts with HTTP (upper case)
r=jag, a=ben


git-svn-id: svn://10.0.0.236/trunk@89895 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 08:14:16 +00:00
maolson%earthlink.net
a3a98e3b6a fix Bug 57646 - javascript strict warnings in bookmarks.js
r=timeless, a=ben


git-svn-id: svn://10.0.0.236/trunk@89894 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 08:12:07 +00:00
sspitzer%netscape.com
df7b9b15cd removing test harness.
git-svn-id: svn://10.0.0.236/trunk@89893 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 08:05:37 +00:00
maolson%earthlink.net
fb4d785315 fix Bug 67790 - javascript strict warnings in bookmarksOverlay.js
r=jag, a=ben


git-svn-id: svn://10.0.0.236/trunk@89892 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 08:03:15 +00:00
bryner%uiuc.edu
ff3ac22c90 Removing dependence on obsolete headers. Bug 38061 (ongoing work). r=shaver, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@89891 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 08:01:28 +00:00
disttsc%bart.nl
39a73d87b8 Attempt at fixing OS2 bustage
git-svn-id: svn://10.0.0.236/trunk@89890 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 07:47:40 +00:00
bryner%uiuc.edu
908a8b6f67 Syncing to jag's string changes to fix build bustage. r=jag.
git-svn-id: svn://10.0.0.236/trunk@89889 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 07:46:37 +00:00
disttsc%bart.nl
89d323d4f2 Fix bustage on "tinderbox-test-1", r=bryner
git-svn-id: svn://10.0.0.236/trunk@89888 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 07:01:52 +00:00
sspitzer%netscape.com
552962e197 remove some dead js and some dump statements.
fix #72592, if sorted by "order received" fix the insertion sort problem.
fix #72589, get "sort by status" working.
fix #72608, fix IsSpecialFolder() to do bitwise operations, instead of string compares
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@89887 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 06:41:20 +00:00
disttsc%bart.nl
0d91ad7eb5 Fix windows bustage. r=smfr
git-svn-id: svn://10.0.0.236/trunk@89886 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 06:39:41 +00:00
disttsc%bart.nl
95f318724d Fix Mac build bustage
git-svn-id: svn://10.0.0.236/trunk@89885 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 06:29:08 +00:00
disttsc%bart.nl
6872d458f1 Fix Nebiros bustage by not including time.h, r=cls
git-svn-id: svn://10.0.0.236/trunk@89884 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 06:19:56 +00:00
bryner%uiuc.edu
626995a7f3 Patch from jag to sync with new string changes. r=me.
git-svn-id: svn://10.0.0.236/trunk@89883 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 06:09:00 +00:00
jgmyers%netscape.com
d62d33ef96 Remove unused MD5 code: bug 71764 sr=mscott r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@89882 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 05:56:09 +00:00
leaf%mozilla.org
be11a9dc3e Automated update
git-svn-id: svn://10.0.0.236/trunk@89881 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 05:45:08 +00:00
cls%seawood.org
4f0ac3c331 Land the rest of the --enable-static-components build changes.
Bug #46775 r=bryner


git-svn-id: svn://10.0.0.236/trunk@89880 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 05:42:58 +00:00
disttsc%bart.nl
a863c06732 Move nsCString from |operator char*()| to |get()| and |NS_CONST_CAST| where needed. bug=53057, r=dmose, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@89879 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 05:37:56 +00:00
cls%seawood.org
524b68662b Create uniquely named debug variables for each libimg component.
Bug #50782 r=pavlov sr=tor


git-svn-id: svn://10.0.0.236/trunk@89878 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 05:30:59 +00:00
sspitzer%netscape.com
ad038ebe91 ignore generated makefiles
git-svn-id: svn://10.0.0.236/trunk@89877 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 05:30:53 +00:00
idk%eng.sun.com
5498684af1 *not part of regular build*
Follow up on 67699
Fixed build problem


git-svn-id: svn://10.0.0.236/trunk@89876 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 05:30:16 +00:00
mcafee%netscape.com
ace5e85a9b Adding rods reflow debugging tools to pref/debug panel (72582). r=pchen, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@89875 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 05:29:02 +00:00
pavlov%netscape.com
0cc649a164 removing the check for mHasImage before calling mImageLoader.Init()... this wasn't in the old code and slipped in. should fix orange trees. r=brendan
git-svn-id: svn://10.0.0.236/trunk@89874 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 04:43:35 +00:00
nelsonb%netscape.com
31d9f60da5 Add function SECU_PrintBuf() which prints a buffer in hex and ASCII.
git-svn-id: svn://10.0.0.236/trunk@89872 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 04:23:38 +00:00
mkaply%us.ibm.com
5174b578ac OS/2 TB breakage
git-svn-id: svn://10.0.0.236/trunk@89866 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 02:44:36 +00:00
pavlov%netscape.com
4a6b4ad40f fix the image cache problem with nsImageDocuments and add some more assertions
git-svn-id: svn://10.0.0.236/trunk@89864 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 02:23:42 +00:00
pinkerton%netscape.com
904c643c76 removing nsAnonymousElement.cpp to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@89863 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 02:00:09 +00:00
sspitzer%netscape.com
5f0f7ef39f fix for #16916. make it so space pages down in the current message
and if at the end of a message, acts like you hit "next message".
thanks to jst@netscape.com for the patch.  sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@89861 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:51:23 +00:00
sspitzer%netscape.com
1148cf2fb4 fix cross folder message navigation. sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@89860 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:49:03 +00:00
ducarroz%netscape.com
8bdc95a4b7 Fix Mac bustage in mime.
git-svn-id: svn://10.0.0.236/trunk@89859 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:47:41 +00:00
hyatt%netscape.com
fa1da99885 Missed another file.
git-svn-id: svn://10.0.0.236/trunk@89858 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:46:41 +00:00
hyatt%netscape.com
af7b24bdc0 OOps. Missed a file.
git-svn-id: svn://10.0.0.236/trunk@89857 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:45:51 +00:00
nelsonb%netscape.com
ad03c5b0d0 Fix bug in SSL_ResetHandshake introduced in last checkin.
git-svn-id: svn://10.0.0.236/trunk@89856 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:39:02 +00:00
heikki%netscape.com
39b54ea982 Removed unused variable. NS_PAGE_LOAD is nsEvent, not nsMouseEvent. r=harishd.
git-svn-id: svn://10.0.0.236/trunk@89855 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:19:48 +00:00
sspitzer%netscape.com
f0a22f674c fix #72567. whoops, I broke message dnd. sr=bienvenu.
(you might have to remove your component.reg file, too see the bug)


git-svn-id: svn://10.0.0.236/trunk@89853 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:08:57 +00:00
heikki%netscape.com
fd1ba312a3 Not part of build. Added tests for document.load() (a DOM extension used to load XML documents asynchronloysly as data).
git-svn-id: svn://10.0.0.236/trunk@89852 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:05:05 +00:00
blizzard%redhat.com
1dbe26fbf9 Attempt to fix irix bustage. Shouldn't hurt other platforms.
git-svn-id: svn://10.0.0.236/trunk@89851 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 00:00:48 +00:00
hyatt%netscape.com
3d94693968 Fix for 72345. r=jag, sr=shaver,scc
git-svn-id: svn://10.0.0.236/trunk@89850 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:56:28 +00:00
pavlov%netscape.com
5b76dd6c1b xul image frame changes for new imagelib. part of bug 70938. r=danm sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89849 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:44:55 +00:00
tao%netscape.com
121d5c1127 Fix bustage.
git-svn-id: svn://10.0.0.236/trunk@89847 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:40:58 +00:00
disttsc%bart.nl
bf3ffb8d4c Fix MOZ_TRACK_MODULE_DEPS builds (e.g. senna) bustage, adding "windowwatcher" to REQUIRES line in embedding/browser/gtk/src/Makefile.in
git-svn-id: svn://10.0.0.236/trunk@89846 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:36:16 +00:00
kestes%tradinglinx.com
caf3dbef6f always show the last few lines of the build.
git-svn-id: svn://10.0.0.236/trunk@89845 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:35:13 +00:00
disttsc%bart.nl
de5f2784f3 Fix MOZ_TRACK_MODULE_DEPS builds (e.g. senna) bustage, adding "string" to REQUIRES line in embedding/components/appstartup/src/Makefile.in
git-svn-id: svn://10.0.0.236/trunk@89844 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:35:10 +00:00
kestes%tradinglinx.com
7c528aaa25 add system3() so that we can send reports while the
build is running.


git-svn-id: svn://10.0.0.236/trunk@89843 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:33:43 +00:00
kestes%tradinglinx.com
61035f9594 fix typo in header generation.
take out the <p> in the info, it makes the windows too big.
also increase the window sizing algorithm for the headers
   to be compatible with what I do for the build.


git-svn-id: svn://10.0.0.236/trunk@89842 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:32:43 +00:00
disttsc%bart.nl
923953f2bf Fix MOZ_TRACK_MODULE_DEPS builds (e.g. senna) bustage, add "embedcomponents" to REQUIRES line in embedding/base/Makefile.in, r=cls
git-svn-id: svn://10.0.0.236/trunk@89841 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:30:29 +00:00
sspitzer%netscape.com
dcaa9dd698 fix for #72553. remember if we hid the flag / read columns.
sr=bienvenu.  also persist the width of some columns we weren't
persisting, due to a spelling mistake.  (thanks to neil@parkwaycc.co.uk for
that part of the fix)


git-svn-id: svn://10.0.0.236/trunk@89840 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:27:58 +00:00
pavlov%netscape.com
3ae4e7b67d unix build changes to conditionally build new directories if configure flags are specified. part of bug 70938. r=dbaron@fas.harvard.edu sr=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@89839 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:26:47 +00:00
peterlubczynski%netscape.com
1816ee238e Fix for getting Object Frame (and plugins) getting focus on Mac. Fixes Shockwave typing input bug 68756 a=av sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@89838 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:26:41 +00:00
pavlov%netscape.com
a392f992e6 add -DMOZ_NEW_CACHE and -DUSE_IMG2 to CFLAGS on windows if MOZ_NEW_CACHE is set and/or USE_IMG2 part of bug 70938. r=bryner sr=cls
git-svn-id: svn://10.0.0.236/trunk@89837 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:21:52 +00:00
erik%netscape.com
44e2c24154 bug 71339; author=simon@softel.co.il; r=rods; sr=erik; changes from IBM
bidi project (Hebrew, Arabic, etc); in ifdef IBMBIDI for now


git-svn-id: svn://10.0.0.236/trunk@89836 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:20:21 +00:00
tao%netscape.com
bc59c7f07e 71517: Dynamically select platform jar in langxxxx.xpi. r=ssu, sr=dveditz.
package all en-*.jar into langenus.xpi and select on one the fly.


git-svn-id: svn://10.0.0.236/trunk@89835 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:10:12 +00:00
javi%netscape.com
a0433e7576 Make a better contract ID for the pk11 token db.
git-svn-id: svn://10.0.0.236/trunk@89834 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:09:28 +00:00
jgmyers%netscape.com
978e353a60 Add assertion for thread saftey of MIME_ConvertCharset(): bug 70499 r=ducarroz sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@89833 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:09:22 +00:00
peterlubczynski%netscape.com
06461ca556 Fix for null docShell in nsEventStateManager::UpdateCursor. Fixing AIM Express top crash. bug 69589 r=saari sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89831 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:01:59 +00:00
pavlov%netscape.com
89f6e6b48d (not part of the build) changing nsHTMLAtoms::image to nsXULAtoms::image r=hyatt
git-svn-id: svn://10.0.0.236/trunk@89830 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:59:20 +00:00
jgmyers%netscape.com
f8c046d2a3 Make SMTP prefer PLAIN over LOGIN: bug 72218 sr=mscott r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@89829 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:57:37 +00:00
blizzard%redhat.com
223be9605e Bug #72224. Turn on the new embedding widget. sr=shaver r=danm
git-svn-id: svn://10.0.0.236/trunk@89827 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:25:29 +00:00
waterson%netscape.com
42e5d3524d Bug 71594. Reparent views from 'trailing' frame, but only make trailing frame if it'd have children. r=karnaze, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89826 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:24:20 +00:00
waterson%netscape.com
5f1b8eaa71 Bug 71421. Always check for null script object from CompileScript(). r=mstoltz, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@89825 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:22:24 +00:00
sspitzer%netscape.com
e7073d7eaf fix for #72292. don't use [value="..."] rules in css. sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@89824 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:18:47 +00:00
blizzard%redhat.com
6c254a95d9 Fix bug #72069. Move event processing until after the X event has been processed to prevent race conditions. Lots of Gtk warnings and crashes should be fixed with this. sr/r=shaver/brendan ( tag team )
git-svn-id: svn://10.0.0.236/trunk@89823 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:17:47 +00:00
sspitzer%netscape.com
9f39019f2b fix #58454. this extra logging call made it look we were doing
two XOVERs.  sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@89822 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:16:55 +00:00
waterson%netscape.com
57d62b2a78 Bug 71594. Reparent views from 'trailing' frame, but only make trailing frame if it'd have children. r=karnaze, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89821 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:16:47 +00:00
peterlubczynski%netscape.com
7f3a4852aa Fix wording in Windows Default Plugin bug 56653 a=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89819 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:16:32 +00:00
sspitzer%netscape.com
6320a7dec7 fix for #72371. sr=bienvenu. get "unsubscribe" working from the edit menu and the folder pane context menu.
git-svn-id: svn://10.0.0.236/trunk@89818 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:15:38 +00:00
sspitzer%netscape.com
45720cad07 fix for #68036. (quiet compiler warnings) sr=brendan/waterson a long time ago.
git-svn-id: svn://10.0.0.236/trunk@89817 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:14:07 +00:00
blakeross%telocity.com
84d0860013 Crash when reading past the end of a CSSRuleList. patch by Hixie (ian@hixie.ch). r=blake, glazman sr=jst
git-svn-id: svn://10.0.0.236/trunk@89816 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:12:12 +00:00
sspitzer%netscape.com
f98d1960e3 more files removed due to the mailnews perf landing.
git-svn-id: svn://10.0.0.236/trunk@89815 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:11:49 +00:00
peterlubczynski%netscape.com
a86451a0a3 Fix refcount issue with nsPluginInstanceOwner caused during key event listener registration bug 72236 a=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89814 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:10:23 +00:00
pavlov%netscape.com
c226a0997a send the onstopframe message
git-svn-id: svn://10.0.0.236/trunk@89813 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:58:07 +00:00
chak%netscape.com
1cb86d4edf Remaining Fixes for #68720 - EmbedAPI should use generic startup observers
r=ccarlen,sr=alecf

Fix for #71994
MfcEMbed must implement Get/SetVisibility of nsIEmbeddingSiteWindow
r=chak


git-svn-id: svn://10.0.0.236/trunk@89812 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:57:57 +00:00
pavlov%netscape.com
3cb8c719f6 new caching stuff
git-svn-id: svn://10.0.0.236/trunk@89811 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:57:39 +00:00
disttsc%bart.nl
036337b6d3 Stop "about:blank" from being loaded twice at startup and get rid of a reload at startup accidentily added a while back. bug=72342, r=hwaara, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89810 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:52:33 +00:00
roc+%cs.cmu.edu
868dfa2604 Fix for 72055 by ian@hixie.ch. If a widget doesn't have a view, then don't try to exclude it from the opaque covering region. r=kmcclusk, sr=roc+moz@cs.cmu.edu
git-svn-id: svn://10.0.0.236/trunk@89809 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:51:58 +00:00
disttsc%bart.nl
58344f8f95 "Add gopher:// urls to winhooks integration", bug=70264, author=Stephen Walker <walk84@usa.net>, r=timeless, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@89808 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:48:31 +00:00
axel%pike.org
9cdd58f67a not part of build; fixing 72532; r=peterv
git-svn-id: svn://10.0.0.236/trunk@89807 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:48:19 +00:00
mkaply%us.ibm.com
461056825b No bug
r=javier, sr=jst
Change some PR_CALLBACK to JS_DLL_CALLBACK


git-svn-id: svn://10.0.0.236/trunk@89806 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:46:25 +00:00
shaver%mozilla.org
4735fecffe 67797: add Components.isSuccessCode (r=jag, sr=jband)
git-svn-id: svn://10.0.0.236/trunk@89805 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:34:05 +00:00
pinkerton%netscape.com
eaca667606 fix up case differences, since sometimes OSX seems to care.
git-svn-id: svn://10.0.0.236/trunk@89803 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:31:14 +00:00
pinkerton%netscape.com
9e69373881 fix up case differences since sometimes osX seems to care.
git-svn-id: svn://10.0.0.236/trunk@89802 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:30:51 +00:00
pinkerton%netscape.com
e2fd482731 turn on rod's reflow counts in debug and clean up a lot of unused cruft. r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@89801 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:27:14 +00:00
dave%intrec.com
8d25b5b1ac Adding a comment to the top to hopefully prevent some of the confusion that new Bugzilla maintainers are often running into with hacking Bugzilla installs.
git-svn-id: svn://10.0.0.236/trunk@89799 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:17:48 +00:00
dave%intrec.com
b7827442ce Re-re-fix for bug 71550. This will quite likely fix a number of bugs in other places. The DBID<->Name conversion routines in globals.pl were not pushing/popping the SQL state around their SQL calls, which could result in lost data if called from inside a loop which is handling other SQL data.
git-svn-id: svn://10.0.0.236/trunk@89798 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:03:52 +00:00
blizzard%redhat.com
f9544d281c Fix the rest of #72313 for sloppy focus users. Really. I swear. r=shaver,waterson a=leaf
git-svn-id: svn://10.0.0.236/trunk@89796 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 20:50:44 +00:00
mkaply%us.ibm.com
64cc00f678 OS/2 breakage - same as Win
git-svn-id: svn://10.0.0.236/trunk@89793 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 20:07:06 +00:00
timeless%mac.com
a88215d2d2 fix bug 72487 Create Attachment should allow user to create another attach
Also adds link+desc to created patch.
r=jake,terry


git-svn-id: svn://10.0.0.236/trunk@89792 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 20:02:55 +00:00
javi%netscape.com
e9871b28e3 Add new sources from freebl to the Mac project.
git-svn-id: svn://10.0.0.236/trunk@89788 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 19:06:42 +00:00
shaver%mozilla.org
8df961cb98 fix build bustage (r=blizzard)
git-svn-id: svn://10.0.0.236/trunk@89784 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 18:44:59 +00:00
javi%netscape.com
92fb87a01a ccarlen says we don't have to bump the refCnt when adding the observer.
git-svn-id: svn://10.0.0.236/trunk@89783 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 18:30:25 +00:00
blizzard%redhat.com
b2e5c45110 Fix bug #72313. Focus problems on linux. This adds a flag to nsIWidget::SetFocus() that says to raise the window. We only raise the window from one place, window.focus(). This builds and runs on at least linux and the mac. r=jst,brendan,hyatt a=leaf
git-svn-id: svn://10.0.0.236/trunk@89782 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 17:56:04 +00:00
alecf%netscape.com
9e059ce270 fix for blocker 72477 - add layout_xul_outliner.xpt to the nightly builds
a=leaf,sr=shaver


git-svn-id: svn://10.0.0.236/trunk@89781 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 17:52:49 +00:00
blizzard%redhat.com
df6410128f Comments from shaver's super-review. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89771 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 00:52:53 +00:00
mkaply%us.ibm.com
08207ada5e Attempt to fix OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@89752 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 04:15:26 +00:00
dbaron%fas.harvard.edu
a2b4b21279 Fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage from mailnews performance branch landing by adding new header file dependencies to REQUIRES.
git-svn-id: svn://10.0.0.236/trunk@89750 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 03:49:10 +00:00
sspitzer%netscape.com
8b79622536 fix bustage.
git-svn-id: svn://10.0.0.236/trunk@89749 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 02:59:47 +00:00
sspitzer%netscape.com
300aa26b63 fix bustage
git-svn-id: svn://10.0.0.236/trunk@89748 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 02:58:53 +00:00
sspitzer%netscape.com
0563879c7b remove files no longer part of the build due to the mailnews landing.
(specifically, there is no more message datasource or nsIMessage)


git-svn-id: svn://10.0.0.236/trunk@89747 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 02:54:34 +00:00
rginda%netscape.com
9d8b843e90 -- NOT PART OF THE BUILD --
initial checkin of a "did you know" factsheet for chatzilla


git-svn-id: svn://10.0.0.236/trunk@89744 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 02:04:06 +00:00
mscott%netscape.com
7dc24bf70f Land the Mailnews Performance Branch.
Includes front end re-write to use the outliner widget for the thread pane.

Improvements in scrolling, folder loading, message display, replyto time, sorting, selecting, deleting, the list goes
on and on.

enjoy =).


git-svn-id: svn://10.0.0.236/trunk@89742 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 01:59:34 +00:00
ducarroz%netscape.com
6d492e619a Mailnews performance branch landing...
git-svn-id: svn://10.0.0.236/trunk@89740 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 01:53:39 +00:00
blizzard%redhat.com
d8c584e973 Fix bug #71266. As much as we all dispise it window.focus() should raise windows on linux. r=danm, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@89735 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 01:39:04 +00:00
av%netscape.com
1cf64c84f7 Fixing #72019, missing frees added to match allocs, patch by beard, r=bnesse, sr=waterson, a=av
git-svn-id: svn://10.0.0.236/trunk@89732 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 00:38:23 +00:00
law%netscape.com
7dd64f83ed Bug 26029; add CHROME_WINDOW_MIN flag to enable minimizable dialog windows (and use that for download progress dialogs); r=danm sr=alecf a=asa
git-svn-id: svn://10.0.0.236/trunk@89731 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 00:30:38 +00:00
hyatt%netscape.com
0e5da4adda etc.
git-svn-id: svn://10.0.0.236/trunk@89730 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 00:28:00 +00:00
hyatt%netscape.com
9f5f830a3a See my previous message.
git-svn-id: svn://10.0.0.236/trunk@89728 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 00:27:46 +00:00
hyatt%netscape.com
47af48047c Fixes for my 3 0.8.1 bugs... all approved etc. etc.
git-svn-id: svn://10.0.0.236/trunk@89727 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-17 00:27:13 +00:00
law%netscape.com
f4fdc0f69c Bug 50424; open new browser window if there is no explicit url, -mail, etc.; r=mcafee, sr=hyatt, a=asa
git-svn-id: svn://10.0.0.236/trunk@89726 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 23:51:22 +00:00
pchen%netscape.com
c94579a578 bug 69810, r=mcafee, sr=hyatt, a=asa, #define INCLUDE_XUL 1 for mac dom project, fixes nsFocusController::GetControllers() to QI currently focused element to a xul element and call GetControllers() on it if QI succeeds.
git-svn-id: svn://10.0.0.236/trunk@89725 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 23:38:36 +00:00
sspitzer%netscape.com
473b91f301 fix for #69684 (and other subscribe problems caused by this.)
using [value="true"] in my css made things dog slow.
see alecf's posting news://news.mozilla.org/3A82F42D.1050102@netscape.com
sr=bienvenu a=asa


git-svn-id: svn://10.0.0.236/trunk@89724 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 23:35:14 +00:00
nelsonb%netscape.com
c603a294b4 Reinterpret the READ and WRITE poll flags depending on the state of the
socket and the SSL handshake.  Rename the badly named "connected" flag.
Bugzilla bugs 56924, 56926, 66706.
Modified Files:
    ssl3con.c sslauth.c sslcon.c ssldef.c sslgathr.c sslimpl.h
    sslsecur.c sslsock.c


git-svn-id: svn://10.0.0.236/trunk@89723 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 23:26:06 +00:00
disttsc%bart.nl
5835721f7b Hook up browser UI after skin switch. bug=68662, r=ben, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@89722 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 22:40:15 +00:00
gordon%netscape.com
32db7c1881 Fix bug 72038 "FTP listings never stop loading on Mac", by sfraser and gordon. r= dougt, sr=scc.
git-svn-id: svn://10.0.0.236/trunk@89719 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 22:00:13 +00:00
disttsc%bart.nl
8196638759 "status bar not displaying final information", bug 62796, r=mao, sr=hyatt, a=asa
git-svn-id: svn://10.0.0.236/trunk@89718 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 21:40:33 +00:00
colin%theblakes.com
33a9d0232e Fix OpenVMS build breakage
b=71990 r=danm sr=blizzard a=leaf


git-svn-id: svn://10.0.0.236/trunk@89717 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 21:39:49 +00:00
dougt%netscape.com
d54a8889e3 Fixes bug 71397. s/r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89716 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 21:33:23 +00:00
disttsc%bart.nl
1b8b7ba3a7 "Re-do change from bundle to gNavigatorBundle" (accidental backout), bug=72137, r=mao, sr=ben, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@89715 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 21:32:24 +00:00
hewitt%netscape.com
616340ca64 72210 - mailheader bgcolor, r=hwaara, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@89713 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 20:39:01 +00:00
mkaply%us.ibm.com
6433e2b695 No bug
r=mkaply, a=asa
256 color regression caused by previous checkin


git-svn-id: svn://10.0.0.236/trunk@89712 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 20:31:22 +00:00
blizzard%redhat.com
fbc5d357a4 Make chrome windows resize intrinsically. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89711 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 19:38:01 +00:00
brendan%mozilla.org
44a9a9cb5c Fix JS_ArenaRealloc to cope with alignment shift from realloc (72034, r=shaver, sr=jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@89708 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 08:06:08 +00:00
dave%intrec.com
df86eaa659 Re-fix for bug 71550: all watchers are now accounted for instead of only the first watcher found.
git-svn-id: svn://10.0.0.236/trunk@89707 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 07:49:37 +00:00
despotdaemon%netscape.com
711641a17f Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@89704 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 05:37:12 +00:00
hewitt%netscape.com
842347b0b8 65745 - themes cleanup, r=dveditz/cmanske/chuang/blake/andreww, sr=hyatt, a=leaf
git-svn-id: svn://10.0.0.236/trunk@89702 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 04:44:58 +00:00
despotdaemon%netscape.com
1e8fa240de Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@89701 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 04:26:18 +00:00
hewitt%netscape.com
ec7e0f3002 65745 - themes cleanup, r=dveditz/cmanske/chuang/blake/andreww, sr=hyatt, a=leaf
git-svn-id: svn://10.0.0.236/trunk@89700 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 04:16:29 +00:00
despotdaemon%netscape.com
c1bb863f76 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@89699 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 04:01:11 +00:00
hewitt%netscape.com
1a78c9d45d 65745 - themes cleanup, r=dveditz/cmanske/chuang/blake/andreww, sr=hyatt, a=leaf
git-svn-id: svn://10.0.0.236/trunk@89698 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 03:33:21 +00:00
sdagley%netscape.com
5ee5780803 Fix #72048. Add Carbon target for apprunner project w/'carb' 0 resource so the built app is properly identified as a Carbon app. r=pinkerton, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@89697 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 03:08:41 +00:00
hewitt%netscape.com
d8a7618d66 65745 - themes cleanup, r=dveditz/cmanske/chuang/blake/andreww, sr=hyatt, a=leaf
git-svn-id: svn://10.0.0.236/trunk@89696 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 02:56:38 +00:00
pavlov%netscape.com
94a4c64b99 changes wrt where we cache images. now setting the size and expiration date information on the cache entry descriptor
git-svn-id: svn://10.0.0.236/trunk@89695 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 02:40:04 +00:00
pavlov%netscape.com
594f3ea713 making function prototype static so it doesn't default to extern
git-svn-id: svn://10.0.0.236/trunk@89686 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 23:33:52 +00:00
mscott%netscape.com
68c97c24a6 NOT PART OF THE BUILD
Pre-landing work for the mailnews performance branch. Add news files on the branch to the tip.


git-svn-id: svn://10.0.0.236/trunk@89684 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 22:43:49 +00:00
mscott%netscape.com
1152668ec8 NOT PART OF THE BUILD
Pre-landing work for the mailnews performance branch.

Add news files on the branch to the tip.


git-svn-id: svn://10.0.0.236/trunk@89683 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 22:43:31 +00:00
mscott%netscape.com
b7d13d8915 NOT PART OF THE BUILD
Pre-landing work for the mailnews performance branch. Add news files on the branch to the tip.


git-svn-id: svn://10.0.0.236/trunk@89682 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 22:35:34 +00:00
mscott%netscape.com
679f920a00 NOT PART OF THE BUILD!!!
Pre-landing work for the mailnews performance branch.

Adding some new files to the tip.


git-svn-id: svn://10.0.0.236/trunk@89681 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 22:33:33 +00:00
mkaply%us.ibm.com
5f45c15165 No bug
r=mkaply, a=asa
Basic support for lower Unicode range on all encoding


git-svn-id: svn://10.0.0.236/trunk@89680 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 21:13:43 +00:00
mkaply%us.ibm.com
dac4968cdb No bug
r=mkaply, a=asa
code from aaronr for some PS handling issues
fix for scrollbar issue


git-svn-id: svn://10.0.0.236/trunk@89679 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 21:00:53 +00:00
mkaply%us.ibm.com
d941838f96 No bug
r=mkaply, a=asa
Continuing the GFX cleanup
code from aaronr for some PS handling issues
code from dainis for transparent PNGs and various cleanup


git-svn-id: svn://10.0.0.236/trunk@89678 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 20:59:50 +00:00
kestes%tradinglinx.com
f03faa2a7c add common error stings
git-svn-id: svn://10.0.0.236/trunk@89677 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 18:00:00 +00:00
kestes%tradinglinx.com
823a918960 put the output into a form which can be sourced by /bin/sh
git-svn-id: svn://10.0.0.236/trunk@89676 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 17:59:15 +00:00
kestes%tradinglinx.com
943477803f change some of the default configurations.
git-svn-id: svn://10.0.0.236/trunk@89675 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 17:58:06 +00:00
kestes%tradinglinx.com
f1f77ae7ae update info on state of bonsai support
clarify warnings issues


git-svn-id: svn://10.0.0.236/trunk@89674 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 17:57:20 +00:00
dave%intrec.com
666dc8c49f Fix for bug 71550: watchers now get email based on their own preferences rather than the preferences of the person they are watching. Patch by jake@acutex.net, r= dave@intrec.com
git-svn-id: svn://10.0.0.236/trunk@89673 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 07:50:36 +00:00
javi%netscape.com
e27bec3fe9 Make clean builds work. Do this by removing the sub-class of
nsIDialogParamBlock in nsIPKIParamBlock.  Everywhere we want
to have bot nsIDialogParamBlock and nsIPKIParamBlock we do
QueryInterface to get a pointer to the right interface.


git-svn-id: svn://10.0.0.236/trunk@89670 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 03:06:47 +00:00
beard%netscape.com
ad12fb26e3 Fix to get nsLeakDetector building again after shaver's changes to NS_NewGenericFactory(). r=dbaron@fas.harvard.edu, sr=waterson, amen=leaf.
git-svn-id: svn://10.0.0.236/trunk@89669 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-15 02:49:23 +00:00
mkaply%us.ibm.com
aa0b13b619 #71941
r=jag, a=pchen
OS/2 build bustage (for some reason not on tinderbox) add PR_STATIC_CALLBACK


git-svn-id: svn://10.0.0.236/trunk@89667 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 23:57:37 +00:00
nelsonb%netscape.com
9f41b38daf Build changes for Solaris and gcc. Get gcc to use the proper architecture
flags when building v8plus code on Solaris/Ultrasparc.  Use gcc instead of
ld to build the freebl DSOs when using gcc on Solaris.  And stop using the
"sparkfix" program on Solaris.  It is no longer needed.  Bug 69052.


git-svn-id: svn://10.0.0.236/trunk@89664 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 23:30:37 +00:00
blizzard%redhat.com
b8cc24c133 Put hard coded list of content types back in. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89663 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 22:52:34 +00:00
blizzard%redhat.com
ebe754f6dc Bulletproof some of the functions so that we don't deref things before they are created. Include gtkmozembed_internal.h so that get_nsIWebBrowser actually has C linkage qualities. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89662 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 22:36:19 +00:00
thayes%netscape.com
68a0254fbf Add -DNSS_USE_STATIC_LIBS to get correct linkage against static version
of NSS libraries.


git-svn-id: svn://10.0.0.236/trunk@89661 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 22:33:08 +00:00
briane%qnx.com
ed16fdf997 PHOTON BUILD ONLY
fixes for change in NS_ConvertUCS2toUTF8 for getting data and changes for printing.


git-svn-id: svn://10.0.0.236/trunk@89660 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 22:08:30 +00:00
attinasi%netscape.com
284a540ff9 Putting my changes back in since it made no difference in the orange-ish nature of certain linux tinderboxes. (pchen said it was ok, so there.)
git-svn-id: svn://10.0.0.236/trunk@89659 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 22:02:48 +00:00
blizzard%redhat.com
ed1c7defd2 Make streaming go. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89657 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 21:38:56 +00:00
beard%netscape.com
d9080d0633 [not part of build] Fix dumb assertion.
git-svn-id: svn://10.0.0.236/trunk@89654 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 21:16:55 +00:00
attinasi%netscape.com
0457b743e4 Reverting in hope of fixing the orangeness...
git-svn-id: svn://10.0.0.236/trunk@89648 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 19:59:05 +00:00
briane%qnx.com
2b23174df9 PHOTON BUILD ONLY
Numerous bug fixes and code cleanup for photon related memory leaks and
bugs.


git-svn-id: svn://10.0.0.236/trunk@89647 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 19:46:53 +00:00
relyea%netscape.com
3b7c990555 Make the nss_build_all target work on NT.
git-svn-id: svn://10.0.0.236/trunk@89646 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 19:12:30 +00:00
javi%netscape.com
f01831ca85 Fix for Bug 71889
Null out secmodname during NSS_Shutdown so that a later call to NSS_Init succesfully initializes the SECMOD libraries.

Also, free the memory allocated to allocated the name of the keydb and remove an unused local variable.


git-svn-id: svn://10.0.0.236/trunk@89645 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 18:58:14 +00:00
alecf%netscape.com
0b9c36362d fix today's pseudo-blocker by initializing a variable which determined if the "Now" value was valid or not
r=pchen, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@89644 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 18:34:57 +00:00
relyea%netscape.com
914e9e75e1 Add code to all the nss pre-reqs with a single target.
git-svn-id: svn://10.0.0.236/trunk@89643 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 18:08:25 +00:00
disttsc%bart.nl
d1a9d6124e Fix non-JAR builds run-time bustage. Some lines were accidentily removed from classic/jar.mn and modern/jar.mn, causing needed css files to not be copied / jar'ed up for clobber builds. Putting them back. bug=71953. r=mozbot. Forgive me for cleaning up a little "while I was there".
git-svn-id: svn://10.0.0.236/trunk@89642 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 14:54:44 +00:00
sgehani%netscape.com
a392c0daba Fixing fizilla build bustage. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@89641 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 09:49:22 +00:00
dveditz%netscape.com
071133eddf fixing ports build bustage
git-svn-id: svn://10.0.0.236/trunk@89640 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 08:46:52 +00:00
brendan%mozilla.org
47c8105e26 Fix bug 69271, r=waterson, sr=shaver:
- Don't ape java.lang.String's bogo-sampling hash function for "long" (>=16
  char) strings.
- Theory and practice comment in pldhash.h helps analyze when to use double
  hashing (most of the time) vs. when to use chaining.
- Subroutine ChangeTable from PL_DHashTableOperate so it can be called from
  PL_DHashTableEnumerate, if the latter finds that enough entries have been
  removed to be worth a shrink or compress cycle.


git-svn-id: svn://10.0.0.236/trunk@89639 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:48:07 +00:00
jst%netscape.com
c6e5e34cc0 Fixing bug 67573. Making sure the presshell is in a state where it's safe to flush pending notifications when the dummy layout request is removed from the document loadgroup, this ensures that code that executes in the documents onload handler is able to successfully flush pending notifications on the presshell. r=nisheeth@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89638 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:47:00 +00:00
brendan%mozilla.org
d9b3cdbf07 Fix bug 69271, r=waterson, sr=shaver:
- Don't ape java.lang.String's bogo-sampling hash function for "long" (>=16
  char) strings.
- Theory and practice comment in jsdhash.h helps analyze when to use double
  hashing (most of the time) vs. when to use chaining.
- Subroutine ChangeTable from JS_DHashTableOperate so it can be called from
  JS_DHashTableEnumerate, if the latter finds that enough entries have been
  removed to be worth a shrink or compress cycle.


git-svn-id: svn://10.0.0.236/trunk@89637 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:42:32 +00:00
disttsc%bart.nl
4362910022 Fix bad nsPromiseFlatString usage in nsAtomTable, bug=71759, r=bryner, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@89636 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:41:08 +00:00
disttsc%bart.nl
4388277b51 Fix typo in confirm profile migration code, r=mao, a=ben
git-svn-id: svn://10.0.0.236/trunk@89635 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:38:09 +00:00
pollmann%netscape.com
8897fa1077 Bug 71834: Fix form post smoketest blocker - backout fix for bug 69862
git-svn-id: svn://10.0.0.236/trunk@89634 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:36:13 +00:00
pollmann%netscape.com
cee3a18d0a Bug 55988: Hidden and button inputs save state when the content attribute named 'value' changes, r=jst@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89633 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:36:01 +00:00
pollmann%netscape.com
75ef031b93 Bug 68010: Make XML/XHTML documents obey scrolling attribute on containing frames/iframes, remove unused variable, r=heikki@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89632 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:35:40 +00:00
pollmann%netscape.com
11b1e5a1dc Bug 65878: Make Image documents obey scrolling attribute on containing frames/iframes, remove unused variable, r=heikki@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89631 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:35:29 +00:00
alecf%netscape.com
7dad5273fb fix for bug 71852 sr=hyatt
fix trees by adding -xul to css property, so that scrolled boxes inherit their attributes appropriately


git-svn-id: svn://10.0.0.236/trunk@89630 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:34:04 +00:00
syd%netscape.com
4180f0b973 Fix for:
http://bugzilla.mozilla.org/show_bug.cgi?id=68229

r=andreww, sr=sfraser. checking in for anatoliya


git-svn-id: svn://10.0.0.236/trunk@89629 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:33:46 +00:00
darin%netscape.com
921505b325 Fixes tinderbox redness on the mac. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@89628 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:58:50 +00:00
sgehani%netscape.com
68a8ed2f74 Hook libxpnet into the mac installer (and UI polish friends).
b = 67244
r = ssu
sr = mscott


git-svn-id: svn://10.0.0.236/trunk@89627 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:58:44 +00:00
sgehani%netscape.com
ca9fd62a48 Port libxpnet to the mac. (Turning it on.) Also turning on XPICleanup.
libxpnet:
b = 67248
r = ssu
sr = alecf

XPICleanup:
b = 65680
r = ssu
sr = alecf


git-svn-id: svn://10.0.0.236/trunk@89626 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:51:22 +00:00
sgehani%netscape.com
5ac73cff4a Port libxpnet to the mac.
b = 67248
r = ssu
sr = mscott


git-svn-id: svn://10.0.0.236/trunk@89624 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:49:13 +00:00
attinasi%netscape.com
056dac3c0b b=70731 r=dcone sr=waterson - fixes crasher while printing
git-svn-id: svn://10.0.0.236/trunk@89623 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:45:41 +00:00
leaf%mozilla.org
9bc6202c1f Automated update
git-svn-id: svn://10.0.0.236/trunk@89622 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:45:15 +00:00
attinasi%netscape.com
606a492210 b=63750 r=karnaze sr=scc - fixes bad image reflow problems
git-svn-id: svn://10.0.0.236/trunk@89621 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:44:02 +00:00
attinasi%netscape.com
a9154df1d2 force gopher port to default: sr=attinasi, r=jag b=71916
git-svn-id: svn://10.0.0.236/trunk@89620 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:43:00 +00:00
dmose%netscape.com
7caf9ab8dc Split up ldap build options into two sections: ldap and ldap_experimental, in preparation for turning on just the ldap module in the default builds. Also fixes LDAP C SDK bustage introduced by change to --enable-nspr-autoconf. Bug 70658. Patch from leif@netscape.com, r=dmose@netscape.com, sr=alecf@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@89619 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:41:40 +00:00
beard%netscape.com
3d22220657 Added nsXPIProxy.cpp to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@89617 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:14:54 +00:00
dveditz%netscape.com
df39d51240 fixing bustage
git-svn-id: svn://10.0.0.236/trunk@89616 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 06:03:44 +00:00
beard%netscape.com
ca2ff1c584 fix for bug #71879, r=dveditz, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@89615 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:55:13 +00:00
beard%netscape.com
d8e24864aa added nsAboutCacheEntry.cpp r=darin
git-svn-id: svn://10.0.0.236/trunk@89614 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:53:57 +00:00
dveditz%netscape.com
d007d58c50 removing obsolete files
git-svn-id: svn://10.0.0.236/trunk@89613 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:37:48 +00:00
dbragg%netscape.com
833147e8d3 mac project update for previous checkin
git-svn-id: svn://10.0.0.236/trunk@89612 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:36:00 +00:00
dveditz%netscape.com
5df7fedc87 bug 28896 register file versions r=ssu,sr=mscott
bug 45939 File.remove() returns bogus error,r=sgehani,sr=alecf
bug 7022  make platform/build info available to XPInstall script r=sgehani,sr=mscott
bug 47258 more detailed error reporting failing to install file, r=sgehani,sr=mscott
bug 62916 refresh plugins from install script r=ssu,sr=mscott


git-svn-id: svn://10.0.0.236/trunk@89610 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:30:25 +00:00
mkaply%us.ibm.com
d493ffd6fe OS/2 TB break
Need calling convention


git-svn-id: svn://10.0.0.236/trunk@89609 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:28:27 +00:00
anthonyd%netscape.com
22765aef37 bug fix for 59005 Saving html with selects saves unneeded state.
r=rods
sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89608 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:27:44 +00:00
racham%netscape.com
f5ad5ecbb8 Fixing bug 71906. Enabling Search Messages link on Account Central for Local Folders also. r=racham, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@89607 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:26:42 +00:00
dbragg%netscape.com
87555b8935 part of 62916
git-svn-id: svn://10.0.0.236/trunk@89606 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:23:52 +00:00
dveditz%netscape.com
fb95ee0cf0 bug 62916 refresh plugins from XPInstall, r=ssu,sr=mscott
git-svn-id: svn://10.0.0.236/trunk@89605 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:19:41 +00:00
dveditz%netscape.com
11ec70ffc6 Bug 47258, better descrimination for unpacking errors. r=sgehani,sr=mscott
git-svn-id: svn://10.0.0.236/trunk@89604 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:15:55 +00:00
blakeross%telocity.com
dd9630dc87 Fix mac bustage.
git-svn-id: svn://10.0.0.236/trunk@89602 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 04:50:44 +00:00
mkaply%us.ibm.com
fe7e1dc212 OS/2 TB break
Don't even get me started


git-svn-id: svn://10.0.0.236/trunk@89601 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 04:11:42 +00:00
darin%netscape.com
cd93881d96 [not part of the build] New cache used PRUint32 for time now instead of PRTime. r=gordon
git-svn-id: svn://10.0.0.236/trunk@89599 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:56:01 +00:00
darin%netscape.com
0aea729c9e [not part of the build] New cache uses PRUint32 for time now instead of PRTime. r=gordon
git-svn-id: svn://10.0.0.236/trunk@89598 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:55:15 +00:00
darin%netscape.com
db46fd8e9e [not part of the build] Changes to make the new cache use PRUint32's for
time instead of PRTime's.  r=gordon


git-svn-id: svn://10.0.0.236/trunk@89597 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:54:05 +00:00
disttsc%bart.nl
e76cb821c9 Fix MOZ_TRACK_MODULE_DEPS builds (like senna) bustage, adding "necko" to REQUIRES, r=cls
git-svn-id: svn://10.0.0.236/trunk@89596 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:46:23 +00:00
beard%netscape.com
702eda7e46 [not part of build] Using nsIPref::AddObserver() instead of krufty old callbacks. Using directory service to obtain profile directory and using a "profile-do-change" observer to regenerate the cache directory.
git-svn-id: svn://10.0.0.236/trunk@89595 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:35:09 +00:00
beard%netscape.com
452206cf02 fix Mac build bustage.
git-svn-id: svn://10.0.0.236/trunk@89594 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:24:20 +00:00
blakeross%telocity.com
e3e06fb072 Missed a file...
git-svn-id: svn://10.0.0.236/trunk@89593 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:13:37 +00:00
rginda%netscape.com
ee5390e1b5 fix for mac bustage, I think
git-svn-id: svn://10.0.0.236/trunk@89592 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:12:07 +00:00
stephend%netscape.com
67f07d10b1 Checking in the fix for tooltip in browser, bug 71612 r=timeless@mac.com sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89591 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:05:08 +00:00
colin%theblakes.com
b1aa5a00b4 Remove the O_TRUNC when we open a newly created file (its not needed and
produces undesirable side effects on OpenVMS).
b=68255 r=sspitzer sr=mscott a=leaf


git-svn-id: svn://10.0.0.236/trunk@89587 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:57:47 +00:00
pinkerton%netscape.com
28eac30ac4 gopher build changes.
git-svn-id: svn://10.0.0.236/trunk@89586 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:52:39 +00:00
mkaply%us.ibm.com
a9d575cf6a OS/2 TB break
Is there a reason an XP_OS2 was thrown in on Win32 only code?


git-svn-id: svn://10.0.0.236/trunk@89585 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:51:03 +00:00
blakeross%telocity.com
5d1a6005be Removing files that got checked in accidentally.
git-svn-id: svn://10.0.0.236/trunk@89584 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:51:02 +00:00
blakeross%telocity.com
5e9b6a35a7 Fix 49334: gopher support, minor restructuring of directory viewer. necko: r=darin,dougt sr=rpotts other: r=waterson,mstoltz,jag sr=alecf
Fix 70404: assertions for datetime and finger. r=dougt, sr=rpotts

Both patches by Bradley Baetz (bbaetz@cs.mcgill.ca)


git-svn-id: svn://10.0.0.236/trunk@89583 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:51:01 +00:00
pinkerton%netscape.com
1c9b707ed4 files added for gopher.
git-svn-id: svn://10.0.0.236/trunk@89582 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:47:56 +00:00
matt%netscape.com
f6389963f3 bug 71881
adding sidebar directory to popup menu
sr=hyatt
r=mcafee


git-svn-id: svn://10.0.0.236/trunk@89581 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:45:31 +00:00
Peter.VanderBeken%pandora.be
c7b844398b part 3 of bug 48972 check in: mac changes. r=brendan, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@89580 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:43:32 +00:00
blakeross%telocity.com
d03df0d6a4 Fix 49334: gopher support, minor restructuring of directory viewer. necko: r=darin,dougt sr=rpotts other: r=waterson,mstoltz,jag sr=alecf
Fix 70404: assertions or datetime and finger. r=dougt, sr=rpotts

Both patches by Bradley Baetz (bbaetz@cs.mcgill.ca)


git-svn-id: svn://10.0.0.236/trunk@89579 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:42:39 +00:00
rginda%netscape.com
4f187c27f4 part 2 of bug 48972 check in. peterv to check in mac changes. r=brendan, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@89578 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:41:55 +00:00
blakeross%telocity.com
9cf78e1542 Fix 49934: gopher support, minor restructuring of directory viewer. necko: r=darin,dougt sr=rpotts other: r=waterson,mstoltz,jag sr=alecf
Fix 70404: assertionsf or datetime and finger. r=dougt, sr=rpotts

Both patches by Bradley Baetz (bbaetz@cs.mcgill.ca)


git-svn-id: svn://10.0.0.236/trunk@89577 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:41:18 +00:00
rginda%netscape.com
1bf1eb4a31 part one of checkin for bug 48974, idl additions. sr=shaver, r= brendan
git-svn-id: svn://10.0.0.236/trunk@89576 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:39:23 +00:00
matt%netscape.com
6d6e51c78a adding search pattern matching on search button
"://" and "."
r=alecf
sr=ben


git-svn-id: svn://10.0.0.236/trunk@89575 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:38:24 +00:00
rginda%netscape.com
55db3c0b63 ChatZilla 0.8 checkin. see bug 71468 for details
r=ssieb, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@89574 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:35:29 +00:00
pinkerton%netscape.com
fc1429aa67 make xp popups work with xmouse (bug 50798). make xppopups go away when app is minimized and mouse is inside xppopup (bugs 45108,31601,37992,39276,45202,63527,68889) r=pink/sr=hyatt. submission by dean_tessman@hotmail.com
git-svn-id: svn://10.0.0.236/trunk@89573 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:34:46 +00:00
rginda%netscape.com
f3084e41d6 Checkin in new files for bug 71466
git-svn-id: svn://10.0.0.236/trunk@89572 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:33:40 +00:00
pinkerton%netscape.com
13f9f00186 don't hide tooltip until mouse exits the node, not on any mouse move. also allow for clients to disable the auto-hide timer with the 'noautohide' attribute. r=saari/sr=hyatt. bug# 71547.
git-svn-id: svn://10.0.0.236/trunk@89571 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:32:27 +00:00
racham%netscape.com
4b3708e645 Fixing bugs 66830, 68346, 71356. Fix to bug 66830 makes AccountCentral item display more dynamic based on server and protocol capabilities. Fix to bug 68346 makes the startup page appear once per account per mozilla session. Fix to bug 71356 fianlly makes the right biff sound to get played at the right time. r=gayatrib, sspitzer, bienvenu sr=sspitzer, bienvenu.
git-svn-id: svn://10.0.0.236/trunk@89570 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:32:04 +00:00
cls%seawood.org
93551f54df 1) "Not in the build" is the biggest cop-out of checkin rules imaginable.
2) If the file is compiled without setting a special flag, it's PART OF THE BUILD!
3) WTF IS UP WITH THESE EXTRA ^Ms?!?!?!


git-svn-id: svn://10.0.0.236/trunk@89567 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:05:21 +00:00
darin%netscape.com
0e1b596a03 [not part of the build] Fixed bustage in nsAboutCache.
git-svn-id: svn://10.0.0.236/trunk@89564 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 01:18:24 +00:00
pavlov%netscape.com
4bde48aced change for new getrect method
git-svn-id: svn://10.0.0.236/trunk@89563 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 01:14:33 +00:00
pavlov%netscape.com
a0a4105677 make getRect pass out an nsrect&
git-svn-id: svn://10.0.0.236/trunk@89562 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 01:14:23 +00:00
darin%netscape.com
ed9b1f24cd [not part of the build] Make nsICacheEntryDescriptor inherit from nsICacheEntryInfo
git-svn-id: svn://10.0.0.236/trunk@89561 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 01:11:14 +00:00
rods%netscape.com
e486bd16ad turn on reflow counting when building in debug mode, activated by a pref
Bug 71514 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89560 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 01:05:07 +00:00
rods%netscape.com
4ba21c91b1 Small change to initialize values before getting prefs
Bug 71514 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89559 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 01:03:31 +00:00
beard%netscape.com
6620fb0713 Added nsICachingChannel.idl. a=leaf, r=darin
git-svn-id: svn://10.0.0.236/trunk@89558 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 00:55:31 +00:00
darin%netscape.com
c45a3a6cb0 Fixes bug 43729. HTTP response headers shows ni browswer window for content from NCSD 1.5.2. patch=mark@heily.org, r=darin, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@89557 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 00:47:13 +00:00
leaf%mozilla.org
a63b6dda21 add modules/staticmod to SeaMonkeyAll.
git-svn-id: svn://10.0.0.236/trunk@89556 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 00:42:46 +00:00
pavlov%netscape.com
6f2d08e2f3 more changes
git-svn-id: svn://10.0.0.236/trunk@89555 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 00:39:48 +00:00
pavlov%netscape.com
190dbdb460 minor api changes/indentation and spacing fixes, etc
git-svn-id: svn://10.0.0.236/trunk@89554 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 00:35:27 +00:00
nelsonb%netscape.com
7d0250e121 Fix bugzilla bugs 69753 and 39465. Temporary DB files are now created
in $TMP, $TMPDIR or $TEMP, if possible.  On windows, temporary DB files
are now opened in binary mode and are removed when the progam terminates
or the DB is closed.  Multiple temp DB files can now be created in the
same program.  EOF value on disk is now updated when file is extended.


git-svn-id: svn://10.0.0.236/trunk@89552 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 00:29:55 +00:00
ssu%netscape.com
49db655814 fixing:
bug 68110 - installer fails on proxy support.
bug 64433 - setup.exe contains "netscape.exe" string.
bug 67259 - xpi error should indicate which package failed.
bug 52597 - show license file under mozilla installer.
bug 40707 - create mozilla mail shortcut.
bug 70892 - uninstall not possible after uninstall, install, then reboot.

bug 68053 contains patch for all of above.

r=dveditz,sgehani
sr=mscott

affects only windows platforms.


git-svn-id: svn://10.0.0.236/trunk@89551 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 00:24:23 +00:00
javi%netscape.com
cbe945cc49 Fully support profile swtiching in PSM 2.0
git-svn-id: svn://10.0.0.236/trunk@89547 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 00:03:23 +00:00
joki%netscape.com
75f14b4d25 Fix smoketest blocker bugs 71224 & 71836 and (probably) 71834. r: hyatt
git-svn-id: svn://10.0.0.236/trunk@89546 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:58:15 +00:00
javi%netscape.com
577cba4d7d Didn't mean to enable the logging by default.
git-svn-id: svn://10.0.0.236/trunk@89544 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:47:12 +00:00
saari%netscape.com
0cc455e2a5 imglib2 updates
git-svn-id: svn://10.0.0.236/trunk@89543 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:42:16 +00:00
saari%netscape.com
b38dc52adc updating mac build
git-svn-id: svn://10.0.0.236/trunk@89542 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:38:33 +00:00
saari%netscape.com
b3c8c9331b updating mac build of libimg2
git-svn-id: svn://10.0.0.236/trunk@89541 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:37:51 +00:00
saari%netscape.com
b7ec01a9da update for mac build
git-svn-id: svn://10.0.0.236/trunk@89540 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:37:11 +00:00
saari%netscape.com
850d9f2824 removing for update
git-svn-id: svn://10.0.0.236/trunk@89539 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:36:05 +00:00
saari%netscape.com
72aa5341e1 Updates for imglib2
git-svn-id: svn://10.0.0.236/trunk@89538 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:33:11 +00:00
saari%netscape.com
ba1e13fbc5 update of libimg2
git-svn-id: svn://10.0.0.236/trunk@89537 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:29:32 +00:00
blizzard%redhat.com
99a2a6c2cb New stream code - WIP. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89535 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:26:53 +00:00
saari%netscape.com
6cb03599c2 Updates for libimg2
git-svn-id: svn://10.0.0.236/trunk@89534 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:25:59 +00:00
darin%netscape.com
2533108ec5 [not part of the build] Added nsAboutCacheEntry to necko component for use with the new cache.
git-svn-id: svn://10.0.0.236/trunk@89533 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 22:44:34 +00:00
javi%netscape.com
da9cfb82c5 Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@89532 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 22:24:58 +00:00
javi%netscape.com
81e13f2306 The macro for PROFILE_BEFORE_CHANGE_TOPIC doesn't seem to be around
anymore.


git-svn-id: svn://10.0.0.236/trunk@89531 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 22:15:05 +00:00
blizzard%redhat.com
e0c2575662 Move chrome mask into private to fix startup crash. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89530 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 22:01:10 +00:00
dougt%netscape.com
5d73f6bed7 NOT PART OF BUILD. This will make plugins work with the new cache.
git-svn-id: svn://10.0.0.236/trunk@89529 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 21:58:38 +00:00
javi%netscape.com
bb6393e184 First cut at profile switching for PSM 2.0
This will shut down NSS, but doesn't actively re-initialize NSS
with the new profile info.


git-svn-id: svn://10.0.0.236/trunk@89528 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 21:50:23 +00:00
blizzard%redhat.com
33fa838511 Add the prompter to the makefile. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89526 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 21:30:22 +00:00
blizzard%redhat.com
a560182af5 Add VISIBILITY signal back in now that adam's changes are in. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89523 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 21:15:26 +00:00
blizzard%redhat.com
9797d72b71 nsIPrompt impl. not part of the build
git-svn-id: svn://10.0.0.236/trunk@89522 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 21:09:21 +00:00
darin%netscape.com
32e4cd5ddd [not part of the build] Touch ups to HTTP validation for new cache.
git-svn-id: svn://10.0.0.236/trunk@89521 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 20:09:56 +00:00
darin%netscape.com
b69f97c235 [not part of the build] Touch ups to about:cache and about:cache-entry
git-svn-id: svn://10.0.0.236/trunk@89520 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 20:06:42 +00:00
alecf%netscape.com
d5f6e021bb fix for bug 71822 r=pchen a=ben
workaround for focusedWindow being null


git-svn-id: svn://10.0.0.236/trunk@89519 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 19:56:36 +00:00
mcgreer%netscape.com
7fde1d7d65 A bunch more cert UI, all the buttons are in (just need to be coded :)
git-svn-id: svn://10.0.0.236/trunk@89518 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 19:36:52 +00:00
relyea%netscape.com
acc35e34b4 bug 70992 patches to build 4.2 BSD
git-svn-id: svn://10.0.0.236/trunk@89517 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 19:02:05 +00:00
relyea%netscape.com
4bce16b9f5 bug 70992 patches to build 4.2 BSD.
git-svn-id: svn://10.0.0.236/trunk@89516 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 19:00:52 +00:00
mcgreer%netscape.com
628ebdb002 more cert manager functionality
* list mine and websites certs
* show cert chain in view cert
* show O and OU in view cert


git-svn-id: svn://10.0.0.236/trunk@89509 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 16:20:54 +00:00
gordon%netscape.com
8d57282cf0 [not part of build]
Implement simple LRU eviction mechanism for nsMemoryCacheDevice.
Add cleanup code to nsCacheService to fix intermittent crashes on shutdown.
Calculate MetaData size, and update field in nsCacheEntry.
Begin implmentation of nsICacheDeviceInfo in nsMemoryCacheDevice for about:cache.
Added various statistics to nsCacheService and nsMemoryCacheDevice.


git-svn-id: svn://10.0.0.236/trunk@89508 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 15:43:17 +00:00
brade%netscape.com
a950e9dd8e use + to ensure files are overwritten (ignore modify date); bug #67116
git-svn-id: svn://10.0.0.236/trunk@89507 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 15:40:47 +00:00
timeless%mac.com
1b8ed1424c Bug 65428 language="javascript" should be type="application/x-javascript"
r=ksosez@softhome.net a=ben


git-svn-id: svn://10.0.0.236/trunk@89506 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 15:35:07 +00:00
karnaze%netscape.com
59ea97fc3a bug 71810 - don't have inline virtual methods. r=karnaze.
git-svn-id: svn://10.0.0.236/trunk@89505 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 15:21:42 +00:00
cmanske%netscape.com
e8ce95dc30 Fixed editor table submenu enabling in context menus, b=62158, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@89503 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 14:35:24 +00:00
locka%iol.ie
d911ea5276 Fixed wacky sync/async code in webbrowser persist b=69828, r=dougt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89502 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 13:55:30 +00:00
rods%netscape.com
5725e24567 set all buttons to vertial-align=bottom in quirks
Bug 58190 r=pierre sr=buster


git-svn-id: svn://10.0.0.236/trunk@89501 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 13:51:33 +00:00
locka%iol.ie
6654fc0bf7 Fixed a few documentation typos. b=68581
git-svn-id: svn://10.0.0.236/trunk@89500 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 13:43:54 +00:00
locka%iol.ie
39d025ec05 NOT PART OF BUILD. MSVC++ project file for winEmbed
git-svn-id: svn://10.0.0.236/trunk@89499 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 13:34:19 +00:00
rods%netscape.com
ada4c1334d Fix frame going away during submit
Bug 70572 r=pollmann sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89498 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 13:33:59 +00:00
locka%iol.ie
877bf6088d Updated to use nsIEmbeddingSiteWindow sr=blizzard@mozilla.org b=68581
git-svn-id: svn://10.0.0.236/trunk@89497 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 12:48:33 +00:00
locka%iol.ie
4e1af33959 Updated to use nsIEmbeddingSiteWindow, sr=blizzard@mozilla.org b=68581
git-svn-id: svn://10.0.0.236/trunk@89496 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 12:35:08 +00:00
locka%iol.ie
8daaabb0f2 Updated to use nsIEmbeddingSiteWindow, sr=blizzard@mozilla.org b=68581
git-svn-id: svn://10.0.0.236/trunk@89495 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 12:21:34 +00:00
darin%netscape.com
94d7c14648 [not part of the build] Added HTTP support for nsICachingChannel.
git-svn-id: svn://10.0.0.236/trunk@89494 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 11:41:43 +00:00
joki%netscape.com
ae32024353 Fix 49120 (Force event handler compilation when properties accessed from JS) and 53640 (Fix event capture to work starting from text nodes) r:peterv, sr:jst
git-svn-id: svn://10.0.0.236/trunk@89493 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 11:37:16 +00:00
joki%netscape.com
c588fe63a5 Fix 62878, hack event.which to return values more like 4x. r:peterv, sr:jst
git-svn-id: svn://10.0.0.236/trunk@89492 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 11:34:07 +00:00
joki%netscape.com
2e54b7c296 Fix bug 58331, don't access internal frame data after DOM event dispatch. r:peterv sr:jst
git-svn-id: svn://10.0.0.236/trunk@89491 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 11:32:43 +00:00
darin%netscape.com
f93b109086 [not part of the build] Adding nsICachingChannel.idl for the new cache.
git-svn-id: svn://10.0.0.236/trunk@89490 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 11:15:06 +00:00
dprice%netscape.com
ad10d9ea59 71057 sr=waterson new order files. NOT PART OF THE REGULAR BUILD
git-svn-id: svn://10.0.0.236/trunk@89489 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 10:47:37 +00:00
dprice%netscape.com
bc7b2db6bf 71148 sr=waterson r=leaf Clearing out build bustages for MOZ_COVERAGE builds
NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@89488 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 10:43:08 +00:00
dprice%netscape.com
c3fea7f82c 71057 sr=waterson properly demangle C symbols NOT PART OF THE REGULAR BUILD
git-svn-id: svn://10.0.0.236/trunk@89487 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 10:42:36 +00:00
dprice%netscape.com
598276cbd5 71148 sr=waterson r=leaf Clearing out build bustages for MOZ_COVERAGE bustage
NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@89486 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 10:42:19 +00:00
attinasi%netscape.com
83e8e75acd Trying to fix bustage: removing references to appstartup stuff.
git-svn-id: svn://10.0.0.236/trunk@89481 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 08:39:37 +00:00
attinasi%netscape.com
46185692cc Trying to fix stinky bustage: removing appstartup from the build.
git-svn-id: svn://10.0.0.236/trunk@89480 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 08:30:56 +00:00
stephend%netscape.com
62e269f4e8 Backing out again, I swear I'm color blind. Hopefully the trees are green tomorrow. Bug 71612
git-svn-id: svn://10.0.0.236/trunk@89479 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:59:27 +00:00
darin%netscape.com
7570389ea8 [not part of the build] Just use the HTTP url as a cache key.
git-svn-id: svn://10.0.0.236/trunk@89478 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:48:14 +00:00
karnaze%netscape.com
4ea2ce59ac fix mac bustage from earlier checkin. r=syd.
git-svn-id: svn://10.0.0.236/trunk@89477 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:44:46 +00:00
darin%netscape.com
e8a5914c5e [not part of the build] Added stubs for about:cache-entry
git-svn-id: svn://10.0.0.236/trunk@89476 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:32:25 +00:00
darin%netscape.com
2caa9ba664 [not part of the build] Makes about:cache work with the new cache.
git-svn-id: svn://10.0.0.236/trunk@89475 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:31:13 +00:00
stephend%netscape.com
d58afdaba1 Checking in on a safe tree per the rules this time, fix for bug 71612 r=timeless@mac.com sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89474 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:28:02 +00:00
chak%netscape.com
fa130ed83d Fix Unix build bustage
git-svn-id: svn://10.0.0.236/trunk@89473 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:26:38 +00:00
alecf%netscape.com
5d93d892d2 oops! I didn't mean to checkt this change in with my last landing
git-svn-id: svn://10.0.0.236/trunk@89472 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:25:04 +00:00
jst%netscape.com
b4d8f0be56 Fixing bug 70170. Making sure we unblock the parser after loading a script file even if loading the script failed or the script file was empty. r=pollmann@netscape.com, sr=rpotts@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@89471 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:23:15 +00:00
darin%netscape.com
dcc961ceec Fixes bug 71346. Can't upload large files. r=gagan, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@89470 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:16:10 +00:00
ben%netscape.com
0163527f3f Fix for 52536, can't bookmark full page plugin. r=jag, kerz; a=hewitt
git-svn-id: svn://10.0.0.236/trunk@89469 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:05:39 +00:00
gordon%netscape.com
974d4f61ac Fix bug 29338 "PR_Poll should not poll (spin) on Mac". Checking in for sfraser. r=dougt, sdagley, gordon, sr=sfraser, or vice versa.
git-svn-id: svn://10.0.0.236/trunk@89468 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:02:53 +00:00
gordon%netscape.com
2eb8d6b1bb fix for bug 29338 "PR_Poll should not poll (spin) on Mac". Checking in for sfraser. r=dougt, gordon, sdagley sr=sfraser or vice versa.
git-svn-id: svn://10.0.0.236/trunk@89467 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:58:56 +00:00
hewitt%netscape.com
4d8efce5b9 65969 - classic sidebar tab cropping problem, r=andreww/blake, sr=ben
git-svn-id: svn://10.0.0.236/trunk@89466 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:49:46 +00:00
mkaply%us.ibm.com
68ddfae414 #71632
r=pavlov, a=blizzard
Make OS/2 widget a real XPCOM component


git-svn-id: svn://10.0.0.236/trunk@89465 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:49:30 +00:00
hewitt%netscape.com
acf2ec7b39 71460 - button focus flaws, r=andreww, sr=ben
git-svn-id: svn://10.0.0.236/trunk@89464 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:48:49 +00:00
hewitt%netscape.com
bb3242275a 71738 - repair weekend regressions, r=timeless, sr=ben
git-svn-id: svn://10.0.0.236/trunk@89463 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:46:53 +00:00
karnaze%netscape.com
c76866e3ea table reflow coalescing, table reflow face lift. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89462 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:38:59 +00:00
maolson%earthlink.net
456461efac fix bug 71695 - Buttons on delete profile dialog - all include 'yah'
r=timeless, a=ben


git-svn-id: svn://10.0.0.236/trunk@89461 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:35:49 +00:00
chak%netscape.com
142608a6a8 Last Fix for #68720 - EmbedAPI should use generic startup observers
r=ccarlen,sr=alecf


git-svn-id: svn://10.0.0.236/trunk@89460 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:35:48 +00:00
chak%netscape.com
cc9b998e09 Remaining Fixes for #68720 - EmbedAPI should use generic startup observers
r=ccarlen,sr=alecf


git-svn-id: svn://10.0.0.236/trunk@89459 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:29:32 +00:00
chak%netscape.com
f77098da23 Fix for #71684 - Unable to copy/paste in mfcEmbed's url bar
r=chak


git-svn-id: svn://10.0.0.236/trunk@89458 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:28:44 +00:00
ccarlen%netscape.com
705f74a8c2 Bug 68720. Checking in Mac files for chak@netscape.com. r=ccarlen@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89457 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:28:03 +00:00
chak%netscape.com
b7352c67ad Fix for #70988 and #71013 - Include cookie library with embed builds
r=adamlock


git-svn-id: svn://10.0.0.236/trunk@89456 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:25:33 +00:00
cls%seawood.org
7fc5c5f225 Add NULL check to fix crashing gtkEmbed problem
git-svn-id: svn://10.0.0.236/trunk@89455 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:23:09 +00:00
alecf%netscape.com
b1a8b670c1 fix for 71511 - clean up nsIGlobalHistory even further by refactoring setTitle i
nto nsIBrowserHistory, cleaning up extra addPage() parameters, and fixing all co
nsumers
r=valeski, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@89454 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:19:40 +00:00
maolson%earthlink.net
d9848b0a69 fix bug 53688 - javascript strict warnings in autocomplete.xml
r=timeless, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@89453 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:17:22 +00:00
cls%seawood.org
896e8341a3 Use old-fashion cast as HP-UX compiler complains about doing a static_cast on a non c++ class type.
git-svn-id: svn://10.0.0.236/trunk@89452 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:14:48 +00:00
leaf%mozilla.org
448e9e495e Automated update
git-svn-id: svn://10.0.0.236/trunk@89451 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:00:11 +00:00
cls%seawood.org
0cc86dfb8a Add check for -lbind on BeOS.
Thanks to maz@albany.net (Matthew Zahorik) for the patch.
Bug #71701 r=cls


git-svn-id: svn://10.0.0.236/trunk@89450 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 05:50:16 +00:00
endico%mozilla.org
fe23ab43f7 add modules for webtools, bugzila, lxr, bonsai, tinderbox
git-svn-id: svn://10.0.0.236/trunk@89449 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 05:44:37 +00:00
bryner%uiuc.edu
2e443d3257 Fixing typo in valeski's checkin (build bustage in LDAP). sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@89448 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 05:18:55 +00:00
bernd.mielke%snafu.de
a7ee7087cd fix regression - bug 42443, overspecified columns should distribute their
space only to well behaving columns, r= karnaze sr= attinasi


git-svn-id: svn://10.0.0.236/trunk@89447 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 05:10:17 +00:00
beard%netscape.com
9b6e351229 [not part of build] Implements poor man's eviction policy.
git-svn-id: svn://10.0.0.236/trunk@89446 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 04:54:14 +00:00
beard%netscape.com
d7e78b06d3 [not part of build] Use forward references whenever possible.
git-svn-id: svn://10.0.0.236/trunk@89445 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 04:53:46 +00:00
timeless%mac.com
3427953182 fix Bug 49727 Grammar incorrect in alert message when deleting mail folder
r=naving, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@89444 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 04:45:52 +00:00
rods%netscape.com
1eb8c80ccd to fix bustage
git-svn-id: svn://10.0.0.236/trunk@89443 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 04:21:31 +00:00
hyatt%netscape.com
7e73620690 Forgot this file in my checkin.
git-svn-id: svn://10.0.0.236/trunk@89442 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 04:17:20 +00:00
cls%seawood.org
177649928b *sigh* bsdi complains when you split up the tar options so keep them all together.
git-svn-id: svn://10.0.0.236/trunk@89441 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 03:45:26 +00:00
timeless%mac.com
c223d95012 change for Bug 71416 Checkbox "Send this email adress ... FTP password" and edit field belong together
patch by bzbarsky@mit.edu r=db48x@yahoo.com,zach a=ben@netscape.com


git-svn-id: svn://10.0.0.236/trunk@89440 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 03:38:50 +00:00
markh%activestate.com
d77a9731e4 Forgot to check this in as part of bug 14368. r=dean_tessman and sr=hyatt
from that bug still apply.


git-svn-id: svn://10.0.0.236/trunk@89439 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 03:27:15 +00:00
anthonyd%netscape.com
9ce7243134 bug fix for 67985 - needed methods for nsEditor impl
r=jfrancis
sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@89436 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:48:17 +00:00
hyatt%netscape.com
7eeaba98a2 Fix for 70704 and 71261. r=pierre, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89435 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:34:02 +00:00
pschwartau%netscape.com
04cdec2bfe Fixing minor error in one path; and fixing whitespace.
git-svn-id: svn://10.0.0.236/trunk@89434 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:28:04 +00:00
jst%netscape.com
879f878ec0 Checking in some code cleanup in preparation for my next checkin to this file (a fix for bug 70170). r=pollmann@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89433 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:27:25 +00:00
darin%netscape.com
f76ebfdd03 [not part of the build] Added a new interface to replace nsIStreamAsFile
for use with the new cache.


git-svn-id: svn://10.0.0.236/trunk@89432 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:24:12 +00:00
cls%seawood.org
c65ebbd55d Fix line ending problems caused by using inferior platforms to checkin. Working on Irix bustage
git-svn-id: svn://10.0.0.236/trunk@89431 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:20:55 +00:00
stephend%netscape.com
45f7825dee Backing out my changes for bug 71612 to meet the Netscape contributer tree requirements
git-svn-id: svn://10.0.0.236/trunk@89429 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:13:38 +00:00
pavlov%netscape.com
e62706b8e3 fixing non-windows image copying
git-svn-id: svn://10.0.0.236/trunk@89428 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:13:25 +00:00
pinkerton%netscape.com
9f4f3e337c use nsXPIDLCString to avoid the memory leak when getting a flavor out of our nsISupportsString wrappers. r=jag/sr=sfraser. bug# 71563
git-svn-id: svn://10.0.0.236/trunk@89427 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:13:20 +00:00
pinkerton%netscape.com
bd83caaf6b making iid's and cid's unique. r=saari/sr=sfraser. bug# 71722
git-svn-id: svn://10.0.0.236/trunk@89426 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:12:00 +00:00
pschwartau%netscape.com
a06507b683 Put js1_5/Regress/regress-68498-003.js on Rhino skip list. Rhino does not support indirect eval.
git-svn-id: svn://10.0.0.236/trunk@89425 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:10:47 +00:00
pavlov%netscape.com
f567227b9a adding imgContainer to the unix build
git-svn-id: svn://10.0.0.236/trunk@89424 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:10:09 +00:00
pschwartau%netscape.com
2db55a3d0f Rhino doesn't implement toSource(). Adding js1_5\Regress\regress-44009.js to skip list -
git-svn-id: svn://10.0.0.236/trunk@89423 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:02:32 +00:00
valeski%netscape.com
65ad2bc732 sr=rpotts, r=gagan. 70743. switching over to new extensible URI::SchemeIs() api
git-svn-id: svn://10.0.0.236/trunk@89422 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:02:05 +00:00
valeski%netscape.com
3dcd14eede sr=rpotts, r=gagan. 70743. switching over to new extensible URI::SchemeIs() api. and changing existing implementations over to new api. also modified nsHTTP and nsHTTPS handlers a bit to make things cleaner.
git-svn-id: svn://10.0.0.236/trunk@89421 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 02:01:07 +00:00
beard%netscape.com
0cea9abfef [not part of build] Use nsIObserverService to shut down cache before XPCOM is shut down. r=gordon
git-svn-id: svn://10.0.0.236/trunk@89420 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:59:43 +00:00
valeski%netscape.com
d20c366089 sr=rpotts, r=gagan. 70743. switching over to new extensible URI::SchemeIs() api. and changing existing implementations over to new api
git-svn-id: svn://10.0.0.236/trunk@89419 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:59:19 +00:00
rods%netscape.com
be719273bd Enabling the Display of leaf frame reflow counts
Bug 71514 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89418 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:53:45 +00:00
rods%netscape.com
793e57b78c Display frame reflow counts (turned via config file define)
Bug 71514 r=kmclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89416 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:47:22 +00:00
stephend%netscape.com
77c3f1f44c Fix for bug 71612 Tooltips for browser grippies r=timeless@mac.com sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89415 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:47:09 +00:00
pschwartau%netscape.com
f59e5217f9 Initial add. This is Norris' testcase from bug 56883.
git-svn-id: svn://10.0.0.236/trunk@89414 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:23:34 +00:00
pavlov%netscape.com
7e5db8bf4d fix an error case with jpegs
git-svn-id: svn://10.0.0.236/trunk@89413 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:18:04 +00:00
disttsc%bart.nl
25c5a6f79f Fix MOZ_TRACK_MODULE_DEPS builds (like senna) bustage, adding webbrwsr to REQUIRES. r=cls
git-svn-id: svn://10.0.0.236/trunk@89412 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:12:33 +00:00
disttsc%bart.nl
d99681ec70 Fix MOZ_TRACK_MODULE_DEPS builds (like senna) bustage, adding mozbrwsr to REQUIRES. r=cls
git-svn-id: svn://10.0.0.236/trunk@89411 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:10:08 +00:00
blizzard%redhat.com
daebc3e984 try to fix it harder
git-svn-id: svn://10.0.0.236/trunk@89405 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 00:42:07 +00:00
blizzard%redhat.com
8040b120b6 try to fix mac + windows bustage
git-svn-id: svn://10.0.0.236/trunk@89404 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 00:36:54 +00:00
javi%netscape.com
b8e237f427 Make the Mac build PSM 2.0 again.
git-svn-id: svn://10.0.0.236/trunk@89403 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 00:22:26 +00:00
relyea%netscape.com
332b74b47c DES key gens need to fall through to set the rest of their attributes
(remove spurious break). S/MIME should function again after this.


git-svn-id: svn://10.0.0.236/trunk@89401 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 00:04:51 +00:00
javi%netscape.com
4c0b23b4b3 Pass interfaces to certs to the SSL dialogs through the new
nsIPKIParamBlock interface.

Clean up some inconsistencies in nsPKIParamBlock implementation.


git-svn-id: svn://10.0.0.236/trunk@89400 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:59:48 +00:00
blizzard%redhat.com
dd94b87174 Bug #67370. Better interleaving of xlib + plevents. r=danm sr=shaver
git-svn-id: svn://10.0.0.236/trunk@89399 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:57:18 +00:00
javi%netscape.com
f7e86895f8 Add the ref in the same method that release the reference.
Avoids leaking nsNSSCertificate classes in cases where multiple errors
are found with a cert.


git-svn-id: svn://10.0.0.236/trunk@89398 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:47:21 +00:00
dougt%netscape.com
45b139e1bc Adding two idls to be exported.
git-svn-id: svn://10.0.0.236/trunk@89397 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:45:48 +00:00
dougt%netscape.com
1ce8cf63f4 Fixing line endings
git-svn-id: svn://10.0.0.236/trunk@89396 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:31:46 +00:00
mcafee%netscape.com
d4e0adaf51 Moving some oncommand handlers outside of <template> constructs to avoid extra nsEventListenerManager creation (68074). sr=alecf
git-svn-id: svn://10.0.0.236/trunk@89395 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:30:29 +00:00
cmanske%netscape.com
2c8efd545a Part of fix to spell checker bug 70413, r=timeless, sr=kin
git-svn-id: svn://10.0.0.236/trunk@89394 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:29:16 +00:00
cmanske%netscape.com
b833615a1e Fixed access to Dictionary dialog - always launch Spell Checker dialog. b=70413, r=timeless, sr=kin
git-svn-id: svn://10.0.0.236/trunk@89393 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:29:07 +00:00
disttsc%bart.nl
93fea92a19 Part of string clean-up bug 70143, move last three #includes of "nsString2.h" over to "nsString.h". r=bryner, sr=scc
git-svn-id: svn://10.0.0.236/trunk@89392 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:17:18 +00:00
cmanske%netscape.com
ac20cd3d2b Fixed missing Spell Checker button image, b=71589, r=hewitt, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@89391 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:16:36 +00:00
danm%netscape.com
312fcd0721 Removing IsModal,ShowModal,ExitModalLoop methods from nsIDocShellTreeOwner. General API cleanup. bug 70481 r=ccarlen,hyatt,vidur
git-svn-id: svn://10.0.0.236/trunk@89388 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:08:55 +00:00
danm%netscape.com
ac231cfe65 Removing IsModal,ShowModal,ExitModalLoop methods from nsIDocShellTreeOwner. General API cleanup. bug 70481 r=ccarlen,hyatt
git-svn-id: svn://10.0.0.236/trunk@89387 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:08:29 +00:00
andreww%netscape.com
4b7a1d9ca8 bugzilla bug # 60552 r=timeless, sr=hewitt - fixing random widths on toolbar buttons in mac classic skin.
git-svn-id: svn://10.0.0.236/trunk@89386 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:57:35 +00:00
dougt%netscape.com
f7959f57fb Adds a '..' to children directories. r=dougt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89385 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:57:34 +00:00
chak%netscape.com
fbb67e22fc Partial fix for Bug# 68720 - nsEmbedAPI.cpp should use generic startup
Not Part of the build yet - checking in new files to the project
r=ccarlen,sr=alecf


git-svn-id: svn://10.0.0.236/trunk@89384 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:52:28 +00:00
nhotta%netscape.com
658e362eb3 Removed the line to replace '|' with ':' since that's already replaced in the string
and it replaces partial characters in multi-byte characters, bug 68993, r=ducarroz, sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@89383 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:50:34 +00:00
naving%netscape.com
ace36dc643 #69862, r=bienvenu sr=scc. Close the stream in the destructor.
git-svn-id: svn://10.0.0.236/trunk@89382 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:46:41 +00:00
dougt%netscape.com
21d58a800d Adding Two IDL files to project file. Minor Necko build change per API review. r=valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89381 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:41:47 +00:00
dougt%netscape.com
21f01836f0 Minor build changes per API review. Now nsIFileURL and nsIFileChannel have their own IDL file which means that if you were using either of these two interfaces, you need to include a new include file. r=valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89380 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:41:28 +00:00
attinasi%netscape.com
9fd869c744 Fixes text-indent for DD in quirks mode. Patch provided by fantasai, b=5119, r=attinasi,hixie sr=shaver
git-svn-id: svn://10.0.0.236/trunk@89379 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:36:11 +00:00
endico%mozilla.org
575073abd0 Checking in Jake's <jake@acutex.net> interim patches from bug 30694. Bugzilla was showing bug summaries to everyone, even if they didn't have permission to view the bug. Jake's quick solution is to not display the bug at all if it is in a group no matter who is viewing it. The correct solution would be display the summary if the viewer had the proper permissions.
git-svn-id: svn://10.0.0.236/trunk@89378 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:35:51 +00:00
ftang%netscape.com
f8c9c5ef13 fix 61803. change the transliteration table so we will map some space or dash character to space and dash
r=nhotta sr=erik


git-svn-id: svn://10.0.0.236/trunk@89377 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:35:00 +00:00
ftang%netscape.com
f76bb0d09f fix 71419. r=bstell sr=erik. fix the mapping so now we won't map
30-39 to U+660-U+669


git-svn-id: svn://10.0.0.236/trunk@89376 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:33:34 +00:00
ftang%netscape.com
f6b02d4965 fix 17962. remap 4 entryies adobe symbol font to display lcell, rcell, lfloor and rflorr in HTML4
r=bstell sr=erik


git-svn-id: svn://10.0.0.236/trunk@89375 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:30:30 +00:00
leaf%mozilla.org
aa63f2fedb Automated update
git-svn-id: svn://10.0.0.236/trunk@89374 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:30:07 +00:00
cls%seawood.org
dfbeb0635c Add check for gcc -pipe support. Also test to make sure that AS accepts input on stdin.
Bug #63610 r=dbaron


git-svn-id: svn://10.0.0.236/trunk@89372 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:28:27 +00:00
ftang%netscape.com
6d965a0b99 fix bug 71274. r=nhotta sr=jst
remove bad code which may cause crash
work around the condition which will case IME crash on Mac when Mac cabonalized MSL does not comfirm to
ISO C++ standard and return null when ask for new xxx[0];


git-svn-id: svn://10.0.0.236/trunk@89371 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:26:58 +00:00
erik%netscape.com
5dd07463c3 bug 71354; author=simon@softel.co.il; r=karnaze; sr=attinasi; changes for
table related files from IBM bidi project


git-svn-id: svn://10.0.0.236/trunk@89370 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:25:55 +00:00
nelsonb%netscape.com
bb3401a5bf Makefiles to build mozilla/dbm sources with coreconf in
mozilla/security/dbm/.


git-svn-id: svn://10.0.0.236/trunk@89369 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:06:14 +00:00
pschwartau%netscape.com
355c40b48e Rhino doesn't allow indirect calls to eval; adding such tests to the Rhino skip list -
git-svn-id: svn://10.0.0.236/trunk@89363 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 21:09:14 +00:00
shaver%mozilla.org
823ae8572c 67699: all your nsIClassInfo is belong to us
- teach nsGenericFactory about nsIClassInfo, and nsIClassInfo.idl to the
  builds
- add a heaping serving of macro love for classes that want to support it
- convert many modules to use nsGenericModule the new way
- handful of warning and modeline fixes
- nsSample and some XPConnect test classes now have nsIClassInfo support for
  testing


git-svn-id: svn://10.0.0.236/trunk@89354 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 20:43:02 +00:00
kestes%tradinglinx.com
3b60ed87ef forgot to delete unused function from last major rewrite.
git-svn-id: svn://10.0.0.236/trunk@89353 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 19:46:21 +00:00
beard%netscape.com
861b55468f [not part of build] scan disk cache directory during initialization, to total cache usage, and implement poor man's eviction policy (once at startup/shutdown).
git-svn-id: svn://10.0.0.236/trunk@89351 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 19:31:21 +00:00
beard%netscape.com
c988276211 [not part of build] Mark entry dirty when data size is changed.
git-svn-id: svn://10.0.0.236/trunk@89350 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 19:29:34 +00:00
maolson%earthlink.net
3330e5cde0 fix blocker 71688 r=jag a=ben. incidentally, I suck.
git-svn-id: svn://10.0.0.236/trunk@89349 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 19:06:09 +00:00
nboyd%atg.com
21de161dcc Print name of function in toString
git-svn-id: svn://10.0.0.236/trunk@89348 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 19:05:36 +00:00
idk%eng.sun.com
3a9dfe353b *not part of tbox builds*
fixed build problem on windows


git-svn-id: svn://10.0.0.236/trunk@89347 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 19:01:19 +00:00
cls%seawood.org
7ba72438e6 Update embedding package list to contain renamed img libs (from bug 57247)
Bug #71692 sr=leaf


git-svn-id: svn://10.0.0.236/trunk@89345 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 18:13:56 +00:00
nboyd%atg.com
be94c40528 Infinity/Math.min(0,-0) should produce -Infinity
git-svn-id: svn://10.0.0.236/trunk@89343 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 16:53:02 +00:00
beard%netscape.com
fabf11af4c [not part of build] wrapped test case in test function.
git-svn-id: svn://10.0.0.236/trunk@89342 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 15:36:51 +00:00
beard%netscape.com
81b13e8fa6 [not part of build] Tests simultatenous writing of two cache entries which collide (same hash code).
git-svn-id: svn://10.0.0.236/trunk@89341 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 15:35:55 +00:00
dcone%netscape.com
9797d08dd4 Fixed page counting. r=kmmclusk sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89340 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 15:06:33 +00:00
nboyd%atg.com
4dbc99eb01 Close thread hazard hole.
git-svn-id: svn://10.0.0.236/trunk@89339 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 14:55:47 +00:00
cls%seawood.org
f4c1402c80 Use proper dereference flag for BSDI tar
git-svn-id: svn://10.0.0.236/trunk@89338 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 10:37:19 +00:00
darin%netscape.com
5d0aa6de06 [not part of the build] Fixed up HTTP cache validation for use with new cache.
git-svn-id: svn://10.0.0.236/trunk@89337 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 10:36:20 +00:00
markh%activestate.com
eae5ffc4c5 Fix to bug 14368 - Win32 - F10 key does not activate the menu bar.
r=dean_tessman@hotmail.com, sr=hyatt@netscape.com


git-svn-id: svn://10.0.0.236/trunk@89336 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 09:53:33 +00:00
cls%seawood.org
7a49f5e17b Properly link the xprint component lib with the usual component dep libs.
Bug #69362


git-svn-id: svn://10.0.0.236/trunk@89335 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 09:33:56 +00:00
Peter.VanderBeken%pandora.be
ac305714e5 Enable building Transformiix on Windows too (when MOZ_XSL is set). r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@89334 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 07:55:17 +00:00
maolson%earthlink.net
fa0a0e599a profile manager portion of bug 56680 - use a xul <stringbundle/> instead of including the strres.js code (first pass)
r=timeless, a=ben via irc


git-svn-id: svn://10.0.0.236/trunk@89333 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 07:39:50 +00:00
nisheeth%netscape.com
3109097aaa Null check for mPresContext which fixes crash in bug 57597. r=joki. sr=jst. More work needs to be done on the bug in the 7.0 timeframe to fix load event propagation across documents that do not have presentation contexts.
git-svn-id: svn://10.0.0.236/trunk@89332 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 07:26:46 +00:00
darin%netscape.com
7dfcc23627 [not part of the build] Replaced instances of cache manager with cache service
in comments.


git-svn-id: svn://10.0.0.236/trunk@89331 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 07:09:24 +00:00
Peter.VanderBeken%pandora.be
275b883c56 Expose Reset from nsIDocument.
r=jag, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@89330 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 06:39:27 +00:00
Peter.VanderBeken%pandora.be
6a5a4155a6 Expose Reset from nsIDocument and handle channel and/or URL being nsnull.
r=jag, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@89329 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 06:38:39 +00:00
Peter.VanderBeken%pandora.be
8870a5780e Expose Reset from nsIDocument.
Implement CreateAttributeNS for XML documents.
r=jag, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@89328 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 06:36:20 +00:00
Peter.VanderBeken%pandora.be
67273ad638 Add LoadComplete call for result of an XSLT transform, switch source document and result document before the transform, fix crash when transform fails (bug 67066). r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@89327 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 06:34:40 +00:00
Peter.VanderBeken%pandora.be
05a17f26e5 Adding EndLoad call for the stylesheet when doing an XSLT transform. r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@89326 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 06:30:38 +00:00
darin%netscape.com
6d9fdf255f [not part of the build] Replaced -1's in calls to Open{In,Out}putStream with ULONG_MAX.
git-svn-id: svn://10.0.0.236/trunk@89325 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 06:25:26 +00:00
darin%netscape.com
1af6095baa [not part of the build] Updated some comments.
git-svn-id: svn://10.0.0.236/trunk@89324 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 06:23:52 +00:00
mkaply%us.ibm.com
d5cd4c7771 #71558
No r= (will be OS/2 bustage)
Add HAS_EXTRAEXPORTS hack for now until we find out if IS_COMPONENT should be here


git-svn-id: svn://10.0.0.236/trunk@89323 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 05:47:26 +00:00
varada%netscape.com
8d1ce69208 fixes for bugs# 70615 70626;r=ducarroz;sr=mscott
git-svn-id: svn://10.0.0.236/trunk@89322 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 05:30:11 +00:00
mkaply%us.ibm.com
427df43e15 No bug
r=mkaply, a=blizzard
Code from dainis - more gfx cleanup


git-svn-id: svn://10.0.0.236/trunk@89321 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 05:26:23 +00:00
maolson%earthlink.net
519009392c fix bug 70655 - View Image in message context menu doesn't work
r=jag, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@89320 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 05:13:12 +00:00
maolson%earthlink.net
d10fe71173 fix bug 70652 - No Save Image in message context menu.
r=jag, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@89319 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 05:10:52 +00:00
timeless%mac.com
effb3a3ab7 for Bug 39621 Need to turn on nsViewManager by default
add ifdef DEBUG
r=kmcclusk@netscape.com, sr=roc+moz@cs.cmu.edu


git-svn-id: svn://10.0.0.236/trunk@89318 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 04:48:26 +00:00
kmcclusk%netscape.com
c3861b69ee Rewrote nsContainerFrame::PositionChildViews to use the view tree instead of doing a recursive walk of the frame tree. Should improve page load performance bug 70211 r=attinasi@netscape.com sr=hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89317 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 04:19:10 +00:00
mkaply%us.ibm.com
1c58e653d8 #71558
r=cls
from achim - Don't export every symbol for XPCOM components - nice build/performance fix


git-svn-id: svn://10.0.0.236/trunk@89314 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 03:33:50 +00:00
hewitt%netscape.com
d3a041b7a9 71506 - mail header text, menubutton alignment, r=andreww, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@89312 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 02:54:08 +00:00
disttsc%bart.nl
ba538282fe Adding a .get() to a NS_LITERAL_STRING to fix bustage. r=peterv
git-svn-id: svn://10.0.0.236/trunk@89310 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 02:50:45 +00:00
av%netscape.com
a93891b60e Fixing #45009 -- nsIPlugin::Shutdown mechanism implemented, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@89308 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 02:07:15 +00:00
sgehani%netscape.com
2d9ecf4cc6 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@89307 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 22:56:53 +00:00
sgehani%netscape.com
48744b3ca6 Removing libs checked in as binary so we can re-add in AppleSingle encoding.
git-svn-id: svn://10.0.0.236/trunk@89306 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 22:55:36 +00:00
sgehani%netscape.com
22e6ff4c0c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@89305 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 22:48:35 +00:00
ccarlen%netscape.com
2619e82136 Along with bug 65212 - removing unnescesary dependencies on profile. r=valeski@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89304 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 22:15:22 +00:00
ccarlen%netscape.com
f3010d0d9b Bug 65212 - profile support for kiosk mode. Also, removing profile change observer strings from header to cut dependencies. r=valeski@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89303 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 22:12:21 +00:00
darin%netscape.com
f35552ef5b Fixes bug 71495. Landings to necko cause PSM 2.0 to not work. r=bryner, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@89302 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 21:11:47 +00:00
harishd%netscape.com
3d56080aec Correcting indentation.
git-svn-id: svn://10.0.0.236/trunk@89301 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 21:07:33 +00:00
harishd%netscape.com
8ce4c74473 Indendation got messed up...somehow! CORRECTING.
git-svn-id: svn://10.0.0.236/trunk@89300 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 21:03:08 +00:00
harishd%netscape.com
f755934606 69826 - Flush conten model to access named items
Fixed an assertion.
Added a few more properties for getComputedStyle and did some clean up.
r=heikki, sr=jst


git-svn-id: svn://10.0.0.236/trunk@89299 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 20:47:06 +00:00
dmose%mozilla.org
63ed571575 Fixed bug 71600: mail would be sent about a given bug iff all flags for stuff changed in a given group were set. Should have sent mail if any flags for stuff changed in a given group were set. r=dave@intrec.com,endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@89298 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 20:08:28 +00:00
beard%netscape.com
311a9f92d6 [not part of build] Turned off some benign failure assertions.
git-svn-id: svn://10.0.0.236/trunk@89296 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 19:26:04 +00:00
beard%netscape.com
86bb9e5a02 [not part of build] Update visitEntries to correctly identify metadata files.
git-svn-id: svn://10.0.0.236/trunk@89295 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 19:18:48 +00:00
hwaara%chello.se
9e4b1f9903 Fix "[Modern] menubuttons looks awful" - bug 71622
r=walk84@usa.net, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@89294 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 19:07:49 +00:00
chak%netscape.com
57bd7f9716 Fix for Bug#71628 - MfcEmbed needs to persist the url list
r=chak


git-svn-id: svn://10.0.0.236/trunk@89293 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 19:03:40 +00:00
dave%intrec.com
6e429169a6 Fix for bug 71606: Duplicates not getting marked in comments which bug they're a dupe of.
git-svn-id: svn://10.0.0.236/trunk@89292 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 18:54:05 +00:00
dbaron%fas.harvard.edu
5c0c586179 Add #ifdef-ed code that allows us to run with the G++ V3 ABI, where the address point of the virtual table is not at the beginning of the virtual table. r=jband@netscape.com sr=shaver@mozilla.org b=63604
git-svn-id: svn://10.0.0.236/trunk@89291 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 18:16:16 +00:00
leaf%mozilla.org
74e1d8d348 Automated update
git-svn-id: svn://10.0.0.236/trunk@89290 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 18:15:08 +00:00
dbaron%fas.harvard.edu
962e46889a Include iomanip.h because we need the |using std::hex| and |using std::dec| from it to build with libstdc++ 3.0. b=63604 r=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@89289 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 18:10:58 +00:00
dbaron%fas.harvard.edu
19038b7a8f Do test for field names in utsname structure in C++ rather than C to work around bug in g++ 3.0 prerelease that makes the names different in C and C++ (we only use the result in C++). r=cls@seawood.org b=63604
git-svn-id: svn://10.0.0.236/trunk@89288 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 18:09:12 +00:00
darin%netscape.com
f47757388e Adding comment line.
git-svn-id: svn://10.0.0.236/trunk@89287 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 18:07:01 +00:00
shaver%mozilla.org
c82b0431d6 61743: add and fix NetBSD stubs (patch from martin@NetBSD.ORG)
git-svn-id: svn://10.0.0.236/trunk@89286 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 17:22:25 +00:00
shaver%mozilla.org
680f9254b3 31847: Need to solve problem of JS roots for event handler funcs
Fix from brendan, r=dbaron, sr=shaver.


git-svn-id: svn://10.0.0.236/trunk@89285 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 17:11:11 +00:00
rods%netscape.com
7c04a2478c Fixing height of btns and btn in file input in strict mode
Bug 67207 r=kmcclusk a=attinasi


git-svn-id: svn://10.0.0.236/trunk@89284 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 13:26:55 +00:00
timeless%mac.com
2021b65561 fix Bug 65428 language="javascript" should be type="application/x-javascript"
r=kerz a=ben


git-svn-id: svn://10.0.0.236/trunk@89282 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 12:17:34 +00:00
cls%seawood.org
ba80b6bdfd Irix requires the -f option when stripping non-executables.
git-svn-id: svn://10.0.0.236/trunk@89281 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 11:27:29 +00:00
ben%netscape.com
b61c186f3c remove unused files
git-svn-id: svn://10.0.0.236/trunk@89276 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 09:52:11 +00:00
ben%netscape.com
c858cc077e remove unused files.
git-svn-id: svn://10.0.0.236/trunk@89275 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 09:51:35 +00:00
ben%netscape.com
e45d785f2d Fix warnings so I can see what's in shrike's error log
git-svn-id: svn://10.0.0.236/trunk@89274 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 09:45:20 +00:00
attinasi%netscape.com
4df5564876 Backed out last night's changes due to regression that exposed a fatal flaw in the idea of the fix. r=71561
git-svn-id: svn://10.0.0.236/trunk@89273 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 07:54:00 +00:00
ben%netscape.com
5452b58393 Fixes for numerous bookmarks bugs, e.g. 68496, 50276, 68395, 68537, 68545,
68985, various hangs, crashes, glitches etc. 68545, 68985, 68395 r=jag;
Implement new bookmarks sidebar panel. a=hyatt.
Bookmarks CSS file organization, a=hewitt


git-svn-id: svn://10.0.0.236/trunk@89272 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 07:38:42 +00:00
ben%netscape.com
bf0bb164b4 Fixes for numerous bookmarks bugs, e.g. 68496, 50276, 68395, 68537, 68545,
68985, various hangs, crashes, glitches etc. 68545, 68985, 68395 r=jag;
Implement new bookmarks sidebar panel. a=hyatt


git-svn-id: svn://10.0.0.236/trunk@89270 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 07:32:24 +00:00
ben%netscape.com
d3ba25399c Fixes for numerous bookmarks bugs, e.g. 68496, 50276, 68395, 68537, 68545,
68985, various hangs, crashes, glitches etc. 68545, 68985, 68395 r=jag;
Implement new bookmarks sidebar panel. a=hyatt.
Make navigator use hbox/vbox too.


git-svn-id: svn://10.0.0.236/trunk@89269 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 07:30:02 +00:00
beard%netscape.com
957b461b8d [not part of build] Fix incorrect usage of PR_APPEND_LINK() to keep from corrupting the list of doomed DiskCacheEntry object. (thanks gordon)
git-svn-id: svn://10.0.0.236/trunk@89268 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 06:51:53 +00:00
pschwartau%netscape.com
418bbe01db Initial add of WINNT5.0.mk file (bug 71543). Copied from WINNT4.0.mk.
git-svn-id: svn://10.0.0.236/trunk@89266 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 04:59:23 +00:00
brendan%mozilla.org
3c279196d4 Fix js_LookupProperty to resolve iff the resolved-in object owns its own scope (jband private bug, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@89265 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 02:35:10 +00:00
scc%mozilla.org
3b8921ebb9 bug #64592: r=waterson, sr=vidur. Fix |nsCRT::HashCode| and |nsCRT::BufferHashCode| to use a better hash (in this case, the same scheme as |PL_HashString|).
git-svn-id: svn://10.0.0.236/trunk@89264 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 02:15:36 +00:00
dbaron%fas.harvard.edu
5a2b19e57c Allow new cache to be built with MOZ_TRACK_MODULE_DEPS. r=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@89263 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 02:02:25 +00:00
dave%intrec.com
a37c952cf0 Fix for bug 7873: Duplicate marking now happens AFTER privs are checked to make sure a) the user is allowed to dupe it, and b) the change hasn't caused a midair collision.
git-svn-id: svn://10.0.0.236/trunk@89261 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 00:53:22 +00:00
beard%netscape.com
eee8a212e4 [not part of build] Stopped reusing nsITransports, seems to improve stability. Implemented collision detection of cache entries, using generations and renaming upon entry deactivation.
git-svn-id: svn://10.0.0.236/trunk@89257 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 00:19:09 +00:00
pavlov%netscape.com
2ff5b4c4e4 make images draw right side up on windows
git-svn-id: svn://10.0.0.236/trunk@89256 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 00:16:44 +00:00
pavlov%netscape.com
bdcbb02dad fixing alpha problem on windoze
git-svn-id: svn://10.0.0.236/trunk@89254 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 22:12:40 +00:00
dave%intrec.com
3b13ee4bac Attempted fix for bug 71574: footer anomoly cleanup
git-svn-id: svn://10.0.0.236/trunk@89253 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 22:06:57 +00:00
Peter.VanderBeken%pandora.be
328e0907f9 Renaming NS_PARSER_IID to NS_PARSER_CID, because it *is* a CID. r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@89252 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 21:02:12 +00:00
varga%utcru.sk
17518d15d1 Fix obj dir build with --enable-lea
r=kandrot sr=waterson


git-svn-id: svn://10.0.0.236/trunk@89251 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 19:32:34 +00:00
valeski%netscape.com
bc74815669 sr=alecf. 71086. removing manual stream converter chaining in favor of the automatic chaining that the stream converter service supports.
git-svn-id: svn://10.0.0.236/trunk@89250 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 18:19:57 +00:00
valeski%netscape.com
48a5cb7a21 r=blizzard, sr=alecf. 71258. we were returning the wrong end of the converter list. also updating the test converter to be a little smarter.
git-svn-id: svn://10.0.0.236/trunk@89249 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 18:18:36 +00:00
mkaply%us.ibm.com
bc89a5d9bb OS/2 TB break
don't filter getcanvas when filtering getc


git-svn-id: svn://10.0.0.236/trunk@89248 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 17:52:05 +00:00
cls%seawood.org
b451891f74 Bleh. More dependencies
git-svn-id: svn://10.0.0.236/trunk@89247 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 14:36:17 +00:00
cls%seawood.org
a2beed761a Forgot that OS/2 linkers resolve all symbols at link time
git-svn-id: svn://10.0.0.236/trunk@89246 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 14:22:34 +00:00
cls%seawood.org
e27d9eb6e4 Do not force static lib only for mozmng for OS/2. This behavior matches the other imglibs and should fix tinderbox bustage.
git-svn-id: svn://10.0.0.236/trunk@89245 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 12:44:24 +00:00
nboyd%atg.com
5bd13e49c4 More changes from Igor.
git-svn-id: svn://10.0.0.236/trunk@89244 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 11:51:15 +00:00
nboyd%atg.com
3a2e50a63b Add method to set security support after creation.
git-svn-id: svn://10.0.0.236/trunk@89243 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 11:50:50 +00:00
disttsc%bart.nl
c3a3e99712 Work around the "Content doesn't show at random" and "Can't open link in new window sometimes" bugs. bug=67442, r=blake, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@89242 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 11:16:26 +00:00
darin%netscape.com
229827d070 Removed spurious MOZ_NEW_CACHE lines from Makefile.in
git-svn-id: svn://10.0.0.236/trunk@89241 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 09:38:28 +00:00
darin%netscape.com
fd58d9a2f0 Removed spurious MOZ_NEW_CACHE line from Makefile.in
git-svn-id: svn://10.0.0.236/trunk@89240 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 09:37:49 +00:00
darin%netscape.com
c768c22738 [not part of the build] Added initial about:cache implementation for new cache.
git-svn-id: svn://10.0.0.236/trunk@89239 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 09:35:44 +00:00
dave%intrec.com
35d715a1df Fixing broken OS detection code for Mac PPC
git-svn-id: svn://10.0.0.236/trunk@89238 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 08:56:23 +00:00
tor%cs.brown.edu
0587c6cdff Fix bustage with system installed mng. r=cls
git-svn-id: svn://10.0.0.236/trunk@89237 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 08:31:47 +00:00
nisheeth%netscape.com
3c4e66755e Made it so that expat defines abort() to nothing when it is compiled within Mozilla. r=peterv. sr=jst
git-svn-id: svn://10.0.0.236/trunk@89236 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 07:27:16 +00:00
endico%mozilla.org
2f2b2be1d7 backing out the changes to queries on CC since they broke normal cc queries in the standard email address box at the top of the page
git-svn-id: svn://10.0.0.236/trunk@89234 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 07:08:36 +00:00
gerv%gerv.net
852a37d3d1 Removed windows linefeeds.
git-svn-id: svn://10.0.0.236/trunk@89232 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 07:03:25 +00:00
attinasi%netscape.com
3cea127bcd Prevent text nodes from being passed to SelectorMatches to improve style resolution performance and ensure correctness. b=56117 r=pierre sr=waterson
git-svn-id: svn://10.0.0.236/trunk@89228 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 06:14:52 +00:00
cyeh%bluemartini.com
2cf75195a2 fix for "My Votes" floating in space like a disconnected astronaut
git-svn-id: svn://10.0.0.236/trunk@89227 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 05:52:54 +00:00
roc+%cs.cmu.edu
547e224e68 Ignore unreliable nsIWidget information and use the associated nsView data instead. Fixes bug 70446. r=kmcclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89226 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 05:33:38 +00:00
blakeross%telocity.com
b968759459 Fixing whitespace and indentation. No actual code changes.
git-svn-id: svn://10.0.0.236/trunk@89225 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 04:37:06 +00:00
gordon%netscape.com
bc24e08543 [not part of build] Header file for disk cache record structures.
git-svn-id: svn://10.0.0.236/trunk@89220 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:51:59 +00:00
dbaron%fas.harvard.edu
f86697e178 Fix font leaks caused by multiple calls to LoadFont. r=blizzard@mozilla.org b=71255 (xlib changes only)
git-svn-id: svn://10.0.0.236/trunk@89219 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:47:36 +00:00
dbaron%fas.harvard.edu
bce7ab5e16 Fix bug with menus that went away when they shouldn't by not calling SetFocus (which the comment said we shouldn't do anyway) and sending an NS_LOSTFOCUS event instead of NS_DEACTIVATE when losing focus, as the GTK port does. r=blizzard@mozilla.org b=64791 (xlib changes only)
git-svn-id: svn://10.0.0.236/trunk@89218 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:45:16 +00:00
dbaron%fas.harvard.edu
7f1ba25dd6 Change the system colors in xlib to more reasonable dummy values so that the classic skin looks better. In particular, fix the 3-D border colors, make -moz-field white, make things tend towards web-safe colors out of habit, and reindent the whole thing according to the modeline. r=blizzard@mozilla.org b=71133 (xlib port changes only)
git-svn-id: svn://10.0.0.236/trunk@89215 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:39:43 +00:00
dbaron%fas.harvard.edu
0f713ce386 Fix Boehm GC + MOZ_TRACK_MODULE_DEPS build bustage by adding boehm to REQUIRES. r=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@89213 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:26:46 +00:00
dbaron%fas.harvard.edu
e870ee208d Fix Boehm GC + xmlterm build bustage with -lboehm since NSPR depends on boehm when using the Boehm GC. r=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@89212 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:25:14 +00:00
dbaron%fas.harvard.edu
60b11a36cc Add string to REQUIRES to fix xlib + MOZ_TRACK_MODULE_DEPS build bustage. r=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@89210 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:23:35 +00:00
dbaron%fas.harvard.edu
8eaf45f1c4 Move the destruction from the destructor into its |Destroy| method so that the document viewer is not prevented from being deleted by the cycles it would have broken in its destructor. (This has become necessary since the document viewer is being used from JS/XBL.) Use a null |mDocument| to record the destroyed state. r=disttsc@bart.nl sr=waterson@netscape.com b=61821
git-svn-id: svn://10.0.0.236/trunk@89208 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:19:36 +00:00
dbaron%fas.harvard.edu
6d4acf57fc Fix leak of global object in main mail window by breaking the nsXULElement -> nsXULControllers -> implementation of nsIControllers in JS -> global object -> document -> nsXULElement cycle when unrooting the nsXULElement's script object. r=waterson@netscape.com sr=hyatt@netscape.com b=56703
git-svn-id: svn://10.0.0.236/trunk@89207 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:18:33 +00:00
dbaron%fas.harvard.edu
a0bb9fe8fd Clean up string usage (including some leaks and FMMs) and use some nsCOMPtrs to fix leaks on failure in nsObjectFrame::Reflow. b=64209 r=av@netscape.com,disttsc@bart.nl sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89206 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:17:40 +00:00
dbaron%fas.harvard.edu
24d4a6bba6 Fix problems with 3-D colors in some GTK themes by calling gtk_widget_realize before getting the button and menu styles. r=bryner@netscape.com sr=blizzard@mozilla.org b=67448
git-svn-id: svn://10.0.0.236/trunk@89205 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:17:07 +00:00
dbaron%fas.harvard.edu
fd0a09b410 Fix user-agent for Windows NT versions above 5.0. b=62663 r=valeski@netscape.com sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89204 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:16:32 +00:00
dbaron%fas.harvard.edu
227ca3a4cb Fix disappearance of right scrollbar caused by lack of min-width on toolbar, statusbar, or menubar. r=andreww@netscape.com sr=hewitt@netscape.com b=55368
git-svn-id: svn://10.0.0.236/trunk@89203 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:16:10 +00:00
javi%netscape.com
9cc7d509f9 Create our param block that allows us to pass nsISupport references to
dialogs and clean up a little bit of the UI.


git-svn-id: svn://10.0.0.236/trunk@89202 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:09:20 +00:00
brendan%mozilla.org
a937ccd9e5 Spanked TraceMalloc docs using Mozilla composer (sorry for the cvsblame).
git-svn-id: svn://10.0.0.236/trunk@89201 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:08:55 +00:00
blakeross%telocity.com
c46632d25f My name is Blake and I'm an idiot.
git-svn-id: svn://10.0.0.236/trunk@89200 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 03:04:40 +00:00
javi%netscape.com
c3b6060ee3 Add mozilla/security/manager/pki/public/Makefiles to the list of
Makefiles generated for PSM 2.0
r=cls


git-svn-id: svn://10.0.0.236/trunk@89199 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 02:53:29 +00:00
javi%netscape.com
c4bfdcd4c8 Add our own param block that allows us to pass references to
XPCOM objects to dialogs.


git-svn-id: svn://10.0.0.236/trunk@89198 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 02:45:24 +00:00
maolson%earthlink.net
9a9631c26f vixen portion of bug 71023 - |getFormattedString| instead of |replace| for stringbundles
r=timeless, a=ben


git-svn-id: svn://10.0.0.236/trunk@89195 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 02:15:20 +00:00
waterson%netscape.com
03c14a0013 Bah! No fancy C++ casts for you.
git-svn-id: svn://10.0.0.236/trunk@89193 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 02:06:59 +00:00
javi%netscape.com
8c4f481f75 No longer need to special the DIST variable when MOZILLA_CLIENT is
defined.


git-svn-id: svn://10.0.0.236/trunk@89192 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:59:59 +00:00
nicolson%netscape.com
be306d6aff It needs to extend ServerSocket.
git-svn-id: svn://10.0.0.236/trunk@89191 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:56:57 +00:00
gerv%gerv.net
ff5fac19a9 Whitespace changes only; removing tabs and reformatting my changes to match the rest of the file. Long overdue.
git-svn-id: svn://10.0.0.236/trunk@89188 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:47:30 +00:00
hyatt%netscape.com
f64f449911 Fix for 71262 and 71485, r=jag, srs=shaver on 71262 and hewitt on 71485
git-svn-id: svn://10.0.0.236/trunk@89187 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:43:09 +00:00
relyea%netscape.com
2f5de8f58d CK_ULONG != unsigned int on 64 bit platforms. Fix the cast which was obviously
put in to remove a warning.

bug 70713


git-svn-id: svn://10.0.0.236/trunk@89186 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:35:17 +00:00
relyea%netscape.com
cba9172feb Fix AIX 64 bit tools failure. For some reason the 64 bit compilier didn't like
the massive switch statement. The new code is easier to read anyway now.
bug 70713


git-svn-id: svn://10.0.0.236/trunk@89185 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:34:08 +00:00
javi%netscape.com
16966cd143 Commiting a patch provided by Markus Holmberg for FreeBSD
git-svn-id: svn://10.0.0.236/trunk@89184 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:33:39 +00:00
blakeross%telocity.com
2ba6123367 Option click to save links on mac (55686). r=timeless sr=alecf
git-svn-id: svn://10.0.0.236/trunk@89183 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:29:46 +00:00
nicolson%netscape.com
91f64c5918 Leave in MSVCRTD, because it breaks the build on Sonja's machine.
git-svn-id: svn://10.0.0.236/trunk@89182 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:21:39 +00:00
pavlov%netscape.com
585ea22233 removing windows stuff too
git-svn-id: svn://10.0.0.236/trunk@89181 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:16:51 +00:00
pavlov%netscape.com
38d36d3178 moving the container stuff here.
git-svn-id: svn://10.0.0.236/trunk@89180 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:11:54 +00:00
pavlov%netscape.com
941b2ba1d9 removing lots of stuff (like all the platform specific code) moving gfxIImageContainer* into new image library
git-svn-id: svn://10.0.0.236/trunk@89179 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:10:05 +00:00
waterson%netscape.com
961d8be9b8 Fix build bustage. #include jsapi.h because Mac wants decls.
git-svn-id: svn://10.0.0.236/trunk@89178 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:05:53 +00:00
darin%netscape.com
1b67600a60 Added some comments.
git-svn-id: svn://10.0.0.236/trunk@89177 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:03:05 +00:00
darin%netscape.com
b7f3f4a1ba Fixes bug 71391. Leaking sockets with CLOSE_WAIT status during page loads.
r=dougt sr=mscott


git-svn-id: svn://10.0.0.236/trunk@89176 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:58:54 +00:00
cls%seawood.org
053c6923e6 Standalone zlib is always built for the installer
git-svn-id: svn://10.0.0.236/trunk@89175 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:54:38 +00:00
mkaply%us.ibm.com
7ba3922bff #70961
r=jst, sr=erik
DOM changes to implement the dir attribute (document.dir) needed for Bidi


git-svn-id: svn://10.0.0.236/trunk@89174 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:50:54 +00:00
jgmyers%netscape.com
2da3804db1 cleanup error handling: bug 64777 sr=mscott r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@89173 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:49:05 +00:00
beard%netscape.com
d92f6c8af4 [not part of build] Added simple enumeration mechanism to nsCacheEntryHashtable.
git-svn-id: svn://10.0.0.236/trunk@89172 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:43:20 +00:00
mkaply%us.ibm.com
dbebdff94b WIN95 build breakage vis hwaara
Since Win95 can't recursively invoke NMAKE, need fdlibm in DIRS statement


git-svn-id: svn://10.0.0.236/trunk@89171 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:43:00 +00:00
beard%netscape.com
ee5b3ba301 [not part of build] renamed DoomEntry_Internal to DoomEntry_Locked, made public for use by cache devices.
git-svn-id: svn://10.0.0.236/trunk@89170 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:42:19 +00:00
waterson%netscape.com
71d99a5bc5 Bug 71141. Handle re-entrant script object creation by allowing 'inner' object to win and discarding 'outer' object. r=jst,jband; sr=brendan
git-svn-id: svn://10.0.0.236/trunk@89169 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:22:20 +00:00
rogerl%netscape.com
8509ed0ba7 Fix #58031. sr=brendan. Crash in Array.prototype.toLocaleString()
git-svn-id: svn://10.0.0.236/trunk@89168 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:20:42 +00:00
waterson%netscape.com
df0ae754ac Fix compiler warnings caused by backslash character in '//' comment. Tip o' the hat to timeless.
git-svn-id: svn://10.0.0.236/trunk@89167 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:19:38 +00:00
rogerl%netscape.com
1511fee5f5 Fix #57187. sr=brendan,r=shaver. Reorder lines to avoid warning.
git-svn-id: svn://10.0.0.236/trunk@89166 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:17:37 +00:00
rogerl%netscape.com
c797eeeda4 Fix bug #56868. sr=brendan,r=mccabe. Error object [[Class]] property.
git-svn-id: svn://10.0.0.236/trunk@89165 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:16:32 +00:00
erik%netscape.com
4f4d2e9f2b bug 71370; sr=erik; dbaron caught an error in yesterday's check-in; the
bidi bit was set in the reserved area; it is now in the right area


git-svn-id: svn://10.0.0.236/trunk@89164 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:15:16 +00:00
nhotta%netscape.com
439ade71df Enabled TSM for Carbon, bug 70720, r=ftang,pinkerton, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@89163 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:10:31 +00:00
cmanske%netscape.com
533e49fd60 Added param to caller of editor saveDocument for save mime type as part of fix for bug 51798. r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@89162 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:02:31 +00:00
cyeh%bluemartini.com
f3825ec9e4 back out change
git-svn-id: svn://10.0.0.236/trunk@89161 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 23:59:40 +00:00
cls%seawood.org
6ea1e28c32 Rename img libraries that have have common external equivalents as our internal versions may be slightly incompatible.
Bug #57247 sr=tor


git-svn-id: svn://10.0.0.236/trunk@89160 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 23:53:17 +00:00
cyeh%bluemartini.com
017c2f1299 fix for 70039: Mid-air collision page confusing, users think comments will be lost
git-svn-id: svn://10.0.0.236/trunk@89159 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 23:41:37 +00:00
rpotts%netscape.com
f46b8973e7 bug #70736 (r=darin@netscpe.com). Fix to nsInputStreamChannel to get the notification callbacks working...
git-svn-id: svn://10.0.0.236/trunk@89158 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 23:27:47 +00:00
dave%intrec.com
fd19c879d7 Fix for bug 71510: permissions not set correctly on graphs directory
git-svn-id: svn://10.0.0.236/trunk@89157 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 23:19:51 +00:00
alecf%netscape.com
05ab47e21f remove these files (never part of build, moving over to mozilla/content)
git-svn-id: svn://10.0.0.236/trunk@89156 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 22:50:35 +00:00
cyeh%bluemartini.com
3b8b9400ee add notation about securing web installation
git-svn-id: svn://10.0.0.236/trunk@89155 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 22:37:22 +00:00
nicolson%netscape.com
df2fcd5992 We need to set -DNSS_USE_STATIC_LIBS on NT because of some code in ssl.h.
git-svn-id: svn://10.0.0.236/trunk@89154 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 22:24:42 +00:00
nicolson%netscape.com
8bd92c7d35 Fix compiler warning on NT by setting /NODEFAULTLIB:MSVCRTD.
git-svn-id: svn://10.0.0.236/trunk@89153 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 22:23:45 +00:00
cyeh%bluemartini.com
ea756dc8af refix for 40603: Assumes user is coming from different page
reduce wording


git-svn-id: svn://10.0.0.236/trunk@89151 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 21:41:27 +00:00
nicolson%netscape.com
b0adf7be05 SSL changed its callback signatures to return SECStatus.
git-svn-id: svn://10.0.0.236/trunk@89150 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 21:35:51 +00:00
nicolson%netscape.com
6aa9bb952b Remove libsectool.
git-svn-id: svn://10.0.0.236/trunk@89149 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 21:35:02 +00:00
cyeh%bluemartini.com
335ab846f0 fix for 6682: Chart all bug states
patch submitted by
           gervase.markham@univ.ox.ac.uk
           (Gervase Markham)


git-svn-id: svn://10.0.0.236/trunk@89148 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 21:24:53 +00:00
despotdaemon%netscape.com
c5516ae1c6 Pseudo-automatic update of changes made by mhein@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@89145 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 20:10:47 +00:00
despotdaemon%netscape.com
e6009564b1 Pseudo-automatic update of changes made by mhein@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@89143 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 19:18:48 +00:00
despotdaemon%netscape.com
1efe15e729 Pseudo-automatic update of changes made by mhein@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@89142 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 19:18:29 +00:00
beard%netscape.com
06a9d85e0d [not part of build] Implemented more of cache visitor support.
git-svn-id: svn://10.0.0.236/trunk@89141 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 19:01:15 +00:00
beard%netscape.com
d90142959d [not part of build] Tests cache visitation API.
git-svn-id: svn://10.0.0.236/trunk@89140 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 18:59:53 +00:00
despotdaemon%netscape.com
e0f2d3016f Pseudo-automatic update of changes made by hwaara@chello.se.
git-svn-id: svn://10.0.0.236/trunk@89139 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 18:42:19 +00:00
beard%netscape.com
0a3b477585 [not part of build] Fix cache directory creation logic again.
git-svn-id: svn://10.0.0.236/trunk@89138 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 17:14:02 +00:00
dbaron%fas.harvard.edu
095dc4e9e2 Fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage by adding txmgr to REQUIRES.
git-svn-id: svn://10.0.0.236/trunk@89135 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 16:20:16 +00:00
dbaron%fas.harvard.edu
71c16abf6f Fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage by adding txmgr to REQUIRES.
git-svn-id: svn://10.0.0.236/trunk@89134 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 15:54:21 +00:00
dbaron%fas.harvard.edu
d877c2ef22 Fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage by adding txmgr to REQUIRES.
git-svn-id: svn://10.0.0.236/trunk@89132 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 15:15:31 +00:00
alecf%netscape.com
ac6efa72ed ooops, forgot this in my last checkin - part of bug 70929 sr=waterson
git-svn-id: svn://10.0.0.236/trunk@89131 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:58:38 +00:00
alecf%netscape.com
d7c56fb92a other part of nsIGlobalHistory refactoring - fix one consumer
sr=waterson bug 70929


git-svn-id: svn://10.0.0.236/trunk@89130 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:52:22 +00:00
alecf%netscape.com
5d66e8ff00 fix for bug 70929 - refactor history into public/private interfaces
sr=waterson


git-svn-id: svn://10.0.0.236/trunk@89129 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:49:28 +00:00
kin%netscape.com
b2d2a29309 Fixes for bug #66308 ([embed] XPIDL'ize transaction manager)
sr=sfraser@netscape.com,mscott@netscape.com r=jfrancis@netscape.com

* nsITransaction, nsITransactionListenter, nsITransactionManager have
  been XPIDL'ized and moved into mozilla/editor/txmgr/idl. The versions
  of these interfaces in mozilla/editor/txmgr/public are being CVS removed.

* Renamed Do(), Undo(), and Redo() to DoTransaction(), UndoTransaction(),
  and RedoTransaction() to avoid reserved word problems in languages like
  JS. I did a sweep through editor and mailnews to remove these methods.

* PeekUndoStack() and PeekRedoStack() now return an AddRef'd pointer.

* Removed GetUndoString(), GetRedoString() and Write() from the
  nsITransaction interface. Neither editor or mailnews really made
  use of these methods.

* Removed Write() from the nsITransactionManager.cpp interface.

* The Transaction Manager now supports weak references.

* Added support for nsITransactionList to the TransactionManager
  to allow access to all transactions on the Undo and Redo stacks, as
  well as auto-aggregated transactions.

* Removed all references to nsITransactionDescription from txmgr and editor.

* Added nsPIEditorTransaction and made all Editor internal transactions
  inherit from it so we can distinguish between our transactions and
  ones from 3rd parties.

New files checked in:

  editor/txmgr/idl/nsITransaction.idl
  editor/txmgr/idl/nsITransactionList.idl
  editor/txmgr/idl/nsITransactionListener.idl
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/src/nsITransactionList.cpp
  editor/txmgr/src/nsITransactionList.h
  editor/idl/nsPIEditorTransaction.idl

Files that were CVS removed:

  editor/txmgr/public/nsITransaction.h
  editor/txmgr/public/nsITransactionListener.h
  editor/txmgr/public/nsITransactionManager.h
  editor/txmgr/idl/nsITransactionDescription.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h

Files modified:

  editor/Makefile.in
  editor/makefile.win
  editor/base/ChangeAttributeTxn.cpp
  editor/base/ChangeAttributeTxn.h
  editor/base/CreateElementTxn.cpp
  editor/base/CreateElementTxn.h
  editor/base/DeleteElementTxn.cpp
  editor/base/DeleteElementTxn.h
  editor/base/DeleteRangeTxn.cpp
  editor/base/DeleteRangeTxn.h
  editor/base/DeleteTextTxn.cpp
  editor/base/DeleteTextTxn.h
  editor/base/EditAggregateTxn.cpp
  editor/base/EditAggregateTxn.h
  editor/base/EditTxn.cpp
  editor/base/EditTxn.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h
  editor/base/IMETextTxn.cpp
  editor/base/IMETextTxn.h
  editor/base/InsertElementTxn.cpp
  editor/base/InsertElementTxn.h
  editor/base/InsertTextTxn.cpp
  editor/base/InsertTextTxn.h
  editor/base/JoinElementTxn.cpp
  editor/base/JoinElementTxn.h
  editor/base/nsEditor.cpp
  editor/base/nsEditorShell.cpp
  editor/base/nsEditorShell.h
  editor/base/nsEditorTxnLog.cpp
  editor/base/nsStyleSheetTxns.cpp
  editor/base/nsStyleSheetTxns.h
  editor/base/PlaceholderTxn.cpp
  editor/base/PlaceholderTxn.h
  editor/base/SetDocTitleTxn.cpp
  editor/base/SetDocTitleTxn.h
  editor/base/SplitElementTxn.cpp
  editor/base/SplitElementTxn.h
  editor/idl/Makefile.in
  editor/idl/makefile.win
  editor/idl/MANIFEST
  editor/idl/nsIEditorShell.idl
  editor/macbuild/editor.mcp
  editor/macbuild/EditorIDL.mcp
  editor/txmgr/idl/Makefile.in
  editor/txmgr/idl/makefile.win
  editor/txmgr/idl/MANIFEST
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/macbuild/txmgr.mcp
  editor/txmgr/macbuild/txmgrIDL.mcp
  editor/txmgr/public/Makefile.in
  editor/txmgr/public/makefile.win
  editor/txmgr/public/MANIFEST
  editor/txmgr/src/Makefile.in
  editor/txmgr/src/makefile.win
  editor/txmgr/src/nsTransactionItem.cpp
  editor/txmgr/src/nsTransactionItem.h
  editor/txmgr/src/nsTransactionList.cpp
  editor/txmgr/src/nsTransactionList.h
  editor/txmgr/src/nsTransactionManager.cpp
  editor/txmgr/src/nsTransactionManager.h
  editor/txmgr/src/nsTransactionManagerFactory.cpp
  editor/txmgr/src/nsTransactionStack.cpp
  editor/txmgr/src/nsTransactionStack.h
  editor/txmgr/tests/TestTXMgr.cpp
  editor/ui/composer/content/EditorCommandsDebug.js
  editor/ui/composer/content/editorOverlay.xul
  editor/ui/composer/locale/en-US/editorOverlay.dtd
  mailnews/base/src/nsMessenger.cpp
  mailnews/base/util/nsMsgTxn.cpp
  mailnews/base/util/nsMsgTxn.h
  mailnews/imap/src/nsImapMailFolder.cpp
  mailnews/imap/src/nsImapUndoTxn.cpp
  mailnews/imap/src/nsImapUndoTxn.h
  mailnews/local/src/nsLocalMailFolder.cpp
  mailnews/local/src/nsLocalUndoTxn.cpp
  mailnews/local/src/nsLocalUndoTxn.h


git-svn-id: svn://10.0.0.236/trunk@89128 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:32:06 +00:00
alecf%netscape.com
1e9fed09d9 clean up history after hewitt's changes (no reviewer, just a file he missed)
git-svn-id: svn://10.0.0.236/trunk@89127 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:25:12 +00:00
kin%netscape.com
7365b2cbe5 Fixes for bug #66308 ([embed] XPIDL'ize transaction manager)
sr=sfraser@netscape.com,mscott@netscape.com r=jfrancis@netscape.com

* nsITransaction, nsITransactionListenter, nsITransactionManager have
  been XPIDL'ized and moved into mozilla/editor/txmgr/idl. The versions
  of these interfaces in mozilla/editor/txmgr/public are being CVS removed.

* Renamed Do(), Undo(), and Redo() to DoTransaction(), UndoTransaction(),
  and RedoTransaction() to avoid reserved word problems in languages like
  JS. I did a sweep through editor and mailnews to remove these methods.

* PeekUndoStack() and PeekRedoStack() now return an AddRef'd pointer.

* Removed GetUndoString(), GetRedoString() and Write() from the
  nsITransaction interface. Neither editor or mailnews really made
  use of these methods.

* Removed Write() from the nsITransactionManager.cpp interface.

* The Transaction Manager now supports weak references.

* Added support for nsITransactionList to the TransactionManager
  to allow access to all transactions on the Undo and Redo stacks, as
  well as auto-aggregated transactions.

* Removed all references to nsITransactionDescription from txmgr and editor.

* Added nsPIEditorTransaction and made all Editor internal transactions
  inherit from it so we can distinguish between our transactions and
  ones from 3rd parties.

New files checked in:

  editor/txmgr/idl/nsITransaction.idl
  editor/txmgr/idl/nsITransactionList.idl
  editor/txmgr/idl/nsITransactionListener.idl
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/src/nsITransactionList.cpp
  editor/txmgr/src/nsITransactionList.h
  editor/idl/nsPIEditorTransaction.idl

Files that were CVS removed:

  editor/txmgr/public/nsITransaction.h
  editor/txmgr/public/nsITransactionListener.h
  editor/txmgr/public/nsITransactionManager.h
  editor/txmgr/idl/nsITransactionDescription.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h

Files modified:

  editor/Makefile.in
  editor/makefile.win
  editor/base/ChangeAttributeTxn.cpp
  editor/base/ChangeAttributeTxn.h
  editor/base/CreateElementTxn.cpp
  editor/base/CreateElementTxn.h
  editor/base/DeleteElementTxn.cpp
  editor/base/DeleteElementTxn.h
  editor/base/DeleteRangeTxn.cpp
  editor/base/DeleteRangeTxn.h
  editor/base/DeleteTextTxn.cpp
  editor/base/DeleteTextTxn.h
  editor/base/EditAggregateTxn.cpp
  editor/base/EditAggregateTxn.h
  editor/base/EditTxn.cpp
  editor/base/EditTxn.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h
  editor/base/IMETextTxn.cpp
  editor/base/IMETextTxn.h
  editor/base/InsertElementTxn.cpp
  editor/base/InsertElementTxn.h
  editor/base/InsertTextTxn.cpp
  editor/base/InsertTextTxn.h
  editor/base/JoinElementTxn.cpp
  editor/base/JoinElementTxn.h
  editor/base/nsEditor.cpp
  editor/base/nsEditorShell.cpp
  editor/base/nsEditorShell.h
  editor/base/nsEditorTxnLog.cpp
  editor/base/nsStyleSheetTxns.cpp
  editor/base/nsStyleSheetTxns.h
  editor/base/PlaceholderTxn.cpp
  editor/base/PlaceholderTxn.h
  editor/base/SetDocTitleTxn.cpp
  editor/base/SetDocTitleTxn.h
  editor/base/SplitElementTxn.cpp
  editor/base/SplitElementTxn.h
  editor/idl/Makefile.in
  editor/idl/makefile.win
  editor/idl/MANIFEST
  editor/idl/nsIEditorShell.idl
  editor/macbuild/editor.mcp
  editor/macbuild/EditorIDL.mcp
  editor/txmgr/idl/Makefile.in
  editor/txmgr/idl/makefile.win
  editor/txmgr/idl/MANIFEST
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/macbuild/txmgr.mcp
  editor/txmgr/macbuild/txmgrIDL.mcp
  editor/txmgr/public/Makefile.in
  editor/txmgr/public/makefile.win
  editor/txmgr/public/MANIFEST
  editor/txmgr/src/Makefile.in
  editor/txmgr/src/makefile.win
  editor/txmgr/src/nsTransactionItem.cpp
  editor/txmgr/src/nsTransactionItem.h
  editor/txmgr/src/nsTransactionList.cpp
  editor/txmgr/src/nsTransactionList.h
  editor/txmgr/src/nsTransactionManager.cpp
  editor/txmgr/src/nsTransactionManager.h
  editor/txmgr/src/nsTransactionManagerFactory.cpp
  editor/txmgr/src/nsTransactionStack.cpp
  editor/txmgr/src/nsTransactionStack.h
  editor/txmgr/tests/TestTXMgr.cpp
  editor/ui/composer/content/EditorCommandsDebug.js
  editor/ui/composer/content/editorOverlay.xul
  editor/ui/composer/locale/en-US/editorOverlay.dtd
  mailnews/base/src/nsMessenger.cpp
  mailnews/base/util/nsMsgTxn.cpp
  mailnews/base/util/nsMsgTxn.h
  mailnews/imap/src/nsImapMailFolder.cpp
  mailnews/imap/src/nsImapUndoTxn.cpp
  mailnews/imap/src/nsImapUndoTxn.h
  mailnews/local/src/nsLocalMailFolder.cpp
  mailnews/local/src/nsLocalUndoTxn.cpp
  mailnews/local/src/nsLocalUndoTxn.h


git-svn-id: svn://10.0.0.236/trunk@89126 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:23:59 +00:00
jfrancis%netscape.com
ce28649d11 renaming variable to match coding guidelines; r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@89125 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:19:14 +00:00
jfrancis%netscape.com
64c2bf50ed Fixes for bug #66308 ([embed] XPIDL'ize transaction manager)
sr=sfraser@netscape.com,mscott@netscape.com r=jfrancis@netscape.com

* nsITransaction, nsITransactionListenter, nsITransactionManager have
 been XPIDL'ized and moved into mozilla/editor/txmgr/idl. The versions
 of these interfaces in mozilla/editor/txmgr/public are being CVS removed.

* Renamed Do(), Undo(), and Redo() to DoTransaction(), UndoTransaction(),
 and RedoTransaction() to avoid reserved word problems in languages like
 JS. I did a sweep through editor and mailnews to remove these methods.

* PeekUndoStack() and PeekRedoStack() now return an AddRef'd pointer.

* Removed GetUndoString(), GetRedoString() and Write() from the
 nsITransaction interface. Neither editor or mailnews really made
 use of these methods.

* Removed Write() from the nsITransactionManager.cpp interface.

* The Transaction Manager now supports weak references.

* Added support for nsITransactionList to the TransactionManager
 to allow access to all transactions on the Undo and Redo stacks, as
 well as auto-aggregated transactions.

* Removed all references to nsITransactionDescription from txmgr and editor.

* Added nsPIEditorTransaction and made all Editor internal transactions
 inherit from it so we can distinguish between our transactions and
 ones from 3rd parties.

New files checked in:

 editor/txmgr/idl/nsITransaction.idl
 editor/txmgr/idl/nsITransactionList.idl
 editor/txmgr/idl/nsITransactionListener.idl
 editor/txmgr/idl/nsITransactionManager.idl
 editor/txmgr/src/nsITransactionList.cpp
 editor/txmgr/src/nsITransactionList.h
 editor/idl/nsPIEditorTransaction.idl

Files that were CVS removed:

 editor/txmgr/public/nsITransaction.h
 editor/txmgr/public/nsITransactionListener.h
 editor/txmgr/public/nsITransactionManager.h
 editor/txmgr/idl/nsITransactionDescription.h
 editor/base/IMECommitTxn.cpp
 editor/base/IMECommitTxn.h

Files modified:

 editor/Makefile.in
 editor/makefile.win
 editor/base/ChangeAttributeTxn.cpp
 editor/base/ChangeAttributeTxn.h
 editor/base/CreateElementTxn.cpp
 editor/base/CreateElementTxn.h
 editor/base/DeleteElementTxn.cpp
 editor/base/DeleteElementTxn.h
 editor/base/DeleteRangeTxn.cpp
 editor/base/DeleteRangeTxn.h
 editor/base/DeleteTextTxn.cpp
 editor/base/DeleteTextTxn.h
 editor/base/EditAggregateTxn.cpp
 editor/base/EditAggregateTxn.h
 editor/base/EditTxn.cpp
 editor/base/EditTxn.h
 editor/base/IMECommitTxn.cpp
 editor/base/IMECommitTxn.h
 editor/base/IMETextTxn.cpp
 editor/base/IMETextTxn.h
 editor/base/InsertElementTxn.cpp
 editor/base/InsertElementTxn.h
 editor/base/InsertTextTxn.cpp
 editor/base/InsertTextTxn.h
 editor/base/JoinElementTxn.cpp
 editor/base/JoinElementTxn.h
 editor/base/nsEditor.cpp
 editor/base/nsEditorShell.cpp
 editor/base/nsEditorShell.h
 editor/base/nsEditorTxnLog.cpp
 editor/base/nsStyleSheetTxns.cpp
 editor/base/nsStyleSheetTxns.h
 editor/base/PlaceholderTxn.cpp
 editor/base/PlaceholderTxn.h
 editor/base/SetDocTitleTxn.cpp
 editor/base/SetDocTitleTxn.h
 editor/base/SplitElementTxn.cpp
 editor/base/SplitElementTxn.h
 editor/idl/Makefile.in
 editor/idl/makefile.win
 editor/idl/MANIFEST
 editor/idl/nsIEditorShell.idl
 editor/macbuild/editor.mcp
 editor/macbuild/EditorIDL.mcp
 editor/txmgr/idl/Makefile.in
 editor/txmgr/idl/makefile.win
 editor/txmgr/idl/MANIFEST
 editor/txmgr/idl/nsITransactionManager.idl
 editor/txmgr/macbuild/txmgr.mcp
 editor/txmgr/macbuild/txmgrIDL.mcp
 editor/txmgr/public/Makefile.in
 editor/txmgr/public/makefile.win
 editor/txmgr/public/MANIFEST
 editor/txmgr/src/Makefile.in
 editor/txmgr/src/makefile.win
 editor/txmgr/src/nsTransactionItem.cpp
 editor/txmgr/src/nsTransactionItem.h
 editor/txmgr/src/nsTransactionList.cpp
 editor/txmgr/src/nsTransactionList.h
 editor/txmgr/src/nsTransactionManager.cpp
 editor/txmgr/src/nsTransactionManager.h
 editor/txmgr/src/nsTransactionManagerFactory.cpp
 editor/txmgr/src/nsTransactionStack.cpp
 editor/txmgr/src/nsTransactionStack.h
 editor/txmgr/tests/TestTXMgr.cpp
 editor/ui/composer/content/EditorCommandsDebug.js
 editor/ui/composer/content/editorOverlay.xul
 editor/ui/composer/locale/en-US/editorOverlay.dtd
 mailnews/base/src/nsMessenger.cpp
 mailnews/base/util/nsMsgTxn.cpp
 mailnews/base/util/nsMsgTxn.h
 mailnews/imap/src/nsImapMailFolder.cpp
 mailnews/imap/src/nsImapUndoTxn.cpp
 mailnews/imap/src/nsImapUndoTxn.h
 mailnews/local/src/nsLocalMailFolder.cpp
 mailnews/local/src/nsLocalUndoTxn.cpp
 mailnews/local/src/nsLocalUndoTxn.h



Fixes for bug #66308 ([embed] XPIDL'ize transaction manager)
sr=sfraser@netscape.com,mscott@netscape.com r=jfrancis@netscape.com

* nsITransaction, nsITransactionListenter, nsITransactionManager have
  been XPIDL'ized and moved into mozilla/editor/txmgr/idl. The versions
  of these interfaces in mozilla/editor/txmgr/public are being CVS removed.

* Renamed Do(), Undo(), and Redo() to DoTransaction(), UndoTransaction(),
  and RedoTransaction() to avoid reserved word problems in languages like
  JS. I did a sweep through editor and mailnews to remove these methods.

* PeekUndoStack() and PeekRedoStack() now return an AddRef'd pointer.

* Removed GetUndoString(), GetRedoString() and Write() from the
  nsITransaction interface. Neither editor or mailnews really made
  use of these methods.

* Removed Write() from the nsITransactionManager.cpp interface.

* The Transaction Manager now supports weak references.

* Added support for nsITransactionList to the TransactionManager
  to allow access to all transactions on the Undo and Redo stacks, as
  well as auto-aggregated transactions.

* Removed all references to nsITransactionDescription from txmgr and editor.

* Added nsPIEditorTransaction and made all Editor internal transactions
  inherit from it so we can distinguish between our transactions and
  ones from 3rd parties.

New files checked in:

  editor/txmgr/idl/nsITransaction.idl
  editor/txmgr/idl/nsITransactionList.idl
  editor/txmgr/idl/nsITransactionListener.idl
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/src/nsITransactionList.cpp
  editor/txmgr/src/nsITransactionList.h
  editor/idl/nsPIEditorTransaction.idl

Files that were CVS removed:

  editor/txmgr/public/nsITransaction.h
  editor/txmgr/public/nsITransactionListener.h
  editor/txmgr/public/nsITransactionManager.h
  editor/txmgr/idl/nsITransactionDescription.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h

Files modified:

  editor/Makefile.in
  editor/makefile.win
  editor/base/ChangeAttributeTxn.cpp
  editor/base/ChangeAttributeTxn.h
  editor/base/CreateElementTxn.cpp
  editor/base/CreateElementTxn.h
  editor/base/DeleteElementTxn.cpp
  editor/base/DeleteElementTxn.h
  editor/base/DeleteRangeTxn.cpp
  editor/base/DeleteRangeTxn.h
  editor/base/DeleteTextTxn.cpp
  editor/base/DeleteTextTxn.h
  editor/base/EditAggregateTxn.cpp
  editor/base/EditAggregateTxn.h
  editor/base/EditTxn.cpp
  editor/base/EditTxn.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h
  editor/base/IMETextTxn.cpp
  editor/base/IMETextTxn.h
  editor/base/InsertElementTxn.cpp
  editor/base/InsertElementTxn.h
  editor/base/InsertTextTxn.cpp
  editor/base/InsertTextTxn.h
  editor/base/JoinElementTxn.cpp
  editor/base/JoinElementTxn.h
  editor/base/nsEditor.cpp
  editor/base/nsEditorShell.cpp
  editor/base/nsEditorShell.h
  editor/base/nsEditorTxnLog.cpp
  editor/base/nsStyleSheetTxns.cpp
  editor/base/nsStyleSheetTxns.h
  editor/base/PlaceholderTxn.cpp
  editor/base/PlaceholderTxn.h
  editor/base/SetDocTitleTxn.cpp
  editor/base/SetDocTitleTxn.h
  editor/base/SplitElementTxn.cpp
  editor/base/SplitElementTxn.h
  editor/idl/Makefile.in
  editor/idl/makefile.win
  editor/idl/MANIFEST
  editor/idl/nsIEditorShell.idl
  editor/macbuild/editor.mcp
  editor/macbuild/EditorIDL.mcp
  editor/txmgr/idl/Makefile.in
  editor/txmgr/idl/makefile.win
  editor/txmgr/idl/MANIFEST
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/macbuild/txmgr.mcp
  editor/txmgr/macbuild/txmgrIDL.mcp
  editor/txmgr/public/Makefile.in
  editor/txmgr/public/makefile.win
  editor/txmgr/public/MANIFEST
  editor/txmgr/src/Makefile.in
  editor/txmgr/src/makefile.win
  editor/txmgr/src/nsTransactionItem.cpp
  edito


git-svn-id: svn://10.0.0.236/trunk@89124 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:18:41 +00:00
kin%netscape.com
1e69d25a17 Initial checkin of file. NOT PART OF THE BUILD!
git-svn-id: svn://10.0.0.236/trunk@89123 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 13:58:05 +00:00
ftang%netscape.com
702784e064 fix 71324 . delete mList so we won't leak in IME code.
r=nhotta sr=jst


git-svn-id: svn://10.0.0.236/trunk@89122 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 13:47:17 +00:00
ftang%netscape.com
92ce006aff fix 70601. r=bstell sr=erik
thanks slava@maze.ambernet.kiev.ua help to find this bug and verify it.


git-svn-id: svn://10.0.0.236/trunk@89121 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 13:23:02 +00:00
rbs%maths.uq.edu.au
1a034d3bbd Cleanup DOS end-of-lines
git-svn-id: svn://10.0.0.236/trunk@89120 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 13:20:20 +00:00
darin%netscape.com
bef2fe58a5 Change to NS_IMPL_THREADSAFE_ISUPPORTS to fix spurious warnings.
git-svn-id: svn://10.0.0.236/trunk@89119 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 11:22:24 +00:00
axel%pike.org
a10ac36a4e not part of build; adding logging by sicking, robustness by peterv, speed by me. (last patch before moving to outliner?)
git-svn-id: svn://10.0.0.236/trunk@89118 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 08:52:49 +00:00
cls%seawood.org
28df02ea30 Add support for old NetBSD toolchains & use -Bsymbolic when linking components.
Thanks to Charles Hannum <mycroft@netbsd.org> for the patch.
Bug #61750 r=cls


git-svn-id: svn://10.0.0.236/trunk@89117 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 07:55:29 +00:00
leaf%mozilla.org
7d0f0878b9 Automated update
git-svn-id: svn://10.0.0.236/trunk@89116 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 07:45:09 +00:00
pavlov%netscape.com
e820e83e9e use NS_LITERAL_STRING instead of NS_LITERAL_CSTRING when creating an atom, and put dont_AddRef() around NS_NewAtom so we don't add an extra addref
git-svn-id: svn://10.0.0.236/trunk@89114 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 07:42:04 +00:00
darin%netscape.com
ba9cacb739 Fixes bug 71317. Leak increase on tinderbox. r=bryner sr=mscott,alecf
git-svn-id: svn://10.0.0.236/trunk@89113 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 07:41:58 +00:00
cls%seawood.org
9f825dd458 Use CC instead of LD to link.
Thanks to martin@NetBSD.ORG (Martin Husemann) for the patch.
Bug #61745 r=cls


git-svn-id: svn://10.0.0.236/trunk@89112 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 07:41:26 +00:00
pschwartau%netscape.com
8efd292d96 Updated JS_GetImplementationVersion() to date of latest JS release (67111, r=rginda, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@89111 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 07:36:48 +00:00
cls%seawood.org
77d34c3d73 Clean up netbsd section.
Thanks to martin@NetBSD.ORG (Martin Husemann) and taya@sm.sony.co.jp (Shin'ichiro TAYA) for the patch.
Bug #61745 r=cls


git-svn-id: svn://10.0.0.236/trunk@89110 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 07:34:36 +00:00
cls%seawood.org
173bdb51f9 Remove unneeded variables.
Thanks to martin@NetBSD.ORG (Martin Husemann) for the patch.
Bug #61744 r=cls


git-svn-id: svn://10.0.0.236/trunk@89108 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 07:28:35 +00:00
stephend%netscape.com
8c282e5822 Re-implements tooltips from bug 60260 r=db48x@yahoo.com a=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89107 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 07:23:56 +00:00
waterson%netscape.com
cf6ef818dc Bug 70248. Remove extraneous |extern C| block. r=ducarroz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@89104 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 06:31:42 +00:00
dave%intrec.com
dfc0df6cb8 Re-fix for bug 17464: oldemailtech prefs work again.
git-svn-id: svn://10.0.0.236/trunk@89103 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 06:28:59 +00:00
naving%netscape.com
3045678bfd 63921. sr=bienvenu Don't kill the connection for the folder to be renamed. Do it
for its children.


git-svn-id: svn://10.0.0.236/trunk@89102 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 06:27:01 +00:00
cls%seawood.org
d5caae67b3 Add individual boehm include path for our module dep tracking builds.
Thanks to L. David Baron <dbaron@fas.harvard.edu> for the patch.
Bug #59454 r=cls


git-svn-id: svn://10.0.0.236/trunk@89099 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 06:03:24 +00:00
leaf%mozilla.org
df2e70c836 Automated update
git-svn-id: svn://10.0.0.236/trunk@89098 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 06:00:10 +00:00
cls%seawood.org
fb533bc5db Remove xmlterm from MOZ_EXTENSIONS and issue a warning if we are not building with the gtk toolkit. Bug #67250
git-svn-id: svn://10.0.0.236/trunk@89095 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 05:55:28 +00:00
leaf%mozilla.org
81cbe11f44 Automated update
git-svn-id: svn://10.0.0.236/trunk@89089 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 05:00:08 +00:00
cls%seawood.org
e8f73089a8 Actually use CPPFLAGS when it is passed to configure
git-svn-id: svn://10.0.0.236/trunk@89086 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:53:24 +00:00
cls%seawood.org
debaa1c0bb Actually use CPPFLAGS when passed to configure.
git-svn-id: svn://10.0.0.236/trunk@89085 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:51:09 +00:00
leaf%mozilla.org
325296128c Automated update
git-svn-id: svn://10.0.0.236/trunk@89082 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:45:07 +00:00
cls%seawood.org
3aa4e78fbf Reverse list of checkins when printing them out so that the output can *properly* be used to back out the checkins. Bug #22346
git-svn-id: svn://10.0.0.236/trunk@89080 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:38:19 +00:00
cls%seawood.org
f23a9a8d56 Pass PERL_VERSION to test script as an env variable so that the perl test works properly. Bug #66443
git-svn-id: svn://10.0.0.236/trunk@89079 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:30:27 +00:00
mkaply%us.ibm.com
9ea769fb46 #70961
author=simon@softel.co.il; r=waterson; sr=erik
New style constant for bidi - not part of build yet due to #ifdef IBMBIDI


git-svn-id: svn://10.0.0.236/trunk@89076 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:20:10 +00:00
mkaply%us.ibm.com
0cf6cb2c84 #70961
author=simon@softel.co.il; r=waterson; sr=erik
New layout atoms for bidi - not part of build yet due to #ifdef IBMBIDI


git-svn-id: svn://10.0.0.236/trunk@89075 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:15:34 +00:00
erik%netscape.com
709a793509 bugs 70028 and 70394; author=simon@softel.co.il; r=ftang; sr=erik; adding
nsIBidi.h and nsIUBidiUtils.h and related files to build, conditionally
(ifdef IBMBIDI)


git-svn-id: svn://10.0.0.236/trunk@89074 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:15:30 +00:00
mkaply%us.ibm.com
3133792bbe #59855
r=pchwartau, sr=brendan
Just add an _IS_LITTLE_ENDIAN for XP_OS2 for now. Eventually, we need to figure
out how to get jstypes.h included in here, since it already has a LITTLE_ENDIAN define.


git-svn-id: svn://10.0.0.236/trunk@89073 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:07:15 +00:00
mkaply%us.ibm.com
feb794a2e9 #59855
r=pchwartau, sr=brendan
Rework makefile.win and js.mak for the eventual ability to include jstypes.h in fdlibm.h
Not turned on yet because I can't get it working right on Linux


git-svn-id: svn://10.0.0.236/trunk@89072 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:05:44 +00:00
mkaply%us.ibm.com
6686694540 #59855
r=pchwartau, sr=brendan
Get JS standalong building with Makefile.ref on Win32


git-svn-id: svn://10.0.0.236/trunk@89070 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 04:02:36 +00:00
erik%netscape.com
dc9f2947a7 bug 71370; author=simon@softel.co.il; r=attinasi; sr=erik; implement bidi
(bidirectional text) for languages such as Arabic and Hebrew; from IBM bidi
project; not part of build yet (due to #ifdef IBMBIDI)


git-svn-id: svn://10.0.0.236/trunk@89069 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 03:29:00 +00:00
dmose%netscape.com
af8a05701f Fixes various sr= issues turned up in preparation for turning on LDAP in the default builds (bug 70658). Removes obsolete and private interface methods; fixes spacing, and lots of misc cleanups. moa=me, sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@89068 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 03:25:47 +00:00
rods%netscape.com
80fcf7044d change PRBool to PRPackedBool
Scroll to first item on DidReflow of Initial Reflow
Bug 54496 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89067 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 03:21:51 +00:00
dbaron%fas.harvard.edu
e861956222 Remove obsolete attempt to rename nsHTMLFrame.cpp that was never part of the build. sr=waterson@netscape.com b=64509
git-svn-id: svn://10.0.0.236/trunk@89066 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 03:14:07 +00:00
erik%netscape.com
7d9911f8e4 bug 71370; author=simon@softel.co.il; r=attinasi; sr=erik; implement bidi
(bidirectional text) for languages such as Arabic and Hebrew; from IBM bidi
project; not part of build yet (due to #ifdef IBMBIDI)


git-svn-id: svn://10.0.0.236/trunk@89065 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 03:13:03 +00:00
dbaron%fas.harvard.edu
dde0049300 Remove long-obsolete file that hasn't been part of the build since late 1998. sr=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89064 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 03:10:47 +00:00
pavlov%netscape.com
fb0ed17a63 don't #define MOZ_NEW_CACHE here
git-svn-id: svn://10.0.0.236/trunk@89063 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 03:00:02 +00:00
Peter.VanderBeken%pandora.be
0bfe31c0d7 Correct project files for document inspector. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@89060 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:28:17 +00:00
dbragg%netscape.com
f348e2672c dbaron fix for ports bustage of libreg/standalone
git-svn-id: svn://10.0.0.236/trunk@89059 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:25:22 +00:00
Peter.VanderBeken%pandora.be
0852f85867 Add build support for Vixen and Document Inspector on Mac (turned off by default), keep Transformiix and CView building on Mac. Doesn't affect the default build. r/a=sfraser@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@89058 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:21:08 +00:00
thayes%netscape.com
d1a9fa1818 Remove CR chars
git-svn-id: svn://10.0.0.236/trunk@89057 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:19:19 +00:00
danm%netscape.com
36261977ee it's another shot at being happy on multiple-monitor machines. man tweaks and various. bug 67523 r=hyatt,pinkerton
git-svn-id: svn://10.0.0.236/trunk@89056 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:17:37 +00:00
danm%netscape.com
028404d329 allow negative coordinates placing new windows, and center alerts on the same screen as the parent window. bug 67523 r=hyatt,pinkerton
git-svn-id: svn://10.0.0.236/trunk@89055 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:15:55 +00:00
Peter.VanderBeken%pandora.be
11607ed17f Keep MathML support compiling on the Mac - adding nsMathMLFrame.cpp. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@89054 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:13:24 +00:00
danm%netscape.com
6d737a89c2 window positioning security check is now more conversant with multiple monitors. bug 67523 r=hyatt,pinkerton
git-svn-id: svn://10.0.0.236/trunk@89053 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:12:51 +00:00
waldemar%netscape.com
a438ef9ca0 Added support for more html elements
git-svn-id: svn://10.0.0.236/trunk@89052 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:12:21 +00:00
waldemar%netscape.com
3ecc866e77 Made read-rtf non-recursive to avoid stack overflows
git-svn-id: svn://10.0.0.236/trunk@89051 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:11:13 +00:00
Peter.VanderBeken%pandora.be
ce5ae8de88 Keep MathML support compiling on the Mac. Doesn't affect the default build. r/a=sfraser@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@89050 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:10:38 +00:00
waldemar%netscape.com
ccbf532f44 Renamed token to input-element
git-svn-id: svn://10.0.0.236/trunk@89049 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:10:15 +00:00
waldemar%netscape.com
e352ea7240 Changed titles of generated html and rtf files
git-svn-id: svn://10.0.0.236/trunk@89048 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:09:50 +00:00
Peter.VanderBeken%pandora.be
f6c18f5774 New file. Needed for MathML support on the Mac. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89047 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:09:08 +00:00
danm%netscape.com
e5ef2c85a4 moving [GS]etPersistence from nsIWebBrowserChrome to nsIDocShellTreeOwner. embedding API review meeting made me do it. bug 69918 r=ccarlen,hyatt
git-svn-id: svn://10.0.0.236/trunk@89046 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:04:06 +00:00
blakeross%telocity.com
82ce0a2007 Can't drag text from page into textfields in same page. Patch by brade. r=blake sr=ben
git-svn-id: svn://10.0.0.236/trunk@89045 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 02:00:21 +00:00
dbragg%netscape.com
87f6f09f7d Fix for non-Linux and Solaris build bustage. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@89044 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:58:10 +00:00
endico%mozilla.org
bbccc02b1e Patch from Jake <jake@acutex.net> for bugs 22041 and 25693 which had the same problem. HTML meta characters in the summary were not being quoted before being printed to html.
git-svn-id: svn://10.0.0.236/trunk@89043 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:49:42 +00:00
dbragg%netscape.com
9f95aaa3ec Fix for non-Unix bustage relating to MAX_FILENAME being undefined. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@89042 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:49:21 +00:00
cmanske%netscape.com
2922c7e50c Missed file checkin as part of bug 67993, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@89041 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:47:18 +00:00
scc%mozilla.org
5504d95e41 fix bustage
git-svn-id: svn://10.0.0.236/trunk@89040 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:38:36 +00:00
jfrancis%netscape.com
bfac90c93f bug 57863: pasting multiple table cells outside of table doens't work. r=cmanske;sr=kin
git-svn-id: svn://10.0.0.236/trunk@89039 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:36:38 +00:00
dbragg%netscape.com
c2fda3f345 Turning off the cleanup util for Unix other platform bustage.
git-svn-id: svn://10.0.0.236/trunk@89038 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:17:06 +00:00
thayes%netscape.com
28e257be54 Changes filenames of preference content to be consistent with
Mozilla conventions.
Add autostretch="never" to prevent expansion of checkboxes in pref
panels


git-svn-id: svn://10.0.0.236/trunk@89037 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:13:46 +00:00
erik%netscape.com
a7649b75ad bug 71370; author=simon@softel.co.il; r=attinasi; sr=erik; a couple of new
files from the IBM bidi project; these are utilities for reordering in the
layout engine


git-svn-id: svn://10.0.0.236/trunk@89036 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:12:39 +00:00
thayes%netscape.com
539b0afa4b Bug 71323: set MOZILLA_CLIENT when building in client make environment
git-svn-id: svn://10.0.0.236/trunk@89035 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:08:44 +00:00
thayes%netscape.com
337a3d36fe Bug 71323: Add dist/include to include path for MOZILLA_CLIENT builds
r=relyea


git-svn-id: svn://10.0.0.236/trunk@89034 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:04:04 +00:00
leaf%mozilla.org
cf36015937 Automated update
git-svn-id: svn://10.0.0.236/trunk@89033 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:00:14 +00:00
dbaron%fas.harvard.edu
637e6d8c2f Add temporary build options --enable-new-cache for new cache (bug 68705) and --enable-libpr0n for new image library (bug 70938). r=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@89032 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:56:58 +00:00
brendan%mozilla.org
cde280bcf8 Recognize application/x-javascript (70439, r=timeless, sr=waterson).
git-svn-id: svn://10.0.0.236/trunk@89031 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:53:26 +00:00
alecf%netscape.com
ccc04db365 add nsIBrowserHistory to unix build (not used yet)
git-svn-id: svn://10.0.0.236/trunk@89030 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:44:34 +00:00
alecf%netscape.com
771efff01f add nsIBrowserHistory.idl to build (not used yet)
git-svn-id: svn://10.0.0.236/trunk@89029 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:44:11 +00:00
pinkerton%netscape.com
0ad8fef5d3 adding nsIBrowserHistory.idl for alecf.
git-svn-id: svn://10.0.0.236/trunk@89028 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:43:32 +00:00
scc%mozilla.org
43d2a1c384 bug #68872: r=jag, sr=waterson. provide |do_GetWeakReference|.
git-svn-id: svn://10.0.0.236/trunk@89027 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:40:11 +00:00
hewitt%netscape.com
bd26520e0e 69280 - boomarks window cleanup, r=blake, sr=ben
git-svn-id: svn://10.0.0.236/trunk@89025 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:24:27 +00:00
hewitt%netscape.com
4afae0f988 68480 - cleanup msgcompose toolbar menubuttons, r=cmanske/ducarroz, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89024 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:23:27 +00:00
hewitt%netscape.com
6b175d7266 67647 - javascript console re-write, r=jag, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89023 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:21:40 +00:00
pavlov%netscape.com
2b9acb4bed the changes that don't really work to make gfx2 build properly on windows
git-svn-id: svn://10.0.0.236/trunk@89021 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:17:37 +00:00
hewitt%netscape.com
105929fc2f 67647 - javascript console re-write, r=jag, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89020 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:11:56 +00:00
pavlov%netscape.com
3e07c13aa7 removing gfxImageContainer.cpp from here.. it should be in ../makefile.win
git-svn-id: svn://10.0.0.236/trunk@89019 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:10:26 +00:00
hewitt%netscape.com
5a36c9ee5b 69280 - boomarks window cleanup, r=blake, sr=ben
git-svn-id: svn://10.0.0.236/trunk@89018 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:08:52 +00:00
beard%netscape.com
6b6ad31fa3 [not part of build] Initial implementation of cache visitor support.
git-svn-id: svn://10.0.0.236/trunk@89017 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:04:03 +00:00
hewitt%netscape.com
90680f2373 68480 - cleanup msgcompose toolbar menubuttons, r=cmanske/ducarroz, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89016 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:01:55 +00:00
dbragg%netscape.com
b83eca93eb Turning on cleanup utility in the build. Fixes bug 65679. r=dveditz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@89015 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:40:45 +00:00
hewitt%netscape.com
25edb9bef4 66354 - editor image props dialog cleanup, r=cmanske, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89014 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:39:49 +00:00
dbragg%netscape.com
278fcfd05d Turning on cleanup utility in the build. Fixed bug 65682. r=dveditz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@89013 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:36:58 +00:00
hewitt%netscape.com
ebc5a360a8 69434 - radio/checkbox black on black, r=timeless, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89012 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:32:47 +00:00
hewitt%netscape.com
624609259f 67745 - mail icons (by andreas.premstaller@uibk.ac.at), r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@89011 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:30:41 +00:00
hewitt%netscape.com
b8dc1b1292 68582 - radio button wrapping, r=timeless, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89010 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:29:20 +00:00
hewitt%netscape.com
dd333ae24a 52703 - classic disabled menulists, r=andreww, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@89009 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:28:53 +00:00
glazman%netscape.com
a96dbca975 Cleanup of ParseSelector() ; b=71100, r=peterl, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89008 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:27:39 +00:00
hewitt%netscape.com
bada937712 64252 - iconic menuitems, r=sspitzer, sr=ben
git-svn-id: svn://10.0.0.236/trunk@89007 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:27:37 +00:00
dbragg%netscape.com
3267ad7bf2 Checking for file and directory names that may be too long for a given platform. Fixes bug 10147. r=deveditz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@89006 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:25:17 +00:00
blizzard%redhat.com
119c91979c more work on shutdown. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@89005 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:22:09 +00:00
javi%netscape.com
4f54363094 Call the get method for string classes. Brings us up to date with the
trunk of mozilla and their string class update landing.


git-svn-id: svn://10.0.0.236/trunk@89004 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:19:27 +00:00
pavlov%netscape.com
5b733399cf adding new directories to the pull scripts for new imagelib. bug 70938 r=bryner sr=cls
git-svn-id: svn://10.0.0.236/trunk@89003 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:18:55 +00:00
javi%netscape.com
8855977571 Update our use of strings to call their get methods bringing us up
to date with the trunk of mozilla.


git-svn-id: svn://10.0.0.236/trunk@89002 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:15:18 +00:00
pinkerton%netscape.com
d3ea22d104 don't break out of loop early unless we actually find the flavor on the clipboard when checking if flavor is present. r=brade/sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@89001 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 23:13:27 +00:00
timeless%mac.com
984ff6f935 fix bug 70958 Profile Migration Doesn't Work With Keyboard
patch by bzbarsky@mit.edu r=ksosez sr=alecf


git-svn-id: svn://10.0.0.236/trunk@89000 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:54:39 +00:00
bryner%uiuc.edu
62cc31c8d0 Bug 71024 - adding a null check to prevent crash. patch by hwaara, r=bryner, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@88999 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:50:57 +00:00
pinkerton%netscape.com
0acdb1821e don't consume alt-key event if we don't find a shortcut in the menus. r=saari/brade. sr=shaver. bug# 71326
git-svn-id: svn://10.0.0.236/trunk@88998 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:49:31 +00:00
nhotta%netscape.com
726d66a6ed Enabled Lithuanian, Latvian, Estonian, Hebrew, Esperanto, bug 62578, r=tao, sr=erik.
git-svn-id: svn://10.0.0.236/trunk@88997 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:47:41 +00:00
blizzard%redhat.com
d90c1a99b3 Get profiles working, always load urls after a realize. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@88996 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:46:34 +00:00
alecf%netscape.com
e1fd40681c add refactored browser history - not part of build
these are all the functions that won't be in the slushy nsIGlobalHistory


git-svn-id: svn://10.0.0.236/trunk@88994 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:37:49 +00:00
heikki%netscape.com
dc17f285b4 Add XML Extras to the installers. r=sgehani,ssu, sr=brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@88993 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:29:21 +00:00
morse%netscape.com
3b643538c6 bug 63961, server can't turn off password manager, r=jelwell@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88991 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:15:35 +00:00
alecf%netscape.com
ab91d44792 augh - back out my change to disable hierachical history, and undo the typo that got added right before I checked in yesterday - this was the intended version of this file!
git-svn-id: svn://10.0.0.236/trunk@88990 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:07:51 +00:00
hewitt%netscape.com
577c6711a7 53036 - menubutton weirdness, r=timeless, sr=ben
git-svn-id: svn://10.0.0.236/trunk@88988 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:03:53 +00:00
dbragg%netscape.com
5917e1e388 Adding a standalone build necessary to fix bug 65682. r,a=dveditz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@88987 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:02:39 +00:00
jgmyers%netscape.com
abd14ff1b9 enable SMTP auth by default: bug 64777 r=racham sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@88986 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 22:00:33 +00:00
beard%netscape.com
1c5610f321 [not part of build] Implemented nsCacheEntryDescriptor::GetFile().
git-svn-id: svn://10.0.0.236/trunk@88984 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 21:22:18 +00:00
beard%netscape.com
b5ecde3753 [not part of build] stub implementation of Visit().
Changed Cache directory creation logic in nsDiskCacheDevice.cpp.


git-svn-id: svn://10.0.0.236/trunk@88983 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 21:00:02 +00:00
beard%netscape.com
d2a908e357 [not part of build] implement VisitEntries.
git-svn-id: svn://10.0.0.236/trunk@88982 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 20:58:38 +00:00
beard%netscape.com
ff501a2d55 [not part of build] Added new interfaces nsICacheDeviceInfo, nsICacheEntryInfo.
git-svn-id: svn://10.0.0.236/trunk@88981 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 20:58:11 +00:00
disttsc%bart.nl
98103f66c0 Fix Solaris bustage. r=scc
git-svn-id: svn://10.0.0.236/trunk@88979 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 19:57:20 +00:00
alecf%netscape.com
07a8cce361 workaround history blocker by switching back to non-hierarchical history
git-svn-id: svn://10.0.0.236/trunk@88978 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 19:22:38 +00:00
scc%mozilla.org
34ec410023 fix solaris bustage
git-svn-id: svn://10.0.0.236/trunk@88977 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 18:32:28 +00:00
kestes%tradinglinx.com
1ec68f52d1 got the subtraction wrong and I was sleeping for negative times.
git-svn-id: svn://10.0.0.236/trunk@88976 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 18:13:32 +00:00
dave%intrec.com
49d7fbf9d5 Refix for bug 25693: more accurate regexp to find duplicates when generating initial duplicates table.
git-svn-id: svn://10.0.0.236/trunk@88973 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 17:29:09 +00:00
disttsc%bart.nl
8a8265f7bb Fix speedracer bustage, take #2. Temporary fix, will find a better one with scc.
git-svn-id: svn://10.0.0.236/trunk@88970 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 16:35:52 +00:00
attinasi%netscape.com
f15b490680 Commented out assertion while I find out why HR's are triggering it in some cases...
git-svn-id: svn://10.0.0.236/trunk@88966 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 15:48:48 +00:00
disttsc%bart.nl
dede0f9fba Fix speedracer bustage. It doesn't seem to like |Compare| :-)
r=shaver


git-svn-id: svn://10.0.0.236/trunk@88965 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 15:32:46 +00:00
alecf%netscape.com
68f99531ef update script to work on windows (not part of build)
git-svn-id: svn://10.0.0.236/trunk@88964 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 15:08:03 +00:00
cmanske%netscape.com
2d818176d0 Fixed problems in Advanced Edit dialog, b=67918, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@88963 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 15:07:14 +00:00
cmanske%netscape.com
1b24df5aad Removed registering of commands not used in plain text editor, b=67993, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@88962 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 15:03:51 +00:00
disttsc%bart.nl
2a2d17022b Fix speedracer bustage, r=dbaron, sr=scc, fall-out from bug 53057
git-svn-id: svn://10.0.0.236/trunk@88961 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 14:52:51 +00:00
dbaron%fas.harvard.edu
f3554504c8 Fix CSS_REPORT_PARSE_ERRORS build bustage resulting from string changes.
git-svn-id: svn://10.0.0.236/trunk@88960 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 14:25:11 +00:00
disttsc%bart.nl
d50f8d11b8 Fix potential dangling pointers of the form:
const char* foo = NS_ConvertUCS2toUTF8(bar).get();

sr=scc


git-svn-id: svn://10.0.0.236/trunk@88959 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 13:57:08 +00:00
disttsc%bart.nl
0c8117572d This could leave you with a dangling pointer:
nsCStringKey key(nsPromiseFlatCString(aRef).get());

because the nsPromiseFlatCString object will go out of scope,
so do this instead:

  nsPromiseFlatCString flat(aRef);
  nsCStringKey key(flat.get());

sr=scc


git-svn-id: svn://10.0.0.236/trunk@88958 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 13:13:42 +00:00
disttsc%bart.nl
af75904cf7 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|nsLiteral[C]String|
|nsPromiseFlat[C]String|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where
possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88957 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 12:33:57 +00:00
disttsc%bart.nl
0c734f3070 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|nsLiteral[C]String|
|nsPromiseFlat[C]String|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where
possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88956 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 10:50:45 +00:00
disttsc%bart.nl
7f19cefa4d Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|nsLiteral[C]String|
|nsPromiseFlat[C]String|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where
possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88955 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 10:45:03 +00:00
disttsc%bart.nl
63d1f07475 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|nsLiteral[C]String|
|nsPromiseFlat[C]String|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where
possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88954 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 09:45:01 +00:00
disttsc%bart.nl
55365f471a Forgot to remove this line in my last checkin. bug=53057
git-svn-id: svn://10.0.0.236/trunk@88953 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 09:28:32 +00:00
disttsc%bart.nl
bd82348c5b Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where                                                                                            possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88952 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 09:17:11 +00:00
disttsc%bart.nl
da14e5d6d5 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where
possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88951 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 08:53:58 +00:00
disttsc%bart.nl
abd8de21e5 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 08:05:05 +00:00
alecf%netscape.com
e5075b3d5f fix for bug 58122 - find the anchor in the selection if there already is one
sr=ben, r=jag


git-svn-id: svn://10.0.0.236/trunk@88946 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 07:59:17 +00:00
darin%netscape.com
a8a12c5c51 Fixes bug 66516. Topperf regression from 1/23. r=dougt, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@88945 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 07:53:40 +00:00
bryner%uiuc.edu
e048a0f5a6 Bug 65623 - Add a pref to disable the UI of PSM 1.x. code by dougt, r=javi, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@88944 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 07:39:11 +00:00
disttsc%bart.nl
a59de6b8f1 Fix MOZ_TRACK_MODULE_DEPS builds (e.g. senna) bustage, add "intl locale timer" to REQUIRES line
git-svn-id: svn://10.0.0.236/trunk@88943 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 07:15:34 +00:00
alecf%netscape.com
fdec867769 change GetLastVisitDate semantics back to the way they were before - avoids a runtime assertion in nsWebShell.cpp
git-svn-id: svn://10.0.0.236/trunk@88942 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 07:07:19 +00:00
rpotts%netscape.com
4a26b1b526 bug #61339. Added a missing const to an nsdIID (sr=waterson)
git-svn-id: svn://10.0.0.236/trunk@88941 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 06:54:47 +00:00
dave%intrec.com
f65e8d8459 Adding the queryhelp.cgi file that was missing. (There are links to it in query.cgi)
git-svn-id: svn://10.0.0.236/trunk@88940 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 06:47:50 +00:00
barnboy%trilobyte.net
84a5f67096 Last transfer bombed on me. Added Bugzilla Guide as
single large HTML and TXT files, and updated README.docs
with compiling instructions for the Guide.


git-svn-id: svn://10.0.0.236/trunk@88939 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 06:35:33 +00:00
alecf%netscape.com
0988199cc2 argh, forgot two more lines
curse PRInt64!


git-svn-id: svn://10.0.0.236/trunk@88938 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 06:34:55 +00:00
alecf%netscape.com
cfbb6dfd4a oops, better attempt
git-svn-id: svn://10.0.0.236/trunk@88937 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 06:16:02 +00:00
alecf%netscape.com
e0f845965d attempt to fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@88936 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 06:14:30 +00:00
alecf%netscape.com
1087b8d776 use nsCAutoString instead of nsLiteralCString to avoid stupid compiler ambiguity
lame! causes an extra copy.
fixes sun bustage


git-svn-id: svn://10.0.0.236/trunk@88935 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 06:02:34 +00:00
bryner%uiuc.edu
3860e8c248 Fixing non-debug builds. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@88934 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 06:01:29 +00:00
disttsc%bart.nl
ee093fe4bc Fix build bustage in XMLTerm extension. We were depending on an indirect inclusion of nsReadableUtils.h, which apparantly has gone, so explicitly including it now, like we should have. r=mcafee.
git-svn-id: svn://10.0.0.236/trunk@88933 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:53:07 +00:00
barnboy%trilobyte.net
13887941ab Adding back jpg as binary.
git-svn-id: svn://10.0.0.236/trunk@88932 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:44:23 +00:00
barnboy%trilobyte.net
29c6960883 Oops, forgot to put up dbschema.jpg as a binary file.
git-svn-id: svn://10.0.0.236/trunk@88931 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:42:31 +00:00
gordon%netscape.com
95787ca5fb [not part of build]
Removed return codes for nsCacheEntryHashtable::RemoveEntry() and nsCacheDevice::DoomEntry().

Added doomEntriesIfExpired flag to nsCacheSession and nsCacheRequest, and check the flag in nsCacheService::ActivateEntry()

Added lastModified attribute to nsCacheEntryDescriptor and mLastModified data member to nsCacheEntry.  mLastModified is updated when data or meta data is changed.

Deque requests if descriptor allocation fails.  Delete requests after calling proxy in async open cache entry path.

Cleaned up the logic of doom.


git-svn-id: svn://10.0.0.236/trunk@88929 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:37:00 +00:00
barnboy%trilobyte.net
3fe9f8b52c Documentation update; added docs/sgml, docs/html, docs/txt.
No text version of The Bugzilla Guide availabe yet, however.


git-svn-id: svn://10.0.0.236/trunk@88928 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:36:50 +00:00
heikki%netscape.com
21937fbbff Fix gbdate.h bustage.
git-svn-id: svn://10.0.0.236/trunk@88927 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:34:14 +00:00
gordon%netscape.com
e7a4e32b50 [not part of build]
Added readonly lastModified attribute to nsICacheEntryDescriptor.  Added PRBool attribute doomEntriesIfExpired to nsICacheSession.


git-svn-id: svn://10.0.0.236/trunk@88926 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:31:52 +00:00
timeless%mac.com
a9621c78a1 fix bug 69256 nsMsgNewsFolder::UpdateSummaryFromNNTPInfo leaks nsMsgKeySet
patch by hwaara@chello.se r=sspitzer, sr=bienvenu tabs=evil


git-svn-id: svn://10.0.0.236/trunk@88925 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:26:43 +00:00
alecf%netscape.com
f0af9d73c8 implement hierarchical history!
bug 65862
sr=waterson


git-svn-id: svn://10.0.0.236/trunk@88923 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:15:24 +00:00
timeless%mac.com
904e1060f5 fix bug 70453 printf in nsClipboard.cpp
r=rods sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@88922 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:12:30 +00:00
heikki%netscape.com
5bf6efbfd0 Fix typo (and OS2 bustage). r=peterv.
git-svn-id: svn://10.0.0.236/trunk@88921 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:00:22 +00:00
scc%mozilla.org
f5aa6fad51 fixing documentation
git-svn-id: svn://10.0.0.236/trunk@88920 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 04:47:24 +00:00
darin%netscape.com
94a6258211 [not part of the build] Fixed bugs in HTTP's MOZ_NEW_CACHE build.
git-svn-id: svn://10.0.0.236/trunk@88919 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 04:26:43 +00:00
heikki%netscape.com
0c6943fde0 Unix doesn't like recursive defines.
git-svn-id: svn://10.0.0.236/trunk@88918 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 04:16:40 +00:00
disttsc%bart.nl
6efeff1313 Fixing MOZ_TRACK_MODULE_DEPS builds (e.g. senna), adding "widget locale dom webshell pref necko" to REQUIRES.
git-svn-id: svn://10.0.0.236/trunk@88916 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 04:03:18 +00:00
stephend%netscape.com
2eb93e5036 Fixing tooltips so they re-appear for GetMsg and Print in Mail/News r=walk84@usa.net sr=bienvenu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88914 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 04:01:49 +00:00
erik%netscape.com
d71744312c bug 70028; author=simon@softel.co.il; r=ftang; sr=erik; a few name changes
to match Mozilla conventions, and removal of some Arabic presentation form
methods (until we figure out a better way to do these)


git-svn-id: svn://10.0.0.236/trunk@88913 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 04:00:23 +00:00
heikki%netscape.com
a426a6d503 Fixing typo.
git-svn-id: svn://10.0.0.236/trunk@88910 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 03:45:48 +00:00
disttsc%bart.nl
89ecee7f78 Fixing MOZ_TRACK_MODULE_DEPS builds (e.g. senna), adding "nkcache" to REQUIRES line, r=dbaron
git-svn-id: svn://10.0.0.236/trunk@88909 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 03:37:28 +00:00
darin%netscape.com
d1d843c69c Fixes redness on tinderbox.
git-svn-id: svn://10.0.0.236/trunk@88908 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 03:30:33 +00:00
ccarlen%netscape.com
3bd64e9faf Bug 70965 - Crash if SI_RemoveAllSignonData called more than once. r=morse@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@88906 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 03:17:44 +00:00
heikki%netscape.com
89cd5dabfd Fixing Mac build bustage.
git-svn-id: svn://10.0.0.236/trunk@88905 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 03:12:02 +00:00
rods%netscape.com
8501b8009c Explicitly setting the padding to zero
Bug 69130 r=kmcclusk sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@88904 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:58:12 +00:00
heikki%netscape.com
96c89ef63c Not part of default build. Fix the inspector because of changes that went in bug 69830. r=peterv.
git-svn-id: svn://10.0.0.236/trunk@88903 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:54:10 +00:00
rods%netscape.com
5a131f8bea Explicitly setting the padding to zero
Bug 69130 r=kmcclusk sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@88902 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:52:32 +00:00
rods%netscape.com
8b5d71dc38 Don't paint blocks that shouldn't be painted when printing
Bug 67296 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@88901 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:46:44 +00:00
heikki%netscape.com
76557f6b15 Removing unused file. Not part of build anymore.
git-svn-id: svn://10.0.0.236/trunk@88899 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:43:02 +00:00
heikki%netscape.com
b0d63de315 Bug 69830 , cleanup after layout split by moving duplicated files to a library that is statically linked to content and layout, and backing out changes to inline some functions that now also live in the shared lib. r=heikki, sr=smfr. Check-in by peterv.
git-svn-id: svn://10.0.0.236/trunk@88898 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:42:13 +00:00
heikki%netscape.com
71d5a4d22d Bug 69830, cleanup after layout split by moving duplicated files to a library that is statically linked to content and layout, and backing out changes to inline some functions that now also live in the shared lib. r=jst, sr=waterson.
git-svn-id: svn://10.0.0.236/trunk@88896 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:41:16 +00:00
shaver%mozilla.org
5106903714 71140: fix XPConnect-standalone build, r=cls
git-svn-id: svn://10.0.0.236/trunk@88895 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:40:37 +00:00
hyatt%netscape.com
6d89de31c6 More skin uninstallation foo. Same.
git-svn-id: svn://10.0.0.236/trunk@88894 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:36:01 +00:00
heikki%netscape.com
56404f9057 No bug number. Build XMLExtras without SOAP by default on Mac, as it is on other platforms. r=peterv, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@88893 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:32:56 +00:00
shaver%mozilla.org
14165fd6be preliminary documentation for nsIClassInfo
git-svn-id: svn://10.0.0.236/trunk@88892 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:32:20 +00:00
rods%netscape.com
218fd5f9d0 Skipp disabled items when pressing first letter
Bug 57580 r=kmcclusk sr=buster


git-svn-id: svn://10.0.0.236/trunk@88890 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:29:21 +00:00
heikki%netscape.com
226903118a No bug number. Build SOAP only when enabled, and do not build it by default. r=peterv, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@88889 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:28:58 +00:00
heikki%netscape.com
94bd33d1bd No bug number. Build SOAP only when enabled, and do not build it by default. r=heikki, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@88888 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:28:00 +00:00
heikki%netscape.com
5666a107a0 No bug number. Build SOAP only if MOZ_SOAP is set, and do not build it by default. r=peterv, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@88887 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 02:13:30 +00:00
stephend%netscape.com
20144545ae Leaving Stephen Walker's changes to bug 67463 in, but removing my accidental changes fromy tree, sorry about that.
git-svn-id: svn://10.0.0.236/trunk@88886 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:59:32 +00:00
mcafee%netscape.com
3aaecb9708 Adding view page info for pages, frames (41443). patch=matthew wilsom, r=mcafee, sr=ben
git-svn-id: svn://10.0.0.236/trunk@88885 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:55:27 +00:00
darin%netscape.com
86be826644 Making nsStreamListenerCID available to non MOZ_NEW_CACHE builds.
git-svn-id: svn://10.0.0.236/trunk@88884 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:52:36 +00:00
hyatt%netscape.com
fdb873c6f5 Skin uninstallation. r=danm, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@88883 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:50:36 +00:00
hyatt%netscape.com
280342788a Skin uninstallation. Just do it, baby. r=danm, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@88882 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:50:12 +00:00
stephend%netscape.com
ca65f3e7a5 Checking in the fix for tooltips in bug 67463, patch by Stephen Walker (walk84@usa.net) r=stephend@netscape.com, sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88881 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:42:38 +00:00
heikki%netscape.com
ecc814272a hyatt updated the old XUL atoms as part of fix for bug 71139, keeping this up to date.
git-svn-id: svn://10.0.0.236/trunk@88880 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:37:02 +00:00
dougt%netscape.com
9d819286cc fixing build bustage and renameing variable name.
git-svn-id: svn://10.0.0.236/trunk@88878 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:24:57 +00:00
erik%netscape.com
f3a85288a3 bugs 70028 and 70394; author=simon@softel.co.il; r=ftang; sr=erik; adding
Bidi and BidiUtils to build under IBMBIDI ifdef (not part of build yet);
from IBM bidi project


git-svn-id: svn://10.0.0.236/trunk@88877 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:15:02 +00:00
dougt%netscape.com
7ffe3c3031 Adding two new interfaces based on API review. Bugs: (71060,71056,71055). NOT PART OF BUILD YET
git-svn-id: svn://10.0.0.236/trunk@88876 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:11:58 +00:00
blakeross%telocity.com
c8cfd3d229 Mail and news prefs not painting properly (by John Morrison, 47813). r=blake sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@88875 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:07:14 +00:00
gordon%netscape.com
9250bb844b [not part of build] Fix a couple bugs to get http working. Don't deallocate requests before listener has been notified, and don't re-add entries to active entry hashtable.
git-svn-id: svn://10.0.0.236/trunk@88874 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:02:27 +00:00
erik%netscape.com
139f08c1a1 bugs 70028 and 70394; author=simon@softel.co.il; r=ftang; sr=erik; adding
nsIBidi.h and nsIUBidiUtils.h to build; from IBM bidi project


git-svn-id: svn://10.0.0.236/trunk@88873 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:02:04 +00:00
stephend%netscape.com
9d92bb1271 Bug 70241 Inconsistency in describing SMTP server r=racham@netscape.com, sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88872 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:01:48 +00:00
stephend%netscape.com
24127d9d8a Bug 70128 & 70241 Inconsistency in describing SMTP & NNTP servers r=racham@netscape.com, sr=sspitzer@netscape.com and sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88871 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:00:28 +00:00
sfraser%netscape.com
2b5624e994 Fix for bug 67466 -- don't crash when opening lots of files on startup. r=pinkerton, sr=beard
git-svn-id: svn://10.0.0.236/trunk@88870 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:59:54 +00:00
darin%netscape.com
1b63bc2073 [not part of the build] Add some more logging when using new cache, and
make HTTP use the mem cache always (for now).


git-svn-id: svn://10.0.0.236/trunk@88869 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:59:39 +00:00
dougt%netscape.com
a6c1f76150 NOT PART OF BUILD. this makes ftp work with the cache a bit better.
git-svn-id: svn://10.0.0.236/trunk@88868 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:59:19 +00:00
stephend%netscape.com
e812b82417 Bug 70128 Inconsistency in describing SMTP server r=racham@netscape.com, sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88867 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:59:07 +00:00
stephend%netscape.com
fa5895a12b Part of bug 70241 Inconsistency in describing SMTP server r=racham@netscape.com, sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88866 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:58:21 +00:00
darin%netscape.com
46733099b4 Added nsStreamListenerTee to necko component. This is only used by the new
cache.  r=gordon,beard


git-svn-id: svn://10.0.0.236/trunk@88865 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:58:06 +00:00
dougt%netscape.com
60116314b0 Fix for 71235. making pagecycler give some timing data. r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88863 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:56:42 +00:00
dougt%netscape.com
6355fee0fd Fix for 70346. Fixing breakage plugin bustage. sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88862 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:55:11 +00:00
law%netscape.com
fd61bad6b7 Part of bug 57576; adding support for getting list-style-image; r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@88861 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:55:01 +00:00
gordon%netscape.com
7c3e1ac39f Added nsStreamListenerTee.cpp to netwerk.mcp. r = saari.
git-svn-id: svn://10.0.0.236/trunk@88860 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:54:33 +00:00
dougt%netscape.com
632964b1a7 Adding break's to the switch statement. r=darin/sr=gagan
git-svn-id: svn://10.0.0.236/trunk@88859 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:49:31 +00:00
hyatt%netscape.com
c550068a0d Fixing outliner rules for focus.
git-svn-id: svn://10.0.0.236/trunk@88858 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:49:01 +00:00
thayes%netscape.com
bbf7e5b617 Implement tab-based framework for pageInfo.
+ tabs + extension by overlay + open to specific tab


git-svn-id: svn://10.0.0.236/trunk@88857 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:48:09 +00:00
hyatt%netscape.com
8c422398c6 Fix for 71139. Also reverting the splitter frame code back. r=danm, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@88856 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:47:22 +00:00
hyatt%netscape.com
e94e03d340 Fix for 71139. r=danm, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@88855 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:46:58 +00:00
valeski%netscape.com
8b6aeb374d 64804. r=dougt. fixing long broken stream converter chaining.
git-svn-id: svn://10.0.0.236/trunk@88854 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:41:53 +00:00
beard%netscape.com
53d0cb5b89 [not part of build] when DEBUG is true, always put cache directory next to current process.
git-svn-id: svn://10.0.0.236/trunk@88853 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:35:03 +00:00
gerv%gerv.net
dcc0e19dc1 Bug 66149 - nicer wording for the most common Bugzilla error message.
git-svn-id: svn://10.0.0.236/trunk@88851 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 23:59:15 +00:00
pavlov%netscape.com
f6f8819131 adding a printf to error
git-svn-id: svn://10.0.0.236/trunk@88848 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 23:41:54 +00:00
pavlov%netscape.com
5151b42fd5 adding some setjmp stff here that should hopefully avoid lameass crashes
git-svn-id: svn://10.0.0.236/trunk@88847 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 23:36:45 +00:00
despotdaemon%netscape.com
c942de0e09 Pseudo-automatic update of changes made by dmose@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@88845 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 22:57:30 +00:00
despotdaemon%netscape.com
688c7afd08 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@88844 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 22:55:29 +00:00
despotdaemon%netscape.com
44febe5c44 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@88843 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 22:43:25 +00:00
heikki%netscape.com
e15078e514 This should fix Mac bustage.
git-svn-id: svn://10.0.0.236/trunk@88842 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 22:39:42 +00:00
sfraser%netscape.com
4e9b0ca646 Fix for bug 71050, some dialog buttons blank on Mac. r=brade/tao, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@88837 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 22:14:14 +00:00
pchen%netscape.com
03a8627bf6 Fix for blocker 71146, tweak by cls, r=syd, sr=pchen (as sheriff). Change
strncmp to PL_strncmp to catch null "string".


git-svn-id: svn://10.0.0.236/trunk@88834 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 21:10:28 +00:00
barnboy%trilobyte.net
a680caf9bf Change to update sections 3 and 4, miscellaneous updates.
git-svn-id: svn://10.0.0.236/trunk@88832 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 20:55:39 +00:00
waterson%netscape.com
06336b484f Bug 71181. Revert attinasi's changes for bug 70730.
git-svn-id: svn://10.0.0.236/trunk@88831 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 20:15:35 +00:00
mcgreer%netscape.com
40a7fb8f08 add missing license text
git-svn-id: svn://10.0.0.236/trunk@88830 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 19:56:50 +00:00
mcgreer%netscape.com
fe329facca preliminary checkin of certificate manager
git-svn-id: svn://10.0.0.236/trunk@88828 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 19:24:12 +00:00
relyea%netscape.com
bd76aadc94 Bug 70657 . Old CERT DB doesn't always get closed after migration.
git-svn-id: svn://10.0.0.236/trunk@88827 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 17:34:44 +00:00
relyea%netscape.com
3eaad4e487 Fix Bug 70441 where ava fields with one or two characters are not formatted properly.
git-svn-id: svn://10.0.0.236/trunk@88826 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 17:31:53 +00:00
locka%iol.ie
f19fcfdcb0 Fix for using window.open specifying "_self" as the target. b=67288, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88825 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 13:43:04 +00:00
darin%netscape.com
045c0c5f1f [not part of the build] Added implementation files for nsIStreamListenerTee.
git-svn-id: svn://10.0.0.236/trunk@88824 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 12:54:45 +00:00
darin%netscape.com
c13b7e263a [not part of the build] Added nsIStreamListenerTee for the new cache.
git-svn-id: svn://10.0.0.236/trunk@88823 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 12:53:39 +00:00
darin%netscape.com
0db72b7ea2 [not part of the build] HTTP now compiles with MOZ_NEW_CACHE defined.
git-svn-id: svn://10.0.0.236/trunk@88822 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 12:19:27 +00:00
timeless%mac.com
e08ce90e39 fix bug 64562 Some chrome dtd bugs [duplicate entities in dtds]
fixes from cjh@kr.freebsd.org r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@88821 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 11:28:42 +00:00
timeless%mac.com
4a0f10f75f fix bug 61058 javascript strict warnings in institems.js
patch by gemal@gemal.dk r=timeless a=alecf


git-svn-id: svn://10.0.0.236/trunk@88820 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 10:57:22 +00:00
darin%netscape.com
af8b11010a [not part of the build] Fixes some bustage under GCC 2.96
git-svn-id: svn://10.0.0.236/trunk@88818 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 09:55:54 +00:00
gordon%netscape.com
fb0cae1827 [not part of build] Added test cases for ACCESS_READ of non-existent entry and ACCESS_WRITE of existing entry.
git-svn-id: svn://10.0.0.236/trunk@88817 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 09:31:45 +00:00
gordon%netscape.com
bf68e87589 [not part of build]
Added rough cut of pref code for memory cache device to get cache size, and implemented simple eviction method.

Restructured nsCacheEntryDescriptor to add SecurityInfo attribute.  Created nsTransportWrapper as nested class (and member) that addrefs the descriptor instead of itself (like nsPipe).  Also rename nsCacheOutputStream to nsOutputStreamWrapper and made it a nested class as well.


git-svn-id: svn://10.0.0.236/trunk@88816 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 09:27:36 +00:00
cls%seawood.org
4cf720fb9f Update information about legaldirs & createlegaldirs.pl
git-svn-id: svn://10.0.0.236/trunk@88815 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 09:12:42 +00:00
Peter.VanderBeken%pandora.be
0febd517eb Mac build stuff for Vixen. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@88812 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 08:34:19 +00:00
Peter.VanderBeken%pandora.be
465c15acaa Mac build stuff for Vixen. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@88811 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 08:28:49 +00:00
mcafee%netscape.com
31ce65cd76 nuking dead or lame images
git-svn-id: svn://10.0.0.236/trunk@88810 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 08:09:15 +00:00
jst%netscape.com
64866fe41c WIP, adding scriptable helpers for the DOM, will be used by XPConnect eventually. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@88809 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 07:55:21 +00:00
ben%netscape.com
264e656e4f Fix for 57763. r=blake, a=alecf
git-svn-id: svn://10.0.0.236/trunk@88807 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 07:50:14 +00:00
mcafee%netscape.com
b6399888ba Comment out embed tbox
git-svn-id: svn://10.0.0.236/trunk@88805 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 07:40:50 +00:00
cltbld%netscape.com
0aa43db532 Checking in bryner's fix for speedracer bustage. r=cls
git-svn-id: svn://10.0.0.236/trunk@88801 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 07:10:22 +00:00
darin%netscape.com
5b26897b8f Added some error checking.
git-svn-id: svn://10.0.0.236/trunk@88800 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 06:35:36 +00:00
dbaron%fas.harvard.edu
682d7c9a06 Really fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage.
git-svn-id: svn://10.0.0.236/trunk@88799 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 06:07:28 +00:00
mkaply%us.ibm.com
b008ba9126 OS/2 Build break
git-svn-id: svn://10.0.0.236/trunk@88798 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 05:58:59 +00:00
suresh%netscape.com
4e7fb741a2 Adding aim protocol to the list. No Specific bug number. r=syd. sr=mstoltz
git-svn-id: svn://10.0.0.236/trunk@88797 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 05:58:45 +00:00
bryner%uiuc.edu
6f6f4dded1 Trying again to fix speedracer bustage. r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@88796 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 05:40:49 +00:00
dbaron%fas.harvard.edu
a806846a26 Fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage by using a real REQUIRES line rather than a copied one.
git-svn-id: svn://10.0.0.236/trunk@88795 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 05:17:01 +00:00
tara%tequilarista.org
5cdd8c2e2a Making query.cgi use the new queryhelp.cgi doc
git-svn-id: svn://10.0.0.236/trunk@88794 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 05:02:46 +00:00
bryner%uiuc.edu
fb72c20ba6 Attempting to fix speedracer bustage. GTK_CHECK_VERSION is not defined on GTK+ 1.2.0.
git-svn-id: svn://10.0.0.236/trunk@88793 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:43:48 +00:00
cls%seawood.org
6bb8990b28 Add workaround for gcc 2.95.2 -O3 optimization bug involving nsCOMPtrs in a do loop.
Thanks to Johnny Stenback <jst@netscape.com> for the patch.
Bug #61501. r=waterson sr=brendan


git-svn-id: svn://10.0.0.236/trunk@88792 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:41:24 +00:00
barnboy%trilobyte.net
1e0c401e89 Fixed typos, dated information, and Windows NT instructions.
git-svn-id: svn://10.0.0.236/trunk@88791 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:27:03 +00:00
cls%seawood.org
254d0c352a Set MD specific files for openbsd.
git-svn-id: svn://10.0.0.236/trunk@88790 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:21:24 +00:00
endico%mozilla.org
af1ebedb4d fix for bug 30823. fixed advanced queries on dependencies and cc. added huge comment about how boolean charts work.
git-svn-id: svn://10.0.0.236/trunk@88789 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:11:47 +00:00
beard%netscape.com
1142c3fe58 Implement pre-seeking when underlying seekable output streams. r=darin, r=gordon
git-svn-id: svn://10.0.0.236/trunk@88788 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:07:05 +00:00
beard%netscape.com
aced59b313 [not part of build] don't overwrite a NULL pointer.
git-svn-id: svn://10.0.0.236/trunk@88787 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:05:36 +00:00
beard%netscape.com
eab0833c6b [not part of build] Using async open & read.
git-svn-id: svn://10.0.0.236/trunk@88786 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:04:33 +00:00
beard%netscape.com
2e914e474d [not part of build] Added synchronous http (unimplemented).
git-svn-id: svn://10.0.0.236/trunk@88785 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:03:39 +00:00
bryner%uiuc.edu
6c427322c0 This should fix the build bustage on ports, by using a gtk version test to decide what type to pass to gdk_gc_set_dashes. r=dbaron, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@88784 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 03:35:10 +00:00
mcafee%netscape.com
18b77ce62e flames are on by default now
git-svn-id: svn://10.0.0.236/trunk@88781 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 03:24:38 +00:00
mkaply%us.ibm.com
876553155b No bug
r=mkaply, a=blizzard
Code from dainis - workaround postscript bug where GpiQueryColorIndex doesn't work


git-svn-id: svn://10.0.0.236/trunk@88779 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 03:17:43 +00:00
shaver%mozilla.org
6e0127a24d 71107: make inner-peeking properly set HEAVYWEIGHT for all outer functions (r=jband,sr=brendan)
git-svn-id: svn://10.0.0.236/trunk@88778 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 03:14:25 +00:00
dbaron%fas.harvard.edu
ab9e5033f2 Fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage by changing MODULE from raptor to layout.
git-svn-id: svn://10.0.0.236/trunk@88777 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 03:11:33 +00:00
dave%intrec.com
1909c8b617 Fix for bug 62949: Initial Test Component on new install did not have initialOwner, which made sanitycheck complain.
git-svn-id: svn://10.0.0.236/trunk@88776 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 03:09:29 +00:00
cls%seawood.org
ff55700ce0 Use NO_MFC to build without the MFC tainted bits.
Bug #71087 sr=leaf


git-svn-id: svn://10.0.0.236/trunk@88775 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 03:08:12 +00:00
mcafee%netscape.com
56725f6043 Adding &flames=1 support
git-svn-id: svn://10.0.0.236/trunk@88774 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 03:04:23 +00:00
mkaply%us.ibm.com
c64937f6c9 IRIX breakage - CR/LF problem on dougt checkin
git-svn-id: svn://10.0.0.236/trunk@88773 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 03:04:02 +00:00
darin%netscape.com
7c4046b068 [not part of the build] Initial work to conditionally compile HTTP against the new cache.
git-svn-id: svn://10.0.0.236/trunk@88767 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:53:34 +00:00
gordon%netscape.com
dbd8c256b9 [not part of build] Add security info attribute to nsICacheEntryDescriptor.
git-svn-id: svn://10.0.0.236/trunk@88766 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:47:08 +00:00
tao%netscape.com
16f8c943a1 3631: can't get migration pull download list (MAC) r=jelwell,sr=syd
git-svn-id: svn://10.0.0.236/trunk@88765 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:42:15 +00:00
stephend%netscape.com
20fc920f31 Checking in fix for bug 61296. Patch by Ksosez (ksosez@softhome.net) r=blake sr=seth
git-svn-id: svn://10.0.0.236/trunk@88764 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:42:14 +00:00
stephend%netscape.com
22f1242f6c Checking in fix for bug 70496. Patch by Keyser Sosez (ksosez@softhome.net r=boris, sr=seth
git-svn-id: svn://10.0.0.236/trunk@88763 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:40:24 +00:00
mkaply%us.ibm.com
67237995e6 No bug
r=mkaply, a=blizzard
We can remove lDisplayDepth as a result of removing RequiresInvertedMask


git-svn-id: svn://10.0.0.236/trunk@88762 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:36:48 +00:00
mkaply%us.ibm.com
57ab671dce No bug
r=mkaply, a=blizzard
Code from dainis - remove unused function - RequiresInvertedMask


git-svn-id: svn://10.0.0.236/trunk@88760 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:30:33 +00:00
mkaply%us.ibm.com
0acdf9526c No bug
r=mkaply, a=blizzard
Code from dainis - workaround postscript bug where GpiQueryColorIndex doesn't work


git-svn-id: svn://10.0.0.236/trunk@88757 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:25:00 +00:00
javi%netscape.com
ab6cab923b Make the pref dialog call a JS function to open up
the certificate manager.

Also put all the localizable strings into dtd and properties
files.


git-svn-id: svn://10.0.0.236/trunk@88756 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:17:00 +00:00
heikki%netscape.com
e90510463a Bug 66786, fix UMR in GetLine(). Fix by Daniel Bratell (bratell@lysator.liu.se). r=heikki, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@88755 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:03:57 +00:00
mkaply%us.ibm.com
7f8d23473a #60330
r=mkaply, a=blizzard
Code from dainis - support empty clip rects (clip everything) on OS/2


git-svn-id: svn://10.0.0.236/trunk@88754 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 02:01:03 +00:00
erik%netscape.com
bdbe566805 bug 70394; author=simon@softel.co.il; r=ftang; sr=erik; this is the
interface and implementation of the Unicode Bidi Algorithm, based on IBM's
ICU (International Classes for Unicode), ported to Mozilla's XPCOM/NS/PR
conventions; not part of the build yet


git-svn-id: svn://10.0.0.236/trunk@88751 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:52:16 +00:00
hyatt%netscape.com
0aff0314c7 Fix for 62783. r=danm, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@88750 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:46:13 +00:00
hyatt%netscape.com
597a4e8598 Fix for state updating in Composer. r=danm, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@88749 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:44:56 +00:00
beard%netscape.com
503b4b32f7 [not part of build] Added GetFile() to implement the file attribute.
git-svn-id: svn://10.0.0.236/trunk@88748 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:40:41 +00:00
beard%netscape.com
1bed9bd372 [not part of build] Added file attribute to nsICacheEntryDescriptor, added STORE_ON_DISK_AS_FILE to nsICache.
git-svn-id: svn://10.0.0.236/trunk@88747 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:37:42 +00:00
sspitzer%netscape.com
dd1964fd78 fix bugscape bugs #2883 #2884 #3927. Thanks to jgaunt@netscape.com for the
patch.  r/sr=sspitzer,bienvenu


git-svn-id: svn://10.0.0.236/trunk@88746 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:33:55 +00:00
bryner%uiuc.edu
ce8d5b7041 Fixing build on gtk+ >= 1.2.7. r=pavlov, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@88744 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:31:15 +00:00
pschwartau%netscape.com
69876eeb2d Initial add. Regression test for bug 71107.
git-svn-id: svn://10.0.0.236/trunk@88743 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:30:15 +00:00
racham%netscape.com
63cdd2c73d Fixing bug 67634. Clearing the default url value so that beep takes the default place for biff sound. r=racham, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@88740 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:16:44 +00:00
racham%netscape.com
5b1c29fd94 Fixing bug 67634. Default sound for biff is changed to be the system beep. Patch by Seth. r=racham, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@88739 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:16:35 +00:00
shaver%mozilla.org
6287e8c1f2 71102: remove archaic and unused browsing profile code (r=waterson,sr=brendan)
git-svn-id: svn://10.0.0.236/trunk@88738 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:15:04 +00:00
waterson%netscape.com
076c14c841 Bug 70005. Since unrooting is conditional on whether or not mScriptObject is set, be sure to only set the root in the first place if we have a non-null script object. r=mstoltz, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@88735 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:12:40 +00:00
jgmyers%netscape.com
f2796ba5cc Have SMTP prompt for userid if it's not set in prefs: bug 64777 sr=mscott r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@88733 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 01:08:04 +00:00
pavlov%netscape.com
0369506cd8 make imgIRequest an nsIRequest again. do RGB->BGR conversion for jpegs. add an error code for no decoder. add place to add expiration date to the cache entries once darin fixes http channel to give me an expiration date..
git-svn-id: svn://10.0.0.236/trunk@88732 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:59:49 +00:00
jgmyers%netscape.com
6300d60f43 pass default and override charset down to header decoder: bug 65277 r=nhotta r=ducarroz sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@88731 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:59:47 +00:00
darin%netscape.com
58bb327a0c minor coding style cleanup.
git-svn-id: svn://10.0.0.236/trunk@88730 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:55:43 +00:00
pinkerton%netscape.com
ba32268a60 don't process mouseMove events if the app is in the bg. r=saari/sr=sfraser. bug# 70518.
git-svn-id: svn://10.0.0.236/trunk@88729 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:52:43 +00:00
axel%pike.org
28ee1c8093 not part of build; adding xpcom logging, r=peterv
git-svn-id: svn://10.0.0.236/trunk@88728 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:51:38 +00:00
pinkerton%netscape.com
e4c17ad1c3 Don't set SWP_NOZORDER flag for popups, as this allows the taskbar to
come in front at certain times. bug# 47152. r=danm/rods/kmcclusk. sr=hyatt.


git-svn-id: svn://10.0.0.236/trunk@88727 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:46:36 +00:00
sspitzer%netscape.com
e3f0ad95db fix for bugscape bug #4174. sr=mscott
git-svn-id: svn://10.0.0.236/trunk@88726 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:44:20 +00:00
waterson%netscape.com
019c67de16 Bug 70699. Fix windows makefile to create .obj files in win32_x.obj. Tip o' the cap to gverdun@acm.org. r=jst, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@88725 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:43:11 +00:00
axel%pike.org
3ea6636ab9 not part of build; adding XPCOM logging, and whitespace in documents, r=peterv
git-svn-id: svn://10.0.0.236/trunk@88724 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:42:57 +00:00
attinasi%netscape.com
35ec037877 Fix for printing crash when bulleted items have no bullet and we assume they do. Added assertion to help find the cause of the problem, and checks for null to prevent the crash. b=70730 r=dcone sr=waterson
git-svn-id: svn://10.0.0.236/trunk@88722 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:38:45 +00:00
sspitzer%netscape.com
717d250225 fixes for the outliner. from varga and sspitzer. sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@88720 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 00:14:27 +00:00
beard%netscape.com
e2a9261f18 Fix build bustage by adding files from xul/base/src/outliner. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@88717 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 23:41:34 +00:00
sspitzer%netscape.com
e51c5a6ff0 more bustage.
git-svn-id: svn://10.0.0.236/trunk@88716 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 23:18:38 +00:00
sspitzer%netscape.com
f354495ebc fix build bustage. thanks to meep and Pike.
git-svn-id: svn://10.0.0.236/trunk@88715 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 23:16:27 +00:00
glazman%netscape.com
c51ab80308 mSourceString in SelectorList was allocated, filled with a
reconstructed copy of ALL selectors in chrome and document,
unused and then deallocated ! b=70995, r=hewitt, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@88711 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 23:07:33 +00:00
mkaply%us.ibm.com
cb03091089 Win bustage - there was still an extra character in the file
I got it this time


git-svn-id: svn://10.0.0.236/trunk@88710 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 23:05:54 +00:00
sspitzer%netscape.com
e16cad68ad fix bustage. sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@88707 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 22:53:48 +00:00
blizzard%redhat.com
fef72503bd Hot tooltip love. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@88706 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 22:51:23 +00:00
mkaply%us.ibm.com
46471ef79c Win bustage - there was still an extra character in the file
git-svn-id: svn://10.0.0.236/trunk@88705 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 22:49:29 +00:00
blizzard%redhat.com
e726a72240 Implement SIZE_TO, DESTROY_BROWSER, and OPEN_URI. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@88704 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 22:41:53 +00:00
hyatt%netscape.com
6f8aa53d7e Fix for 70877, enabling outliner. r=dr, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@88701 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 22:16:42 +00:00
bryner%uiuc.edu
07fdbbe53d Use user prefs for determining whether to enable SSL2/SSL3/TLS. Also, remove now-unused pref service stuff from nsSecureBrowserUIImpl. r=javi.
git-svn-id: svn://10.0.0.236/trunk@88700 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 22:07:26 +00:00
darin%netscape.com
5bf29d7b78 [not part of the buid] Renamed onDescriptorAvailable to onCacheEntryAvailable.
git-svn-id: svn://10.0.0.236/trunk@88699 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 22:04:05 +00:00
blizzard%redhat.com
7c10d03451 New embedding widget files. Not Yet Quite Part Of The Build, Folks
git-svn-id: svn://10.0.0.236/trunk@88698 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 21:56:57 +00:00
pavlov%netscape.com
50226ce43a add the loadgroup back in.. send the proxy a onstoprequest message when addobserver is called if it has already been stopped... this makes sure the image request always gets removed from the loadgroup.. this could be further optimized to avoid adding it to the loadgroup at all if the image is complete when the proxy gets created.
git-svn-id: svn://10.0.0.236/trunk@88697 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 21:54:33 +00:00
sfraser%netscape.com
aa5c92832c Fix for bug 71063 -- don't pass streams by value. r=blake, sr=morse
git-svn-id: svn://10.0.0.236/trunk@88696 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 21:28:07 +00:00
dougt%netscape.com
91f9ff8520 Attempting to fix bustage. removing tabs
git-svn-id: svn://10.0.0.236/trunk@88695 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 21:27:54 +00:00
cmanske%netscape.com
8167181d4d Fixed editor bugs 68064 and 70263. r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@88694 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 21:12:28 +00:00
chuang%netscape.com
5417b08b1e Bug65870 "Notes" data field does not display after migrating, r=ducarroz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@88693 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 21:04:55 +00:00
dougt%netscape.com
5c4d59d038 Making nsInputStreamTee build on windows. r=darin, sr=gagan
git-svn-id: svn://10.0.0.236/trunk@88685 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 20:29:20 +00:00
darin%netscape.com
c0b15ae584 [used only by the new cache] nsStorageTransport incorrectly returned TRUE for GetNonBlocking. r=dougt
git-svn-id: svn://10.0.0.236/trunk@88684 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 20:29:06 +00:00
dougt%netscape.com
f60779319e NOT PART OF BUILD. moving the getMetdata up a bit
git-svn-id: svn://10.0.0.236/trunk@88683 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 20:22:01 +00:00
ducarroz%netscape.com
24ddbf5cc1 Fix for bug 48668. Put back the extra blank line before page link. R=varada, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@88682 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 20:20:58 +00:00
jfrancis%netscape.com
b9f86f8b98 fix for 70602: selection not properly reset when joining nodes. {r,sr}={kin,sfraser}
git-svn-id: svn://10.0.0.236/trunk@88681 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 20:16:38 +00:00
racham%netscape.com
6957bbbb7c Fixing bug 58721. Fixing the situation where application hangs if the biff interval is greater than 35 minutes. Needed to use the nsInt64 var to hold the values and to get carried forward properly for further operations. r=gayatrib, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@88676 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 19:44:37 +00:00
oeschger%netscape.com
a5aba9553f updating links in help welcome page, NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@88661 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 15:58:05 +00:00
beard%netscape.com
f6c6566a51 Remove nsGarbageCollector.c (obsolete), fix access paths.
git-svn-id: svn://10.0.0.236/trunk@88660 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 15:54:37 +00:00
timeless%mac.com
0486afd7a8 fix bug 46127 -console option missing from -help listing
patch by anedah-9@sm.luth.se r=timeless, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@88659 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 15:51:05 +00:00
matthias%sorted.org
f1ff706673 replicated SpiderMonkey fix for bug 67773
git-svn-id: svn://10.0.0.236/trunk@88658 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 13:57:01 +00:00
ben%netscape.com
e451fccd8a Another round of ViXEn updates. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@88657 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 09:41:14 +00:00
nicolson%netscape.com
0283714fd0 Replaced javadoc in new SSL classes.
A couple of API tweaks.


git-svn-id: svn://10.0.0.236/trunk@88656 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 08:49:37 +00:00
nicolson%netscape.com
86896470b9 Rename misnamed ssl methods.
git-svn-id: svn://10.0.0.236/trunk@88655 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 08:48:03 +00:00
darin%netscape.com
708e49ad66 Indentation, whitespace, and comment cleanups.
git-svn-id: svn://10.0.0.236/trunk@88654 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 08:46:57 +00:00
scc%mozilla.org
a6d2242b23 r=jst, avoid deprecated operator
git-svn-id: svn://10.0.0.236/trunk@88652 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 08:33:00 +00:00
maolson%earthlink.net
e5eea7bb4a fix 68876 - Fix sort ordering in View -> Character Coding -> Auto-Detect
r=timeless, a=ben


git-svn-id: svn://10.0.0.236/trunk@88651 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 08:32:59 +00:00
darin%netscape.com
0a26429699 Indentation, whitespace, and comment cleanups.
git-svn-id: svn://10.0.0.236/trunk@88650 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 08:25:18 +00:00
darin%netscape.com
f83c0bbef6 Indentation, whitespace, and comment cleanups.
git-svn-id: svn://10.0.0.236/trunk@88649 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 08:17:03 +00:00
darin%netscape.com
90d3d3ddaf [not part of the build] Fixes bustage resulting from bryner's nsITransport changes.
git-svn-id: svn://10.0.0.236/trunk@88648 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 07:35:54 +00:00
bryner%uiuc.edu
14a9926b15 Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@88647 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 06:22:58 +00:00
attinasi%netscape.com
488afba86a Fixes box-sizing for absolutely positioned elements. b=67690 r=waterson (and buster R.I.P), sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@88646 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 05:56:19 +00:00
bryner%uiuc.edu
1bee2fc3c1 forgot a file
git-svn-id: svn://10.0.0.236/trunk@88645 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 05:44:53 +00:00
jj%netscape.com
26d258f43a dummy version of the EULA for installer debugging purposes.
git-svn-id: svn://10.0.0.236/trunk@88643 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 05:34:57 +00:00
jj%netscape.com
8526a6c113 using [0x80] instead of #128 for version_minor string. bugzilla 68231 r=sdagley
git-svn-id: svn://10.0.0.236/trunk@88640 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 05:20:05 +00:00
pavlov%netscape.com
88fd756ce9 don't add requests to the loadgroup yet... it causes the browser not to start up...
git-svn-id: svn://10.0.0.236/trunk@88639 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 05:15:04 +00:00
jj%netscape.com
e40e163c45 Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott. (jj checking in for bryner)
git-svn-id: svn://10.0.0.236/trunk@88638 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 05:10:55 +00:00
bryner%uiuc.edu
ab5139c48f Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@88637 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 05:10:33 +00:00
bryner%uiuc.edu
1c63880df2 Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@88636 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 05:00:47 +00:00
despotdaemon%netscape.com
90385ae596 Pseudo-automatic update of changes made by cathleen@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@88635 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 04:50:49 +00:00
pavlov%netscape.com
69466a5e70 adding a dummy channel class that i can add to load groups for each request instead of giving the real channel a single load group. cache fixes, cleanups, etc.
git-svn-id: svn://10.0.0.236/trunk@88634 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 04:46:20 +00:00
jj%netscape.com
2215a1c39f obsolete EULA. see bugscape #4012
git-svn-id: svn://10.0.0.236/trunk@88633 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 04:24:25 +00:00
gordon%netscape.com
3764094d6d [not part of build...and a good thing too] Fixed a couple of really stupid mistakes. Thanks to Patrick for finding them. Go back to your homes. Nothing to see here.
git-svn-id: svn://10.0.0.236/trunk@88632 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 04:01:00 +00:00
blakeross%telocity.com
6a6d73b16b Updating ua string to 0.8.1
git-svn-id: svn://10.0.0.236/trunk@88630 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:41:05 +00:00
dbaron%fas.harvard.edu
5fb99776bc Fix server name not showing up in status bar for FTP connections. b=66682 r=dougt@netscape.com sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88629 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:32:07 +00:00
waterson%netscape.com
6bc8f962b4 Bug 64670. Clean up and document SplitToContainingBlock(). Specifically: fix stray comma in file; unmuddle replaced frame and its parent in CantRenderReplacedElement(); sanity check args in SplitToContainingBlock(); manage view reparenting in SplitToContainingBlock(); fix nsObjectFrame to only stifle key events if the plugin was really instantiated. r=kmcclusk, saari sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@88628 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:31:29 +00:00
beard%netscape.com
66344bae90 [not part of build] Increased number of downloads/reads to 50, added median().
git-svn-id: svn://10.0.0.236/trunk@88627 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:29:08 +00:00
gordon%netscape.com
057243bb88 [not part of build]
Fix race condition in nsCacheRequest WaitForValidation().

Force !streamBased to set storagePolicy to nsICache:STORE_IN_MEMORY when creating nsCacheSessions.

Fix ProcessRequest() to refrain from creating a descriptor for ACCESS_READ requests when no entry is found (found by pavlov).


git-svn-id: svn://10.0.0.236/trunk@88626 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:26:13 +00:00
dbaron%fas.harvard.edu
eada4125eb Add pref to REQUIRES to fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage.
git-svn-id: svn://10.0.0.236/trunk@88625 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:24:57 +00:00
timeless%mac.com
1499fb2a7f fix bug 67108 "Mail startpage" groupbox needs cleanup
fix by hwaara@chello.se r=timeless, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@88624 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:24:13 +00:00
darin%netscape.com
a3e03c5eaf [not part of the build] Prevent crash in error case.
git-svn-id: svn://10.0.0.236/trunk@88623 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:12:24 +00:00
hyatt%netscape.com
3955e0e8a4 Outliner rules. NOt enabled yet.
git-svn-id: svn://10.0.0.236/trunk@88622 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:51:09 +00:00
hyatt%netscape.com
524b3e364f Not part of build.
git-svn-id: svn://10.0.0.236/trunk@88621 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:47:38 +00:00
mkaply%us.ibm.com
ff43fa4412 No bug
r=mkaply, a=blizzard
Typo in IBM866 charset


git-svn-id: svn://10.0.0.236/trunk@88620 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:47:21 +00:00
mkaply%us.ibm.com
7d2cf368d1 #62777
r=mkaply, a=blizzard
1255 and 1256 are not supported on OS/2 - use 862 and 864 instead


git-svn-id: svn://10.0.0.236/trunk@88619 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:45:50 +00:00
brendan%mozilla.org
e49034549b I'm a Linux loser, warnings don't affect me.
git-svn-id: svn://10.0.0.236/trunk@88618 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:45:35 +00:00
hyatt%netscape.com
92719d2231 Patch for 70809. Also checking in a piece I forgot to check in of the format
toolbar bug from earlier today (it was r and sr already).  70809 is r=attinasi,
sr=brendan


git-svn-id: svn://10.0.0.236/trunk@88617 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:40:15 +00:00
tao%netscape.com
e8647ed58f 1. 61626:"Need to make langxxxx.xpi platform neutral"
2. 70622: fix the "update.html" is also included.
3. 69934: make regus.jst & langenus.jst more localization friendly.
r=ssu,sr=deveditz.


git-svn-id: svn://10.0.0.236/trunk@88616 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:34:34 +00:00
hyatt%netscape.com
e887dceb91 Fix for 70809. r=attinasi, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@88615 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:30:30 +00:00
hyatt%netscape.com
11b2e924f2 Outliner files are not part of build.
The other files are a fix for bug #70809.  r=attinasi, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@88614 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:27:50 +00:00
naving%netscape.com
1d63570fda 65630. sr=bienvenu. Do batching only if the platform is not MAC. Also m_folderStream
should point to m_folderSpec and not m_dbName


git-svn-id: svn://10.0.0.236/trunk@88613 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:23:52 +00:00
dougt%netscape.com
1ce6c637df Fixing windows bustage.
git-svn-id: svn://10.0.0.236/trunk@88612 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:21:37 +00:00
dougt%netscape.com
d140683af0 Adding nsIndexToHTML.
git-svn-id: svn://10.0.0.236/trunk@88611 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:14:59 +00:00
dougt%netscape.com
7365790187 Fixes 64795 - Allows viewing FTP without the treewidget. r=valeski@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88610 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:14:42 +00:00
beard%netscape.com
570f5ff2a8 [not part of build] create the cache directory if it doesn't exist already.
git-svn-id: svn://10.0.0.236/trunk@88609 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:10:18 +00:00
brendan%mozilla.org
2ba6cefe74 Death to tabs\!
git-svn-id: svn://10.0.0.236/trunk@88608 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:05:03 +00:00
dbaron%fas.harvard.edu
14ad030646 Work in progress on CSS error reporting: fix the known false positives and duplicate messages and improve the error messages. It's still a hack that I wouldn't really want to enable by default, but it should be useful for debugging chrome CSS. r=glazman@netscape.com sr=attinasi@netscape.com b=65469
git-svn-id: svn://10.0.0.236/trunk@88605 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:57:30 +00:00
brendan%mozilla.org
22cc58b856 bugs 31003 and (mostly) 68045, r=rogerl, sr=shaver&hyatt
- Fix bug where script jssrcnote vector terminator was not XDRed.
- Ensure that memory is cleared by serializing zero padding bytes as needed
  under JS_XDRBytes and JS_XDRString.
- Fix JS_XDRValue to handle undefined and null JS types properly (bug 31003).
  Also make it cast from jsint to uint32 and back carefully, so as to work
  with negative numbers even on targets where jsval is a signed 64 bit type.
- Add JS_XDRScript public API.
- Optimize the per-JSXDRState class registry so it uses a JSDHashTable upon
  searching for a class-id by name in an overpopulated (for linear search)
  registry table.
- Clean up API nits such as JS_XDRNewBase => JS_XDRInitBase, with parameter
  list rotation to put cx last (JS_XDRInitBase is an infallible init helper,
  not an error-reporting, cx-comes-first, API entry point).
- Fix some XXX comments, unneeded masks, other nits.
- Make sure all JS XDR API functions start with JS_XDR.


git-svn-id: svn://10.0.0.236/trunk@88604 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:56:30 +00:00
dbaron%fas.harvard.edu
edbbd33e17 Remove attempted workaround for CantRenderReplacedElement crash that didn't fix the crash (which is now fixed the right way).
Clean up the FrameManager a bit, mainly by moving the destruction of the frame tree into the |Destroy| method rather than doing it in the destructor.  This would make it safer to convert nsIFrameManager to IDL and use the frame manager from JS.  It also reduces the risk of leaks caused by having something owned by a frame own the frame manager.  Breaking cycles in a destructor can be risky because the objects entrained by the cycle could include the object whose destructor would break the cycle.
b=65800  r=waterson@netscape.com  sr=attinasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@88603 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:46:03 +00:00
hyatt%netscape.com
e7e967242c Fix for 59558, r=brendan, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@88602 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:42:34 +00:00
darin%netscape.com
2685a2a7cc [not part of the build] Fixes sync OpenCacheEntry bustage.
git-svn-id: svn://10.0.0.236/trunk@88601 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:40:20 +00:00
dougt%netscape.com
e1b6217683 Fixes 68483 as well as fixes some mem leaks cause by canceling a request. r=darin@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88600 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:27:54 +00:00
cls%seawood.org
26fcde5f6c Remove last call to nsprpub\makefile.win
git-svn-id: svn://10.0.0.236/trunk@88597 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:01:34 +00:00
jst%netscape.com
8a2f0eb79a Fixing bug in the incremental layout notification code in the sink (no bug #). The sink context was calling DidAddContent() before decrementing the mInMonolithicContainer member in the sink if we were closing a monolithic container. This made the document never incrementally reflow changes after closing a monolithic container. Fix done by Vidur, sr=vidur@netscape.com/jst@netscape.com, r=harishd@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88596 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 00:52:54 +00:00
attinasi%netscape.com
6e78b74479 Don't reflow for every notification of an image load if the image frame's size is constrained. b=69552 r=kmcclusk sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@88591 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 00:47:46 +00:00
alecf%netscape.com
c9e1c01b98 fix for #66908 r=timeless, a=ben
make history history sidebar urls open in the current window, if possible


git-svn-id: svn://10.0.0.236/trunk@88589 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 00:41:41 +00:00
naving%netscape.com
9cc54de4a9 #70817 r/sr = bienvenu, alecf. Pass the strm as reference instead of a copy.
git-svn-id: svn://10.0.0.236/trunk@88587 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 00:31:06 +00:00
Peter.VanderBeken%pandora.be
1d60321263 Fix for bug #68605 (correct the XSLT document() function). Patch by Jonas Sicking <sicking@bigfoot.com>, r=me. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@88585 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 00:14:56 +00:00
Peter.VanderBeken%pandora.be
c14341fb3e Fix for bug #68605 (correct the XSLT document() function). Patch by Jonas Sicking <sicking@bigfoot.com>, r=me. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@88584 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 00:12:43 +00:00
darin%netscape.com
c3e8536f42 [not part of the bulid] Fixes GCC 2.95 bustage.
git-svn-id: svn://10.0.0.236/trunk@88583 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 23:50:26 +00:00
maolson%earthlink.net
cd38968a0d Fix bug 68522 - "Message Filters" dialog should have context enabled/disabled features
r=jag, r=gayatrib, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@88580 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 23:40:25 +00:00
blakeross%telocity.com
f4dc8b7402 Search cleanup (70102). r=timeless sr=alecf
git-svn-id: svn://10.0.0.236/trunk@88578 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 23:30:07 +00:00
hyatt%netscape.com
8725c45023 Fix for 68478. r=blake, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@88577 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 23:28:07 +00:00
tao%netscape.com
7946f8b87c 70920: Remove unused references of binaryStream in nsStringBundle.cpp.
(r=be,sr=erik)


git-svn-id: svn://10.0.0.236/trunk@88575 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 23:01:55 +00:00
oeschger%netscape.com
7bc827d8b8 small fixes to help chrome, NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@88574 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 22:53:40 +00:00
hyatt%netscape.com
921bed6bf3 Fix for 68138. r=danm, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@88569 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 22:29:52 +00:00
karnaze%netscape.com
0eac198bf2 Added new regression test, fixed an old one. Not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@88568 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 22:26:07 +00:00
blakeross%telocity.com
54c5fe9bac Table crash in webmail page (70072). r=karnaze sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@88567 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 22:09:14 +00:00
rogerl%netscape.com
118fa5848e Fixed increment bug. Added mPrivate member and supported native getter &
setter functions for NAME opcodes.


git-svn-id: svn://10.0.0.236/trunk@88566 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 21:49:23 +00:00
hyatt%netscape.com
55301ff06d Disable attachto capability in XBL. Fix for bug#55265. r=danm, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@88565 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 21:45:13 +00:00
varada%netscape.com
fd97f13fde fix for bug#49378;UI:feedback after saving draft;r=ducarroz;sr=mscott
git-svn-id: svn://10.0.0.236/trunk@88564 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 21:45:05 +00:00
hyatt%netscape.com
4f171a2fce Fix for 57112. r=danm, sr=jst
git-svn-id: svn://10.0.0.236/trunk@88561 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 21:39:27 +00:00
dbragg%netscape.com
59cfea51bd Now stripping off trailing slashes and setting mFileSpec equal to nsnull when a bogus path
with double slashes is passed in.  Fixes bug 62861. r=dveditz, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@88558 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 21:05:55 +00:00
yokoyama%netscape.com
d6c44db96f Bug fix for 29358; /r= rbs@maths.uq.edu.au, /sr=brendan@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88557 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 20:55:10 +00:00
evaughan%netscape.com
be6d994c1a Forgot some makefile. NOT IN BUILD
git-svn-id: svn://10.0.0.236/trunk@88556 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 20:26:03 +00:00
evaughan%netscape.com
bf459fb17e Added to accessibility not in build.
git-svn-id: svn://10.0.0.236/trunk@88555 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 20:21:39 +00:00
ducarroz%netscape.com
2a5333bd3b Bug 22486. Add TimeStamp function to track new message and reply performance. R=sspitzer, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@88554 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 20:00:26 +00:00
thayes%netscape.com
48f30d684e Add pageInfo overlay to for displaying security information
git-svn-id: svn://10.0.0.236/trunk@88553 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 19:40:39 +00:00
cmanske%netscape.com
a2d9c8d079 Checkin to fix bug 69851 for pedimont@us.ibm.com, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@88546 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 15:41:39 +00:00
20275 changed files with 3826734 additions and 21709 deletions

43
mozilla/LEGAL Normal file
View File

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

567
mozilla/LICENSE Normal file
View File

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

187
mozilla/Makefile.in Normal file
View File

@@ -0,0 +1,187 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = .
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/build/unix/modules.mk
ifneq ($(BUILD_MODULES),all)
DIRS = $(BUILD_MODULE_DIRS)
EXPORT_DIRS = $(BUILD_MODULE_DEP_DIRS)
else
DIRS = config build
ifdef MOZ_JAVA_SUPPLEMENT
DIRS += \
java/util \
java/webclient \
$(NULL)
endif
# boehm needs to be built before XPCOM
ifdef GC_LEAK_DETECTOR
DIRS += gc/boehm
endif
DIRS += $(NSPRPUB_DIR)
DIRS += dbm modules/libreg js string xpcom js/src/xpconnect
ifdef MOZ_OJI
DIRS += js/src/liveconnect
endif
ifndef MOZ_NATIVE_ZLIB
DIRS += modules/zlib
endif
ifndef MOZ_NATIVE_JPEG
DIRS += jpeg
endif
ifdef MOZ_ENABLE_XLIB
DIRS += gfx/src/xlibrgb widget/src/xlibxtbin
endif
ifdef MOZ_ENABLE_GTK
DIRS += widget/src/gtksuperwin widget/src/gtkxtbin
endif
# Linux and Solaris installer needs standalone libjar, hence standalone zlib
ifneq (,$(filter Linux SunOS,$(OS_ARCH)))
DIRS += modules/zlib/standalone
endif
DIRS += \
widget/timer \
include \
modules/libutil \
netwerk \
modules/mpfilelocprovider \
uriloader \
intl \
modules/libpref \
modules/libimg \
modules/oji \
modules/libjar \
caps \
rdf \
expat \
htmlparser \
gfx \
$(NULL)
ifdef USE_IMG2
DIRS += gfx2 modules/libpr0n
endif
DIRS += \
modules/plugin \
dom \
view \
widget \
content \
layout \
db \
docshell \
webshell \
embedding \
editor \
sun-java \
profile \
themes \
accessible \
$(NULL)
# This must preceed xpfe
ifdef MOZ_JPROF
DIRS += tools/jprof
endif
ifdef MOZ_BUILD_XPFE
DIRS += xpfe
endif
DIRS += xpinstall
ifdef MOZ_PSM
DIRS += security/nss security/manager
endif
ifdef MOZ_EXTENSIONS
DIRS += extensions
endif
ifdef MOZ_MAIL_NEWS
DIRS += mailnews
endif
ifdef MOZ_LEAKY
DIRS += tools/leaky
endif
ifdef ENABLE_TESTS
DIRS += xpcom/tests
endif
ifdef MOZ_LDAP_XPCOM
DIRS += directory/c-sdk/ldap directory/xpcom
endif
DIRS += l10n
ifdef MOZ_STATIC_COMPONENTS
DIRS += modules/staticmod
endif
DIRS += xpfe/bootstrap
endif # BUILD_MODULES == all
STATIC_MAKEFILES := $(NSPRPUB_DIR) directory/c-sdk/ldap
ifdef MOZ_PSM
STATIC_MAKEFILES += security/nss
endif
GARBAGE_DIRS += dist
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
unallmakefiles \
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
include $(topsrcdir)/config/rules.mk
export::
+$(LOOP_OVER_EXPORT_DIRS)
distclean::
cat unallmakefiles | $(XARGS) rm -f
rm -f unallmakefiles $(DIST_GARBAGE)

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,47 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..
MODULE=accessibility
MAKE_OBJ_TYPE=DLL
DLLNAME=accessibility
DLL=.\$(OBJDIR)\$(DLLNAME).dll
CPP_OBJS=\
.\$(OBJDIR)\nsAccessibilityFactory.obj \
$(NULL)
LINCS = $(LINCS) -I..\src # for implementation headers
LLIBS=\
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\accessibility_s.lib \
$(DIST)\lib\timer_s.lib \
$(DIST)\lib\gkgfxwin.lib \
$(LIBNSPR)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib

View File

@@ -0,0 +1,60 @@
/* -*- 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 "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsIAccessibilityService.h"
#include "nscore.h"
static NS_IMETHODIMP
NS_ConstructAccessibilityService(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
nsresult rv;
NS_ASSERTION(aOuter == nsnull, "no aggregation");
nsIAccessibilityService* accessibility;
rv = NS_NewAccessibilityService(&accessibility);
if (NS_FAILED(rv)) {
NS_ERROR("Unable to construct chrome registry");
return rv;
}
rv = accessibility->QueryInterface(aIID, aResult);
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
NS_RELEASE(accessibility);
return rv;
}
// The list of components we register
static nsModuleComponentInfo components[] =
{
{ "AccessibilityService",
NS_ACCESSIBILITY_SERVICE_CID,
"@mozilla.org/accessibilityService;1",
NS_ConstructAccessibilityService
},
};
NS_IMPL_NSGETMODULE("nsAccessibilityModule", components);

Binary file not shown.

Binary file not shown.

View File

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

View File

@@ -0,0 +1,3 @@
nsIAccessibilityService.idl
nsIAccessible.idl
nsIMutableAccessible.idl

View File

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

View File

@@ -0,0 +1,34 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..
MODULE=accessibility
XPIDL_MODULE=accessibility
XPIDLSRCS = \
.\nsIAccessibilityService.idl \
.\nsIAccessible.idl \
.\nsIMutableAccessible.idl \
.\nsIAccessibleEventReceiver.idl \
.\nsIAccessibleEventListener.idl \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,53 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Original Author: Eric Vaughan (evaughan@netscape.com)
*
* Contributor(s):
*/
#include "nsISupports.idl"
#include "domstubs.idl"
#include "nsIMutableAccessible.idl"
#include "nsIAtom.idl"
[scriptable, uuid(68D9720A-0984-42b6-A3F5-8237ED925727)]
interface nsIAccessibilityService : nsISupports
{
nsIAccessible createRootAccessible(in nsISupports aPresShell, in nsISupports aFrame);
nsIMutableAccessible createMutableAccessible(in nsISupports aNode);
nsIAccessible createHTMLBlockAccessible(in nsIAccessible aAccessible, in nsIDOMNode aNode, in nsISupports aPresShell);
nsIAccessible createHTMLSelectAccessible(in nsIAtom aAccessible, in nsIDOMNode aNode, in nsISupports aPresShell);
nsIAccessible createHTMLCheckboxAccessible(in nsISupports aFrame);
nsIAccessible createHTMLRadioButtonAccessible(in nsISupports aFrame);
nsIAccessible createHTMLButtonAccessible(in nsISupports aFrame);
nsIAccessible createHTMLTextAccessible(in nsISupports aFrame);
};
%{ C++
// for component registration
// {DE401C37-9A7F-4278-A6F8-3DE2833989EF}
#define NS_ACCESSIBILITY_SERVICE_CID \
{ 0xde401c37, 0x9a7f, 0x4278, { 0xa6, 0xf8, 0x3d, 0xe2, 0x83, 0x39, 0x89, 0xef } }
extern nsresult
NS_NewAccessibilityService(nsIAccessibilityService** aResult);
%}

View File

@@ -0,0 +1,205 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Original Author: Eric D Vaughan (evaughan@netscape.com)
*
* Contributor(s):
*/
#include "nsISupports.idl"
[scriptable, uuid(B26FBE47-9A5F-42a1-822B-082461AE4D6D)]
interface nsIAccessible : nsISupports
{
/* Can't use these javascript can't tell us if properties are undefined
readonly attribute nsIAccessible accParent;
readonly attribute nsIAccessible accNextSibling;
readonly attribute nsIAccessible accPreviousSibling;
readonly attribute nsIAccessible accFirstChild;
readonly attribute nsIAccessible accLastChild;
readonly attribute long accChildCount;
attribute wstring accName;
attribute wstring accValue;
readonly attribute wstring accDescription;
readonly attribute wstring accRole;
readonly attribute unsigned long accState;
readonly attribute wstring accHelp;
readonly attribute wstring accDefaultAction;
readonly attribute boolean accFocused;
*/
nsIAccessible getAccParent();
nsIAccessible getAccNextSibling();
nsIAccessible getAccPreviousSibling();
nsIAccessible getAccFirstChild();
nsIAccessible getAccLastChild();
long getAccChildCount();
wstring getAccName();
wstring getAccValue();
void setAccName(in wstring name);
void setAccValue(in wstring value);
wstring getAccDescription();
wstring getAccRole();
unsigned long getAccState();
unsigned long getAccExtState();
wstring getAccDefaultAction();
wstring getAccHelp();
boolean getAccFocused();
nsIAccessible accGetAt(in long x, in long y);
nsIAccessible accNavigateRight();
nsIAccessible accNavigateLeft();
nsIAccessible accNavigateUp();
nsIAccessible accNavigateDown();
void accGetBounds(out long x,
out long y,
out long width,
out long height);
void accAddSelection();
void accRemoveSelection();
void accExtendSelection();
void accTakeSelection();
void accTakeFocus();
void accDoDefaultAction();
// MSAA State flags - used for bitfield. More than 1 allowed.
const unsigned long STATE_UNAVAILABLE = 0x00000001; // Disabled, maps to opposite of Java ENABLED, Gnome/ATK SENSITIVE?
const unsigned long STATE_SELECTED = 0x00000002;
const unsigned long STATE_FOCUSED = 0x00000004;
const unsigned long STATE_PRESSED = 0x00000008;
const unsigned long STATE_CHECKED = 0x00000010;
const unsigned long STATE_MIXED = 0x00000020; // 3-state checkbox or toolbar button
const unsigned long STATE_READONLY = 0x00000040; // Maps to opposite of Java/Gnome/ATK EDITABLE state
const unsigned long STATE_HOTTRACKED = 0x00000080;
const unsigned long STATE_DEFAULT = 0x00000100;
const unsigned long STATE_EXPANDED = 0x00000200;
const unsigned long STATE_COLLAPSED = 0x00000400;
const unsigned long STATE_BUSY = 0x00000800;
const unsigned long STATE_FLOATING = 0x00001000; // Children "owned" not "contained" by parent
const unsigned long STATE_MARQUEED = 0x00002000;
const unsigned long STATE_ANIMATED = 0x00004000;
const unsigned long STATE_INVISIBLE = 0x00008000;
const unsigned long STATE_OFFSCREEN = 0x00010000;
const unsigned long STATE_SIZEABLE = 0x00020000;
const unsigned long STATE_MOVEABLE = 0x00040000;
const unsigned long STATE_SELFVOICING = 0x00080000;
const unsigned long STATE_FOCUSABLE = 0x00100000;
const unsigned long STATE_SELECTABLE = 0x00200000;
const unsigned long STATE_LINKED = 0x00400000;
const unsigned long STATE_TRAVERSED = 0x00800000;
const unsigned long STATE_MULTISELECTABLE = 0x01000000; // Supports multiple selection
const unsigned long STATE_EXTSELECTABLE = 0x02000000; // Supports extended selection
const unsigned long STATE_ALERT_LOW = 0x04000000; // This information is of low priority
const unsigned long STATE_ALERT_MEDIUM = 0x08000000; // This information is of medium priority
const unsigned long STATE_ALERT_HIGH = 0x10000000; // This information is of high priority
const unsigned long STATE_PROTECTED = 0x20000000; // Maps to Gnome's *Role* ATK_ROLE_PASSWD_TEXT, nothing for Java?
const unsigned long STATE_HASPOPUP = 0x40000000; // New in MSAA 2.0
// Extended state flags (for now non-MSAA, for Java and Gnome/ATK support)
// This is only the states that there isn't already a mapping for in MSAA
// See www.accessmozilla.org/article.php?sid=11 for information on the mappings between accessibility API states
const unsigned long STATE_INVALID = 0x00200000; // No explanation given
const unsigned long STATE_ACTIVE = 0x00400000; // This window is currently the active window
const unsigned long STATE_EXPANDABLE = 0x00800000; // An item that can be expanded, such as a tree item with children
const unsigned long STATE_MODAL = 0x01000000; // Must do something with control before leaving it
const unsigned long STATE_MULTI_LINE = 0x02000000; // Edit control that can take multiple lines
const unsigned long STATE_SENSITIVE = 0x04000000; // No explanation given
const unsigned long STATE_RESIZABLE = 0x08000000; // Object can be resized
const unsigned long STATE_SHOWING = 0x10000000; // This object and all of it's ancestors are visible
const unsigned long STATE_SINGLE_LINE = 0x20000000; // This text object can only contain 1 line of text
const unsigned long STATE_TRANSIENT = 0x40000000; // Tells accessibility aid "Don't add event listener - this object doesn't generate any". For example, could be used with higher level containers.
const unsigned long STATE_VERTICAL = 0x80000000; // Especially used for sliders and scrollbars
/*
// MSAA Roles - only one per nsIAccessible or IAccessible
const unsigned long ROLE_TITLEBAR = 0x00000001;
const unsigned long ROLE_MENUBAR = 0x00000002;
const unsigned long ROLE_SCROLLBAR = 0x00000003;
const unsigned long ROLE_GRIP = 0x00000004;
const unsigned long ROLE_SOUND = 0x00000005;
const unsigned long ROLE_CURSOR = 0x00000006;
const unsigned long ROLE_CARET = 0x00000007;
const unsigned long ROLE_ALERT = 0x00000008;
const unsigned long ROLE_WINDOW = 0x00000009;
const unsigned long ROLE_CLIENT = 0x0000000A;
const unsigned long ROLE_MENUPOPUP = 0x0000000B;
const unsigned long ROLE_MENUITEM = 0x0000000C;
const unsigned long ROLE_TOOLTIP = 0x0000000D;
const unsigned long ROLE_APPLICATION = 0x0000000E;
const unsigned long ROLE_DOCUMENT = 0x0000000F;
const unsigned long ROLE_PANE = 0x00000010;
const unsigned long ROLE_CHART = 0x00000011;
const unsigned long ROLE_DIALOG = 0x00000012;
const unsigned long ROLE_BORDER = 0x00000013;
const unsigned long ROLE_GROUPING = 0x00000014;
const unsigned long ROLE_SEPARATOR = 0x00000015;
const unsigned long ROLE_TOOLBAR = 0x00000016;
const unsigned long ROLE_STATUSBAR = 0x00000017;
const unsigned long ROLE_TABLE = 0x00000018;
const unsigned long ROLE_COLUMNHEADER = 0x00000019;
const unsigned long ROLE_ROWHEADER = 0x0000001A;
const unsigned long ROLE_COLUMN = 0x0000001B;
const unsigned long ROLE_ROW = 0x0000001C;
const unsigned long ROLE_CELL = 0x0000001D;
const unsigned long ROLE_LINK = 0x0000001E;
const unsigned long ROLE_HELPBALLOON = 0x0000001F;
const unsigned long ROLE_CHARACTER = 0x00000020;
const unsigned long ROLE_LIST = 0x00000021;
const unsigned long ROLE_LISTITEM = 0x00000022;
const unsigned long ROLE_OUTLINE = 0x00000023;
const unsigned long ROLE_OUTLINEITEM = 0x00000024;
const unsigned long ROLE_PAGETAB = 0x00000025;
const unsigned long ROLE_PROPERTYPAGE = 0x00000026;
const unsigned long ROLE_INDICATOR = 0x00000027;
const unsigned long ROLE_GRAPHIC = 0x00000028;
const unsigned long ROLE_STATICTEXT = 0x00000029;
const unsigned long ROLE_TEXT = 0x0000002A; // Editable, selectable, etc.
const unsigned long ROLE_PUSHBUTTON = 0x0000002B;
const unsigned long ROLE_CHECKBUTTON = 0x0000002C;
const unsigned long ROLE_RADIOBUTTON = 0x0000002D;
const unsigned long ROLE_COMBOBOX = 0x0000002E;
const unsigned long ROLE_DROPLIST = 0x0000002F;
const unsigned long ROLE_PROGRESSBAR = 0x00000030;
const unsigned long ROLE_DIAL = 0x00000031;
const unsigned long ROLE_HOTKEYFIELD = 0x00000032;
const unsigned long ROLE_SLIDER = 0x00000033;
const unsigned long ROLE_SPINBUTTON = 0x00000034;
const unsigned long ROLE_DIAGRAM = 0x00000035;
const unsigned long ROLE_ANIMATION = 0x00000036;
const unsigned long ROLE_EQUATION = 0x00000037;
const unsigned long ROLE_BUTTONDROPDOWN = 0x00000038;
const unsigned long ROLE_BUTTONMENU = 0x00000039;
const unsigned long ROLE_BUTTONDROPDOWNGRID = 0x0000003A;
const unsigned long ROLE_WHITESPACE = 0x0000003B;
const unsigned long ROLE_PAGETABLIST = 0x0000003C;
const unsigned long ROLE_CLOCK = 0x0000003D;
const unsigned long ROLE_SPLITBUTTON = 0x0000003E; // New in MSAA 2.0
const unsigned long ROLE_IPADDRESS = 0x0000003F; // New in MSAA 2.0
*/
};

View File

@@ -0,0 +1,34 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Original Author: Eric D Vaughan (evaughan@netscape.com)
*
* Contributor(s):
*/
#include "nsISupports.idl"
#include "nsIAccessible.idl"
[scriptable, uuid(BEE49E7D-9D06-49bf-8984-1694C697D74F)]
interface nsIAccessibleEventListener : nsISupports
{
const unsigned long EVENT_FOCUS = 0x8005;
void handleEvent(in unsigned long aEvent, in nsIAccessible aTarget);
};

View File

@@ -0,0 +1,32 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Original Author: Eric D Vaughan (evaughan@netscape.com)
*
* Contributor(s):
*/
#include "nsIAccessibleEventListener.idl"
[scriptable, uuid(AB331E47-4FAA-4a12-9480-9B480DD78B39)]
interface nsIAccessibleEventReceiver : nsISupports
{
void addAccessibleEventListener(in nsIAccessibleEventListener aListener);
void removeAccessibleEventListener(in nsIAccessibleEventListener aListener);
};

View File

@@ -0,0 +1,36 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
* Contributor(s): pav
*/
#include "nsIAccessible.idl"
#include "nsIAtom.idl"
[scriptable, uuid(AD3274E5-9DD1-4614-81C8-BFF992869CBE)]
interface nsIMutableAccessible : nsIAccessible
{
void SetNameAsNodeValue();
void SetName(in wstring aName);
void SetNameAsAttribute(in nsIAtom aAtom);
void SetRole(in wstring aRole);
void SetIsLeaf(in boolean aLeaf);
};

View File

@@ -0,0 +1,49 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = accessibility
LIBRARY_NAME = accessibility_s
REQUIRES = xpcom string layout widget dom view locale gfx2
CPPSRCS = \
nsAccessible.cpp \
nsAccessibilityService.cpp \
nsMutableAccessible.cpp \
nsRootAccessible.cpp \
nsHTMLFormControlAccessible.cpp \
nsHTMLTextAccessible.cpp \
nsSelectAccessible.cpp \
nsGenericAccessible.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
override NO_SHARED_LIB=1
override NO_STATIC_LIB=
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,252 @@
/* -*- 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.
*
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
* Contributor(s):
*/
#include "nsIAccessibilityService.h"
#include "nsAccessibilityService.h"
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsRootAccessible.h"
#include "nsINameSpaceManager.h"
#include "nsMutableAccessible.h"
#include "nsHTMLFormControlAccessible.h"
#include "nsLayoutAtoms.h"
#include "nsSelectAccessible.h"
#include "nsHTMLTextAccessible.h"
//--------------------
nsAccessibilityService::nsAccessibilityService()
{
NS_INIT_REFCNT();
}
nsAccessibilityService::~nsAccessibilityService()
{
}
NS_IMPL_THREADSAFE_ISUPPORTS1(nsAccessibilityService, nsIAccessibilityService);
////////////////////////////////////////////////////////////////////////////////
// nsIAccessibilityService methods:
NS_IMETHODIMP
nsAccessibilityService::CreateRootAccessible(nsISupports* aPresContext, nsISupports* aFrame, nsIAccessible **_retval)
{
nsIFrame* f = NS_STATIC_CAST(nsIFrame*, aFrame);
nsCOMPtr<nsIPresContext> c = do_QueryInterface(aPresContext);
NS_ASSERTION(c,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> s;
c->GetShell(getter_AddRefs(s));
NS_ASSERTION(s,"Error not presshell!!");
nsCOMPtr<nsIWeakReference> wr = getter_AddRefs(NS_GetWeakReference(s));
*_retval = new nsRootAccessible(wr,f);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP
nsAccessibilityService::CreateMutableAccessible(nsISupports* aNode, nsIMutableAccessible **_retval)
{
*_retval = new nsMutableAccessible(aNode);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLBlockAccessible(nsIAccessible* aAccessible, nsIDOMNode* node, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIContent> n = do_QueryInterface(node);
NS_ASSERTION(n,"Error non nsIContent passed to accessible factory!!!");
nsCOMPtr<nsIPresContext> c = do_QueryInterface(aPresContext);
NS_ASSERTION(c,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> s;
c->GetShell(getter_AddRefs(s));
NS_ASSERTION(s,"Error not presshell!!");
nsCOMPtr<nsIWeakReference> wr = getter_AddRefs(NS_GetWeakReference(s));
*_retval = new nsHTMLBlockAccessible(aAccessible, n,wr);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLSelectAccessible(nsIAtom* aPopupAtom, nsIDOMNode* node, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIContent> n = do_QueryInterface(node);
NS_ASSERTION(n,"Error non nsIContent passed to accessible factory!!!");
nsCOMPtr<nsIPresContext> c = do_QueryInterface(aPresContext);
NS_ASSERTION(c,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> s;
c->GetShell(getter_AddRefs(s));
nsCOMPtr<nsIWeakReference> wr = getter_AddRefs(NS_GetWeakReference(s));
*_retval = new nsSelectAccessible(aPopupAtom, nsnull, n, wr);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
/* nsIAccessible createHTMLCheckboxAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLCheckboxAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIPresShell> shell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(shell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLCheckboxAccessible(shell,node);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
/* nsIAccessible createHTMLCheckboxAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLRadioButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIPresShell> shell;
GetInfo(aFrame, &frame, getter_AddRefs(shell), getter_AddRefs(node));
*_retval = new nsHTMLRadioButtonAccessible(shell,node);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
/* nsIAccessible createHTMLCheckboxAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIPresShell> shell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(shell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLButtonAccessible(shell,node);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
/* nsIAccessible createHTMLTextAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTextAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIPresShell> shell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(shell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLTextAccessible(shell, node);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP nsAccessibilityService::GetInfo(nsISupports* aFrame, nsIFrame** aRealFrame, nsIPresShell** aShell, nsIDOMNode** aNode)
{
*aRealFrame = NS_STATIC_CAST(nsIFrame*, aFrame);
nsCOMPtr<nsIContent> content;
(*aRealFrame)->GetContent(getter_AddRefs(content));
nsCOMPtr<nsIDOMNode> node = do_QueryInterface(content);
*aNode = node;
NS_ADDREF(*aNode);
nsCOMPtr<nsIDocument> document;
content->GetDocument(*getter_AddRefs(document));
#ifdef DEBUG
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
#endif
*aShell = document->GetShellAt(0);
NS_IF_ADDREF(*aShell);
return NS_OK;
}
//////////////////////////////////////////////////////////////////////
nsresult
NS_NewAccessibilityService(nsIAccessibilityService** aResult)
{
NS_PRECONDITION(aResult != nsnull, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
nsAccessibilityService* a = new nsAccessibilityService();
if (a == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(a);
*aResult = a;
return NS_OK;
}

View File

@@ -0,0 +1,53 @@
/* -*- 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.
*
*
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
* Contributor(s):
*/
#ifndef __nsAccessibilityService_h__
#define __nsAccessibilityService_h__
#include "nsIAccessibilityService.h"
class nsIFrame;
class nsIPresShell;
class nsIDOMNode;
class nsAccessibilityService : public nsIAccessibilityService
{
public:
NS_DECL_ISUPPORTS
// nsIAccessibilityService methods:
NS_DECL_NSIACCESSIBILITYSERVICE
// nsAccessibilityService methods:
nsAccessibilityService();
virtual ~nsAccessibilityService();
public:
private:
NS_IMETHOD GetInfo(nsISupports* aFrame, nsIFrame** aRealFrame, nsIPresShell** aShell, nsIDOMNode** aContent);
};
#endif /* __nsIccessibilityService_h__ */

View File

@@ -0,0 +1,968 @@
/* -*- 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):
*/
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsIScrollableView.h"
#include "nsRootAccessible.h"
//#define DEBUG_LEAKS
#ifdef DEBUG_LEAKS
static gnsAccessibles = 0;
#endif
class nsFrameTreeWalker {
public:
nsFrameTreeWalker(nsIPresContext* aPresContext, nsAccessible* aOwner);
nsIFrame* GetNextSibling(nsIFrame* aFrame);
nsIFrame* GetPreviousSibling(nsIFrame* aFrame);
nsIFrame* GetParent(nsIFrame* aFrame);
nsIFrame* GetFirstChild(nsIFrame* aFrame);
nsIFrame* GetLastChild(nsIFrame* aFrame);
nsIFrame* GetChildBefore(nsIFrame* aParent, nsIFrame* aChild);
PRInt32 GetCount(nsIFrame* aFrame);
static PRBool IsSameContent(nsIFrame* aFrame1, nsIFrame* aFrame2);
static void GetAccessible(nsIFrame* aFrame, nsCOMPtr<nsIAccessible>& aAccessible, nsCOMPtr<nsIContent>& aContent);
nsCOMPtr<nsIPresContext> mPresContext;
nsCOMPtr<nsIAccessible> mAccessible;
nsCOMPtr<nsIContent> mContent;
nsAccessible* mOwner;
};
nsFrameTreeWalker::nsFrameTreeWalker(nsIPresContext* aPresContext, nsAccessible* aOwner)
{
mPresContext = aPresContext;
mOwner = aOwner;
}
nsIFrame* nsFrameTreeWalker::GetParent(nsIFrame* aFrame)
{
//printf("Get parent\n");
nsIFrame* parent = nsnull;
aFrame->GetParent(&parent);
// if no parent then we hit the root
// just return that top frame
if (!parent) {
mAccessible = nsnull;
mContent = nsnull;
return aFrame;
}
GetAccessible(parent, mAccessible, mContent);
if (mAccessible)
return parent;
return GetParent(parent);
}
nsIFrame* nsFrameTreeWalker::GetNextSibling(nsIFrame* aFrame)
{
//printf("Get next\n");
// get next sibling
nsIFrame* next = nsnull;
aFrame->GetNextSibling(&next);
// skip any frames with the same content node
while(IsSameContent(aFrame,next))
next->GetNextSibling(&next);
// if failed
if (!next)
{
// if parent has content
nsIFrame* parent = nsnull;
aFrame->GetParent(&parent);
// if no parent fail
if (!parent) {
mAccessible = nsnull;
mContent = nsnull;
return nsnull;
}
// fail if we reach a parent that is accessible
GetAccessible(parent, mAccessible, mContent);
if (mAccessible)
{
// fail
mAccessible = nsnull;
mContent = nsnull;
return nsnull;
} else {
// next on parent
return GetNextSibling(parent);
}
}
// if next has content
GetAccessible(next, mAccessible, mContent);
if (mAccessible)
{
// done
return next;
}
// if next doesn't have node
// call first on next
nsIFrame* first = GetFirstChild(next);
// if found
if (first)
return first;
// call next on next
return GetNextSibling(next);
}
nsIFrame* nsFrameTreeWalker::GetFirstChild(nsIFrame* aFrame)
{
//printf("Get first\n");
// get first child
nsIFrame* child = nsnull;
nsIAtom* list = nsnull;
mOwner->GetListAtomForFrame(aFrame, list);
aFrame->FirstChild(mPresContext, list, &child);
while(child)
{
// if first has a content node
GetAccessible(child, mAccessible, mContent);
if (mAccessible)
{
// done
return child;
} else {
// call first on child
nsIFrame* first = GetFirstChild(child);
// if succeeded
if (first)
{
// return child
return first;
}
}
// get next sibling
nsIFrame* next;
child->GetNextSibling(&next);
// skip children with duplicate content nodes
while(IsSameContent(child,next))
next->GetNextSibling(&next);
child = next;
}
// fail
mAccessible = nsnull;
mContent = nsnull;
return nsnull;
}
nsIFrame* nsFrameTreeWalker::GetChildBefore(nsIFrame* aParent, nsIFrame* aChild)
{
nsIFrame* child = GetFirstChild(aParent);
// if the child is not us
if (child == aChild) {
mAccessible = nsnull;
mContent = nsnull;
return nsnull;
}
nsIFrame* prev = child;
nsCOMPtr<nsIContent> prevContent = mContent;
nsCOMPtr<nsIAccessible> prevAccessible = mAccessible;
while(child)
{
child = GetNextSibling(child);
if (child == aChild)
break;
prev = child;
prevContent = mContent;
prevAccessible = mAccessible;
}
mAccessible = prevAccessible;
mContent = prevContent;
return prev;
}
nsIFrame* nsFrameTreeWalker::GetPreviousSibling(nsIFrame* aFrame)
{
//printf("Get previous\n");
nsIFrame* parent = GetParent(aFrame);
return GetChildBefore(parent, aFrame);
}
nsIFrame* nsFrameTreeWalker::GetLastChild(nsIFrame* aFrame)
{
//printf("Get last\n");
return GetChildBefore(aFrame, nsnull);
}
PRInt32 nsFrameTreeWalker::GetCount(nsIFrame* aFrame)
{
//printf("Get count\n");
nsIFrame* child = GetFirstChild(aFrame);
PRInt32 count = 0;
while(child)
{
count++;
child = GetNextSibling(child);
}
return count;
}
void nsFrameTreeWalker::GetAccessible(nsIFrame* aFrame, nsCOMPtr<nsIAccessible>& aAccessible, nsCOMPtr<nsIContent>& aContent)
{
aContent = nsnull;
aAccessible = nsnull;
aFrame->GetContent(getter_AddRefs(aContent));
if (!aContent)
return;
nsCOMPtr<nsIDocument> document;
aContent->GetDocument(*getter_AddRefs(document));
if (!document)
return;
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
nsIPresShell* shell = document->GetShellAt(0);
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(aContent, &frame);
if (!frame)
return;
aAccessible = do_QueryInterface(aFrame);
if (!aAccessible)
aAccessible = do_QueryInterface(aContent);
if (aAccessible)
printf("Found accessible!\n");
}
PRBool nsFrameTreeWalker::IsSameContent(nsIFrame* aFrame1, nsIFrame* aFrame2)
{
if (!aFrame1 || !aFrame2)
return PR_FALSE;
nsCOMPtr<nsIContent> content1;
nsCOMPtr<nsIContent> content2;
aFrame1->GetContent(getter_AddRefs(content1));
aFrame2->GetContent(getter_AddRefs(content2));
if (content1 == content2 && content1 != nsnull)
return PR_TRUE;
return PR_FALSE;
}
/*
* Class nsAccessible
*/
//-----------------------------------------------------
// construction
//-----------------------------------------------------
nsAccessible::nsAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_INIT_REFCNT();
// get frame and node
mContent = aContent;
mAccessible = aAccessible;
mPresShell = aShell;
#ifdef DEBUG_LEAKS
printf("nsAccessibles=%d\n", ++gnsAccessibles);
#endif
}
//-----------------------------------------------------
// destruction
//-----------------------------------------------------
nsAccessible::~nsAccessible()
{
#ifdef DEBUG_LEAKS
printf("nsAccessibles=%d\n", --gnsAccessibles);
#endif
}
//NS_IMPL_ISUPPORTS2(nsAccessible, nsIAccessible, nsIAccessibleWidgetAccess);
NS_IMPL_ISUPPORTS1(nsAccessible, nsIAccessible);
/* readonly attribute nsIAccessible accParent; */
NS_IMETHODIMP nsAccessible::GetAccParent(nsIAccessible * *aAccParent)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccParent(aAccParent);
if (NS_SUCCEEDED(rv))
return rv;
}
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
// failed? Lets do some default behavior
walker.GetParent(GetFrame());
// if no content or accessible then we hit the root
if (!walker.mContent || !walker.mAccessible)
{
*aAccParent = new nsRootAccessible(mPresShell);
NS_ADDREF(*aAccParent);
return NS_OK;
}
*aAccParent = CreateNewParentAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccParent);
return NS_OK;
}
*aAccParent = nsnull;
return NS_OK;
}
/* readonly attribute nsIAccessible accNextSibling; */
NS_IMETHODIMP nsAccessible::GetAccNextSibling(nsIAccessible * *aAccNextSibling)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccNextSibling(aAccNextSibling);
if (NS_SUCCEEDED(rv))
return rv;
}
// failed? Lets do some default behavior
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
nsIFrame* next = walker.GetNextSibling(GetFrame());
if (next && walker.mAccessible && walker.mContent)
{
*aAccNextSibling = CreateNewNextAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccNextSibling);
return NS_OK;
}
}
*aAccNextSibling = nsnull;
return NS_OK;
}
/* readonly attribute nsIAccessible accPreviousSibling; */
NS_IMETHODIMP nsAccessible::GetAccPreviousSibling(nsIAccessible * *aAccPreviousSibling)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccPreviousSibling(aAccPreviousSibling);
if (NS_SUCCEEDED(rv))
return rv;
}
// failed? Lets do some default behavior
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
nsIFrame* prev = walker.GetPreviousSibling(GetFrame());
if (prev && walker.mAccessible && walker.mContent)
{
*aAccPreviousSibling = CreateNewPreviousAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccPreviousSibling);
return NS_OK;
}
}
*aAccPreviousSibling = nsnull;
return NS_OK;
}
/* readonly attribute nsIAccessible accFirstChild; */
NS_IMETHODIMP nsAccessible::GetAccFirstChild(nsIAccessible * *aAccFirstChild)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccFirstChild(aAccFirstChild);
if (NS_SUCCEEDED(rv))
return rv;
}
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
nsIFrame* child = walker.GetFirstChild(GetFrame());
if (child && walker.mAccessible && walker.mContent)
{
*aAccFirstChild = CreateNewFirstAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccFirstChild);
return NS_OK;
}
}
*aAccFirstChild = nsnull;
return NS_OK;
}
/* readonly attribute nsIAccessible accFirstChild; */
NS_IMETHODIMP nsAccessible::GetAccLastChild(nsIAccessible * *aAccLastChild)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccLastChild(aAccLastChild);
if (NS_SUCCEEDED(rv))
return rv;
}
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
nsIFrame* last = walker.GetLastChild(GetFrame());
if (last && walker.mAccessible && walker.mContent)
{
*aAccLastChild = CreateNewLastAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccLastChild);
return NS_OK;
}
}
*aAccLastChild = nsnull;
return NS_OK;
}
/* readonly attribute long accChildCount; */
NS_IMETHODIMP nsAccessible::GetAccChildCount(PRInt32 *aAccChildCount)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccChildCount(aAccChildCount);
if (NS_SUCCEEDED(rv))
return rv;
}
// failed? Lets do some default behavior
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
*aAccChildCount = walker.GetCount(GetFrame());
} else
*aAccChildCount = 0;
return NS_OK;
}
/* attribute wstring accName; */
NS_IMETHODIMP nsAccessible::GetAccName(PRUnichar * *aAccName)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccName(aAccName);
if (NS_SUCCEEDED(rv) && *aAccName != nsnull)
return rv;
}
*aAccName = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute wstring accName; */
NS_IMETHODIMP nsAccessible::GetAccDefaultAction(PRUnichar * *aDefaultAction)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccDefaultAction(aDefaultAction);
if (NS_SUCCEEDED(rv) && *aDefaultAction != nsnull)
return rv;
}
*aDefaultAction = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAccessible::SetAccName(const PRUnichar * aAccName)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->SetAccName(aAccName);
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute wstring accValue; */
NS_IMETHODIMP nsAccessible::GetAccValue(PRUnichar * *aAccValue)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccValue(aAccValue);
if (NS_SUCCEEDED(rv) && *aAccValue != nsnull)
return rv;
}
*aAccValue = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAccessible::SetAccValue(const PRUnichar * aAccValue) { return NS_ERROR_NOT_IMPLEMENTED; }
/* readonly attribute wstring accDescription; */
NS_IMETHODIMP nsAccessible::GetAccDescription(PRUnichar * *aAccDescription)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccDescription(aAccDescription);
if (NS_SUCCEEDED(rv) && *aAccDescription != nsnull)
return rv;
}
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring accRole; */
NS_IMETHODIMP nsAccessible::GetAccRole(PRUnichar * *aAccRole)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccRole(aAccRole);
if (NS_SUCCEEDED(rv) && *aAccRole != nsnull)
return rv;
}
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring accState; */
NS_IMETHODIMP nsAccessible::GetAccState(PRUint32 *aAccState)
{
// delegate
if (mAccessible)
return mAccessible->GetAccState(aAccState);
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAccessible::GetAccExtState(PRUint32 *aAccExtState)
{
// delegate
if (mAccessible)
return mAccessible->GetAccExtState(aAccExtState);
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring accHelp; */
NS_IMETHODIMP nsAccessible::GetAccHelp(PRUnichar * *aAccHelp)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccHelp(aAccHelp);
if (NS_SUCCEEDED(rv) && *aAccHelp != nsnull)
return rv;
}
// failed? Lets do some default behavior
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean accFocused; */
NS_IMETHODIMP nsAccessible::GetAccFocused(PRBool *aAccFocused) { return NS_OK; }
/* nsIAccessible accGetChildAt (in long x, in long y); */
NS_IMETHODIMP nsAccessible::AccGetAt(PRInt32 tx, PRInt32 ty, nsIAccessible **_retval)
{
PRInt32 x,y,w,h;
AccGetBounds(&x,&y,&w,&h);
if (tx > x && tx < x + w && ty > y && ty < y + h)
{
nsCOMPtr<nsIAccessible> child;
nsCOMPtr<nsIAccessible> next;
GetAccFirstChild(getter_AddRefs(child));
PRInt32 cx,cy,cw,ch;
while(child) {
child->AccGetBounds(&cx,&cy,&cw,&ch);
if (tx > cx && tx < cx + cw && ty > cy && ty < cy + ch)
{
*_retval = child;
NS_ADDREF(*_retval);
return NS_OK;
}
child->GetAccNextSibling(getter_AddRefs(next));
child = next;
}
*_retval = this;
NS_ADDREF(this);
return NS_OK;
}
*_retval = nsnull;
return NS_OK;
}
/* void accNavigateRight (); */
NS_IMETHODIMP nsAccessible::AccNavigateRight(nsIAccessible **_retval) { return NS_OK; }
/* void navigateLeft (); */
NS_IMETHODIMP nsAccessible::AccNavigateLeft(nsIAccessible **_retval) { return NS_OK; }
/* void navigateUp (); */
NS_IMETHODIMP nsAccessible::AccNavigateUp(nsIAccessible **_retval) { return NS_OK; }
/* void navigateDown (); */
NS_IMETHODIMP nsAccessible::AccNavigateDown(nsIAccessible **_retval) { return NS_OK; }
/* void addSelection (); */
NS_IMETHODIMP nsAccessible::AccAddSelection(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccAddSelection();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void removeSelection (); */
NS_IMETHODIMP nsAccessible::AccRemoveSelection(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccRemoveSelection();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void extendSelection (); */
NS_IMETHODIMP nsAccessible::AccExtendSelection(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccExtendSelection();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void takeSelection (); */
NS_IMETHODIMP nsAccessible::AccTakeSelection(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccTakeSelection();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void takeFocus (); */
NS_IMETHODIMP nsAccessible::AccTakeFocus(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccTakeFocus();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void doDefaultAction (); */
NS_IMETHODIMP nsAccessible::AccDoDefaultAction(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccDoDefaultAction();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void accGetBounds (out long x, out long y, out long width, out long height); */
NS_IMETHODIMP nsAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
nsIFrame* frame = GetBoundsFrame();
if (!frame || !context)
{
*x = *y = *width = *height = 0;
return NS_OK;
}
// sum up all rects of frames with the same content node
nsRect r;
nsIFrame* start = frame;
nsIFrame* next = nsnull;
start->GetNextSibling(&next);
start->GetRect(r);
while (nsFrameTreeWalker::IsSameContent(start, next))
{
nsRect r2;
next->GetRect(r2);
r.UnionRect(r,r2);
next->GetNextSibling(&next);
}
nsPoint offset(r.x,r.y);
frame->GetParent(&frame);
nsPoint pos(0,0);
while(frame) {
nsIScrollableView* scrollingView;
nsIView* view;
// XXX hack
frame->GetView(context, &view);
if (view) {
nsresult result = view->QueryInterface(NS_GET_IID(nsIScrollableView), (void**)&scrollingView);
if (NS_SUCCEEDED(result)) {
nscoord xoff = 0;
nscoord yoff = 0;
scrollingView->GetScrollPosition(xoff, yoff);
offset.x -= xoff;
offset.y -= yoff;
}
}
frame->GetOrigin(pos);
offset += pos;
frame->GetParent(&frame);
}
float t2p;
context->GetTwipsToPixels(&t2p);
*x = (PRInt32)(offset.x*t2p);
*y = (PRInt32)(offset.y*t2p);
*width = (PRInt32)(r.width*t2p);
*height = (PRInt32)(r.height*t2p);
return NS_OK;
}
// helpers
nsIFrame* nsAccessible::GetBoundsFrame()
{
return GetFrame();
}
nsIFrame* nsAccessible::GetFrame()
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(mContent, &frame);
return frame;
}
void nsAccessible::GetPresContext(nsCOMPtr<nsIPresContext>& aContext)
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
if (shell) {
shell->GetPresContext(getter_AddRefs(aContext));
} else
aContext = nsnull;
}
nsIAccessible* nsAccessible::CreateNewNextAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewPreviousAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewParentAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsAccessible(aAccessible, aContent, aShell);
}
// ------- nsHTMLBlockAccessible ------
nsHTMLBlockAccessible::nsHTMLBlockAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell):nsAccessible(aAccessible, aContent, aShell)
{
}
nsIAccessible* nsHTMLBlockAccessible::CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsHTMLBlockAccessible(aAccessible, aContent, aShell);
}
/* nsIAccessible accGetAt (in long x, in long y); */
NS_IMETHODIMP nsHTMLBlockAccessible::AccGetAt(PRInt32 tx, PRInt32 ty, nsIAccessible **_retval)
{
PRInt32 x,y,w,h;
AccGetBounds(&x,&y,&w,&h);
if (tx > x && tx < x + w && ty > y && ty < y + h)
{
nsCOMPtr<nsIAccessible> child;
nsCOMPtr<nsIAccessible> smallestChild;
PRInt32 smallestArea = -1;
nsCOMPtr<nsIAccessible> next;
GetAccFirstChild(getter_AddRefs(child));
PRInt32 cx,cy,cw,ch;
while(child) {
child->AccGetBounds(&cx,&cy,&cw,&ch);
// ok if there are multiple frames the contain the point
// and they overlap then pick the smallest. We need to do this
// for text frames.
if (tx > cx && tx < cx + cw && ty > cy && ty < cy + ch)
{
if (smallestArea == -1 || cw*ch < smallestArea) {
smallestArea = cw*ch;
smallestChild = child;
}
}
child->GetAccNextSibling(getter_AddRefs(next));
child = next;
}
if (smallestChild != nsnull)
{
*_retval = smallestChild;
NS_ADDREF(*_retval);
return NS_OK;
}
*_retval = this;
NS_ADDREF(this);
return NS_OK;
}
*_retval = nsnull;
return NS_OK;
}

View File

@@ -0,0 +1,79 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.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 _nsAccessible_H_
#define _nsAccessible_H_
#include "nsISupports.h"
#include "nsIAccessible.h"
#include "nsCOMPtr.h"
#include "nsIContent.h"
#include "nsIDOMNode.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsWeakReference.h"
class nsIFrame;
class nsAccessible : public nsIAccessible
// public nsIAccessibleWidgetAccess
{
NS_DECL_ISUPPORTS
// nsIAccessibilityService methods:
NS_DECL_NSIACCESSIBLE
//NS_IMETHOD AccGetWidget(nsIWidget**);
public:
nsAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsAccessible();
virtual void GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList) { aList = nsnull; }
protected:
virtual nsIFrame* GetFrame();
virtual nsIFrame* GetBoundsFrame();
virtual void GetPresContext(nsCOMPtr<nsIPresContext>& aContext);
virtual nsIAccessible* CreateNewNextAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewPreviousAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewParentAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
nsCOMPtr<nsIContent> mContent;
nsCOMPtr<nsIWeakReference> mPresShell;
nsCOMPtr<nsIAccessible> mAccessible;
};
/* Special Accessible that knows how to handle hit detection for flowing text */
class nsHTMLBlockAccessible : public nsAccessible
{
public:
nsHTMLBlockAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
NS_IMETHOD AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval);
protected:
virtual nsIAccessible* CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aFrame, nsIWeakReference* aShell);
};
#endif

View File

@@ -0,0 +1,335 @@
/* -*- 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.
*
* Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#include "nsGenericAccessible.h"
#include "nsIEventStateManager.h"
#include "nsIFrame.h"
#include "nsCOMPtr.h"
#include "nsIWeakReference.h"
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsGenericAccessible, nsIAccessible)
nsGenericAccessible::nsGenericAccessible()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}
nsGenericAccessible::~nsGenericAccessible()
{
/* destructor code */
}
/* nsIAccessible getAccParent (); */
NS_IMETHODIMP nsGenericAccessible::GetAccParent(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccNextSibling (); */
NS_IMETHODIMP nsGenericAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccPreviousSibling (); */
NS_IMETHODIMP nsGenericAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsGenericAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsGenericAccessible::GetAccLastChild(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsGenericAccessible::GetAccChildCount(PRInt32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccName (); */
NS_IMETHODIMP nsGenericAccessible::GetAccName(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccValue (); */
NS_IMETHODIMP nsGenericAccessible::GetAccValue(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAccName (in wstring name); */
NS_IMETHODIMP nsGenericAccessible::SetAccName(const PRUnichar *name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAccValue (in wstring value); */
NS_IMETHODIMP nsGenericAccessible::SetAccValue(const PRUnichar *value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccDescription (); */
NS_IMETHODIMP nsGenericAccessible::GetAccDescription(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsGenericAccessible::GetAccRole(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccState (); */
NS_IMETHODIMP nsGenericAccessible::GetAccState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccDefaultAction (); */
NS_IMETHODIMP nsGenericAccessible::GetAccDefaultAction(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccHelp (); */
NS_IMETHODIMP nsGenericAccessible::GetAccHelp(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean getAccFocused (); */
NS_IMETHODIMP nsGenericAccessible::GetAccFocused(PRBool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accGetAt (in long x, in long y); */
NS_IMETHODIMP nsGenericAccessible::AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateRight (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateRight(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateLeft (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateLeft(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateUp (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateUp(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateDown (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateDown(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accGetBounds (out long x, out long y, out long width, out long height); */
NS_IMETHODIMP nsGenericAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accAddSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccAddSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accRemoveSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccRemoveSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accExtendSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccExtendSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accTakeSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccTakeSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accTakeFocus (); */
NS_IMETHODIMP nsGenericAccessible::AccTakeFocus()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accDoDefaultAction (); */
NS_IMETHODIMP nsGenericAccessible::AccDoDefaultAction()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getAccExtState (); */
NS_IMETHODIMP nsGenericAccessible::GetAccExtState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//-------------
// nsDOMAccessible
//-------------
nsDOMAccessible::nsDOMAccessible(nsIPresShell* aShell, nsIDOMNode* aNode)
{
mPresShell = getter_AddRefs(NS_GetWeakReference(aShell));
mNode = aNode;
}
/* void accRemoveSelection (); */
NS_IMETHODIMP nsDOMAccessible::AccRemoveSelection()
{
nsCOMPtr<nsISelectionController> control = do_QueryReferent(mPresShell);
nsCOMPtr<nsISelection> selection;
nsresult rv = control->GetSelection(nsISelectionController::SELECTION_NORMAL, getter_AddRefs(selection));
if (NS_FAILED(rv))
return rv;
nsCOMPtr<nsIDOMNode> parent;
rv = mNode->GetParentNode(getter_AddRefs(parent));
if (NS_FAILED(rv))
return rv;
rv = selection->Collapse(parent, 0);
if (NS_FAILED(rv))
return rv;
return NS_OK;
}
/* void accTakeSelection (); */
NS_IMETHODIMP nsDOMAccessible::AccTakeSelection()
{
nsCOMPtr<nsISelectionController> control = do_QueryReferent(mPresShell);
nsCOMPtr<nsISelection> selection;
nsresult rv = control->GetSelection(nsISelectionController::SELECTION_NORMAL, getter_AddRefs(selection));
if (NS_FAILED(rv))
return rv;
nsCOMPtr<nsIDOMNode> parent;
rv = mNode->GetParentNode(getter_AddRefs(parent));
if (NS_FAILED(rv))
return rv;
PRInt32 offsetInParent = 0;
nsCOMPtr<nsIDOMNode> child;
rv = parent->GetFirstChild(getter_AddRefs(child));
if (NS_FAILED(rv))
return rv;
nsCOMPtr<nsIDOMNode> next;
while(child)
{
if (child == mNode) {
// Collapse selection to just before desired element,
rv = selection->Collapse(parent, offsetInParent);
if (NS_FAILED(rv))
return rv;
// then extend it to just after
rv = selection->Extend(parent, offsetInParent+1);
return rv;
}
child->GetNextSibling(getter_AddRefs(next));
child = next;
offsetInParent++;
}
// didn't find a child
return NS_ERROR_FAILURE;
}
/* void accTakeFocus (); */
NS_IMETHODIMP nsDOMAccessible::AccTakeFocus()
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsCOMPtr<nsIPresContext> context;
shell->GetPresContext(getter_AddRefs(context));
nsCOMPtr<nsIContent> content = do_QueryInterface(mNode);
content->SetFocus(context);
return NS_OK;
}
//-------------
// nsLeafFrameAccessible
//-------------
nsLeafDOMAccessible::nsLeafDOMAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsDOMAccessible(aShell, aNode)
{
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsLeafDOMAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsLeafDOMAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsLeafDOMAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}

View File

@@ -0,0 +1,84 @@
/* -*- 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.
*
* Author: Eric D Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#ifndef _nsGenericAccessible_H_
#define _nsGenericAccessible_H_
#include "nsISupports.h"
#include "nsIAccessible.h"
#include "nsIContent.h"
#include "nsIDOMNode.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsCOMPtr.h"
class nsIWeakReference;
/**
* Basic implementation
* supports nothing
*/
class nsGenericAccessible : public nsIAccessible
{
NS_DECL_ISUPPORTS
NS_DECL_NSIACCESSIBLE
public:
nsGenericAccessible();
virtual ~nsGenericAccessible();
};
/**
* And accessible that observes a dom node
* supports:
* - selection
* - focus
*/
class nsDOMAccessible : public nsGenericAccessible
{
public:
nsDOMAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD AccTakeSelection(void);
NS_IMETHOD AccTakeFocus(void);
NS_IMETHOD AccRemoveSelection(void);
protected:
nsIWeakReference* mPresShell;
nsCOMPtr<nsIDOMNode> mNode;
};
/* Leaf version of DOM Accessible
* has no children
*/
class nsLeafDOMAccessible : public nsDOMAccessible
{
public:
nsLeafDOMAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
};
#endif

View File

@@ -0,0 +1,199 @@
/* -*- 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):
*/
#include "nsRootAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMElement.h"
#include "nsIDOMEventReceiver.h"
#include "nsReadableUtils.h"
NS_INTERFACE_MAP_BEGIN(nsRootAccessible)
NS_INTERFACE_MAP_ENTRY(nsIAccessibleEventReceiver)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIAccessibleEventReceiver)
NS_INTERFACE_MAP_END_INHERITING(nsAccessible)
NS_IMPL_ADDREF_INHERITED(nsRootAccessible, nsAccessible);
NS_IMPL_RELEASE_INHERITED(nsRootAccessible, nsAccessible);
//-----------------------------------------------------
// construction
//-----------------------------------------------------
nsRootAccessible::nsRootAccessible(nsIWeakReference* aShell, nsIFrame* aFrame):nsAccessible(nsnull,nsnull,aShell)
{
// mFrame = aFrame;
mListener = nsnull;
}
//-----------------------------------------------------
// destruction
//-----------------------------------------------------
nsRootAccessible::~nsRootAccessible()
{
RemoveAccessibleEventListener(mListener);
}
/* attribute wstring accName; */
NS_IMETHODIMP nsRootAccessible::GetAccName(PRUnichar * *aAccName)
{
*aAccName = ToNewUnicode(NS_LITERAL_STRING("Mozilla Document"));
return NS_OK;
}
// helpers
nsIFrame* nsRootAccessible::GetFrame()
{
//if (!mFrame) {
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsIFrame* root = nsnull;
if (shell)
shell->GetRootFrame(&root);
return root;
//}
// return mFrame;
}
nsIAccessible* nsRootAccessible::CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return new nsHTMLBlockAccessible(aAccessible, aContent, aShell);
}
/* readonly attribute nsIAccessible accParent; */
NS_IMETHODIMP nsRootAccessible::GetAccParent(nsIAccessible * *aAccParent)
{
*aAccParent = nsnull;
return NS_OK;
}
/* readonly attribute wstring accRole; */
NS_IMETHODIMP nsRootAccessible::GetAccRole(PRUnichar * *aAccRole)
{
*aAccRole = ToNewUnicode(NS_LITERAL_STRING("client"));
return NS_OK;
}
/* void addAccessibleEventListener (in nsIAccessibleEventListener aListener); */
NS_IMETHODIMP nsRootAccessible::AddAccessibleEventListener(nsIAccessibleEventListener *aListener)
{
if (!mListener)
{
// add an event listener to the document
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsCOMPtr<nsIDocument> document;
shell->GetDocument(getter_AddRefs(document));
nsCOMPtr<nsIDOMEventReceiver> receiver;
if (NS_SUCCEEDED(document->QueryInterface(NS_GET_IID(nsIDOMEventReceiver), getter_AddRefs(receiver))) && receiver)
{
nsresult rv = receiver->AddEventListenerByIID(NS_STATIC_CAST(nsIDOMFocusListener *, this), NS_GET_IID(nsIDOMFocusListener));
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
}
}
// create a weak reference to the listener
mListener = aListener;
return NS_OK;
}
/* void removeAccessibleEventListener (in nsIAccessibleEventListener aListener); */
NS_IMETHODIMP nsRootAccessible::RemoveAccessibleEventListener(nsIAccessibleEventListener *aListener)
{
if (mListener)
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsCOMPtr<nsIDocument> document;
if (!shell)
return NS_OK;
shell->GetDocument(getter_AddRefs(document));
nsCOMPtr<nsIDOMEventReceiver> erP;
if (NS_SUCCEEDED(document->QueryInterface(NS_GET_IID(nsIDOMEventReceiver), getter_AddRefs(erP))) && erP)
{
nsresult rv = erP->RemoveEventListenerByIID(NS_STATIC_CAST(nsIDOMFocusListener *, this), NS_GET_IID(nsIDOMFocusListener));
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
}
}
mListener = nsnull;
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent)
{
if (mListener) {
nsCOMPtr<nsIDOMEventTarget> t;
aEvent->GetOriginalTarget(getter_AddRefs(t));
// create and accessible for the target
nsCOMPtr<nsIContent> content = do_QueryInterface(t);
if (!content)
return NS_OK;
if (mCurrentFocus == content)
return NS_OK;
mCurrentFocus = content;
nsIFrame* frame = nsnull;
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
shell->GetPrimaryFrameFor(content, &frame);
if (!frame)
return NS_OK;
nsCOMPtr<nsIAccessible> a = do_QueryInterface(frame);
if (!a)
a = do_QueryInterface(content);
nsCOMPtr<nsIAccessible> na = CreateNewAccessible(a, content, mPresShell);
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_FOCUS, na);
}
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::Focus(nsIDOMEvent* aEvent)
{
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::Blur(nsIDOMEvent* aEvent)
{
return NS_OK;
}

View File

@@ -0,0 +1,70 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _nsRootAccessible_H_
#define _nsRootAccessible_H_
#include "nsAccessible.h"
#include "nsIAccessibleEventReceiver.h"
#include "nsIAccessibleEventListener.h"
#include "nsIDOMFocusListener.h"
class nsRootAccessible : public nsAccessible,
public nsIAccessibleEventReceiver,
public nsIDOMFocusListener
{
NS_DECL_ISUPPORTS_INHERITED
public:
nsRootAccessible(nsIWeakReference* aShell, nsIFrame* aFrame = nsnull);
virtual ~nsRootAccessible();
/* attribute wstring accName; */
NS_IMETHOD GetAccName(PRUnichar * *aAccName);
NS_IMETHOD GetAccParent(nsIAccessible * *aAccParent);
NS_IMETHOD GetAccRole(PRUnichar * *aAccRole);
// ----- nsIAccessibleEventReceiver ------
NS_IMETHOD AddAccessibleEventListener(nsIAccessibleEventListener *aListener);
NS_IMETHOD RemoveAccessibleEventListener(nsIAccessibleEventListener *aListener);
// ----- nsIDOMEventListener --------
NS_IMETHOD HandleEvent(nsIDOMEvent* anEvent);
NS_IMETHOD Focus(nsIDOMEvent* aEvent);
NS_IMETHOD Blur(nsIDOMEvent* aEvent);
protected:
virtual nsIFrame* GetFrame();
virtual nsIAccessible* CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
// not a com pointer. We don't own the listener
// it is the callers responsibility to remove the listener
// otherwise we will get into circular referencing problems
nsIAccessibleEventListener* mListener;
nsCOMPtr<nsIContent> mCurrentFocus;
};
#endif

View File

@@ -0,0 +1,717 @@
/* -*- 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.
*
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
* Contributor(s):
*/
#include "nsSelectAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsRootAccessible.h"
#include "nsINameSpaceManager.h"
#include "nsMutableAccessible.h"
#include "nsLayoutAtoms.h"
#include "nsIDOMMenuListener.h"
#include "nsIDOMEventReceiver.h"
#include "nsReadableUtils.h"
class nsSelectChildAccessible : public nsAccessible,
public nsIDOMMenuListener
{
public:
NS_DECL_ISUPPORTS_INHERITED
nsSelectChildAccessible(nsIAtom* aPopupAtom, nsIContent* aSelectContent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsSelectChildAccessible();
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccValue(PRUnichar **_retval);
virtual nsIAccessible* CreateNewNextAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewPreviousAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
// popup listener
NS_IMETHOD Create(nsIDOMEvent* aEvent);
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Destroy(nsIDOMEvent* aEvent);
NS_IMETHOD Action(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
nsCOMPtr<nsIAtom> mPopupAtom;
nsCOMPtr<nsIContent> mSelectContent;
PRBool mRegistered;
PRBool mOpen;
};
NS_IMPL_ISUPPORTS_INHERITED(nsSelectChildAccessible, nsAccessible, nsIDOMMenuListener)
class nsSelectWindowAccessible : public nsAccessible,
public nsIDOMMenuListener
{
public:
NS_DECL_ISUPPORTS_INHERITED
nsSelectWindowAccessible(nsIAtom* aPopupAtom, nsIAccessible* aParent, nsIAccessible* aPrev, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsSelectWindowAccessible();
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccExtState(PRUint32 *_retval);
// popup listener
NS_IMETHOD Create(nsIDOMEvent* aEvent);
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Destroy(nsIDOMEvent* aEvent);
NS_IMETHOD Action(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
// helpers
virtual nsIFrame* GetBoundsFrame();
nsCOMPtr<nsIAccessible> mParent;
nsCOMPtr<nsIAccessible> mPrev;
nsCOMPtr<nsIAtom> mPopupAtom;
PRBool mRegistered;
PRBool mOpen;
};
NS_IMPL_ISUPPORTS_INHERITED(nsSelectWindowAccessible, nsAccessible, nsIDOMMenuListener)
class nsSelectListAccessible : public nsAccessible
{
public:
nsSelectListAccessible(nsIAtom* aPopupAtom, nsIAccessible* aParent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsSelectListAccessible() {}
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
virtual void GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList);
virtual nsIAccessible* CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
nsCOMPtr<nsIAtom> mPopupAtom;
nsCOMPtr<nsIAccessible> mParent;
};
class nsListChildAccessible : public nsAccessible
{
public:
nsListChildAccessible(nsIAtom* aPopupAtom, nsIContent* aSelectContent, nsIAccessible* aParent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsListChildAccessible() {}
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
virtual void GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList);
virtual nsIAccessible* CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
nsCOMPtr<nsIAccessible> mParent;
nsCOMPtr<nsIAtom> mPopupAtom;
nsCOMPtr<nsIContent> mSelectContent;
};
//---------
nsSelectAccessible::nsSelectAccessible(nsIAtom* aPopupAtom,
nsIAccessible* aAccessible,
nsIContent* aContent,
nsIWeakReference* aShell)
:nsAccessible(aAccessible, aContent, aShell)
{
mPopupAtom = aPopupAtom;
}
NS_IMETHODIMP nsSelectAccessible::GetAccValue(PRUnichar **_retval)
{
// our value is our first child's value. Which is the combo boxes text.
nsCOMPtr<nsIAccessible> text;
nsresult rv = GetAccFirstChild(getter_AddRefs(text));
if (NS_FAILED(rv)) {
*_retval = nsnull;
return rv;
}
if (!text) {
*_retval = nsnull;
return NS_ERROR_FAILURE;
}
// look at our role
return text->GetAccValue(_retval);
}
NS_IMETHODIMP nsSelectAccessible::GetAccName(PRUnichar **_retval)
{
*_retval = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSelectAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("combo box"));
return NS_OK;
}
NS_IMETHODIMP nsSelectAccessible::GetAccLastChild(nsIAccessible **_retval)
{
// get the last child. Wrap it with a connector that connects it to the window accessible
nsCOMPtr<nsIAccessible> last;
nsresult rv = nsAccessible::GetAccLastChild(getter_AddRefs(last));
if (NS_FAILED(rv))
return rv;
if (!last) {
// we have a parent but not previous
*_retval = new nsSelectWindowAccessible(mPopupAtom, this, nsnull, nsnull, mContent, mPresShell);
} else {
*_retval = last;
}
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
// get the last child. Wrap it with a connector that connects it to the window accessible
nsCOMPtr<nsIAccessible> first;
nsresult rv = nsAccessible::GetAccFirstChild(getter_AddRefs(first));
if (NS_FAILED(rv))
return rv;
if (!first) {
*_retval = new nsSelectWindowAccessible(mPopupAtom, this, nsnull, nsnull, mContent, mPresShell);
} else {
*_retval = first;
}
NS_ADDREF(*_retval);
return NS_OK;
}
nsIAccessible* nsSelectAccessible::CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewLastAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsSelectAccessible::CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsSelectChildAccessible(mPopupAtom, mContent, aAccessible, aContent, aShell);
}
NS_IMETHODIMP nsSelectAccessible::GetAccChildCount(PRInt32 *_retval)
{
nsresult rv = nsAccessible::GetAccChildCount(_retval);
if (NS_FAILED(rv))
return rv;
// always have one more that is our window child
(*_retval)++;
return NS_OK;
}
//--------------------
nsSelectChildAccessible::nsSelectChildAccessible(nsIAtom* aPopupAtom, nsIContent* aSelectContent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell):
nsAccessible(aAccessible, aContent, aShell)
{
mPopupAtom = aPopupAtom;
mSelectContent = aSelectContent;
mRegistered = PR_FALSE;
mOpen = PR_FALSE;
}
NS_IMETHODIMP nsSelectChildAccessible::GetAccValue(PRUnichar **_retval)
{
nsresult rv = NS_OK;
PRUnichar* string = nsnull;
// look at our role
rv = nsAccessible::GetAccRole(&string);
if (NS_FAILED(rv)) {
*_retval = nsnull;
return rv;
}
nsAutoString role(string);
// if its the text in the combo box then
// its value should be its name.
if (role.EqualsIgnoreCase("text")) {
rv = nsAccessible::GetAccName(_retval);
} else {
rv = nsAccessible::GetAccValue(_retval);
}
delete string;
return rv;
}
NS_IMETHODIMP nsSelectChildAccessible::GetAccRole(PRUnichar **_retval)
{
nsresult rv = NS_OK;
PRUnichar* string = nsnull;
// look at our role
rv = nsAccessible::GetAccRole(&string);
if (NS_FAILED(rv)) {
*_retval = nsnull;
return rv;
}
nsAutoString role(string);
// any text in the combo box is static
if (role.EqualsIgnoreCase("text")) {
// if it the comboboxes text. Make it static
*_retval = ToNewUnicode(NS_LITERAL_STRING("static text"));
} else {
rv = nsAccessible::GetAccRole(_retval);
}
delete string;
return rv;
}
NS_IMETHODIMP nsSelectChildAccessible::GetAccName(PRUnichar **_retval)
{
nsresult rv = NS_OK;
PRUnichar* string = nsnull;
// look at our role
nsAccessible::GetAccRole(&string);
nsAutoString role(string);
// if button then we need to make the name be open or close
if (role.EqualsIgnoreCase("push button"))
{
// if its a button and not already registered,
// register ourselves as a popup listener
if (!mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver = do_QueryInterface(mSelectContent);
if (!eventReceiver) {
*_retval = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
eventReceiver->AddEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE);
mRegistered = PR_TRUE;
}
// get the current state open or closed
// set _retval to it.
// notice its supposed to be reversed. Close if opened
// and Open if closed.
if (mOpen)
*_retval = ToNewUnicode(NS_LITERAL_STRING("Close"));
else
*_retval = ToNewUnicode(NS_LITERAL_STRING("Open"));
} else {
/*rv = nsAccessible::GetAccName(_retval);*/
rv = NS_ERROR_NOT_IMPLEMENTED;
*_retval = nsnull;
}
delete string;
return rv;
}
nsSelectChildAccessible::~nsSelectChildAccessible()
{
if (mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver = do_QueryInterface(mSelectContent);
if (eventReceiver)
eventReceiver->RemoveEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE);
}
}
NS_IMETHODIMP nsSelectChildAccessible::Create(nsIDOMEvent* aEvent)
{
mOpen = PR_TRUE;
printf("Open\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectChildAccessible::Destroy(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
printf("Close\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectChildAccessible::Close(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
printf("Close\n");
/* TBD send state change event */
return NS_OK;
}
nsIAccessible* nsSelectChildAccessible::CreateNewNextAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewPreviousAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsSelectChildAccessible::CreateNewPreviousAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsSelectChildAccessible(mPopupAtom, mSelectContent, aAccessible, aContent, aShell);
}
NS_IMETHODIMP nsSelectChildAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> next;
nsresult rv = nsAccessible::GetAccNextSibling(getter_AddRefs(next));
if (NS_FAILED(rv))
return rv;
if (!next) {
// ok no more siblings. Lets create our window
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsSelectWindowAccessible(mPopupAtom, parent, nsnull, nsnull, mSelectContent, mPresShell);
} else {
*_retval = next;
}
NS_ADDREF(*_retval);
return NS_OK;
}
//---------------------
nsSelectWindowAccessible::nsSelectWindowAccessible(nsIAtom* aPopupAtom, nsIAccessible* aParent, nsIAccessible* aPrev, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
:nsAccessible(aAccessible, aContent, aShell)
{
mParent = aParent;
mPrev = aPrev;
mPopupAtom = aPopupAtom;
mRegistered = PR_FALSE;
mOpen = PR_FALSE;
}
nsSelectWindowAccessible::~nsSelectWindowAccessible()
{
if (mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver = do_QueryInterface(mContent);
if (eventReceiver)
eventReceiver->RemoveEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE);
}
}
NS_IMETHODIMP nsSelectWindowAccessible::Create(nsIDOMEvent* aEvent)
{
mOpen = PR_TRUE;
printf("Open\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::Destroy(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
printf("Close\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::Close(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
printf("Close\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccState(PRUint32 *_retval)
{
// not not already one register ourselves as a popup listener
if (!mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver = do_QueryInterface(mContent);
if (!eventReceiver) {
*_retval = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}
nsresult rv = eventReceiver->AddEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE);
if (NS_FAILED(rv)) {
*_retval = 0;
return rv;
}
mRegistered = PR_TRUE;
}
// if open we are visible if closed we are invisible
// set _retval to it.
if (mOpen)
*_retval |= STATE_DEFAULT;
else
*_retval |= STATE_INVISIBLE;
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccExtState(PRUint32 *_retval)
{
*_retval=0;
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccName(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("window"));
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = mPrev;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = new nsSelectListAccessible(mPopupAtom, this, nsnull, mContent, mPresShell);
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = new nsSelectListAccessible(mPopupAtom, this, nsnull, mContent, mPresShell);
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 1;
return NS_OK;
}
/*
NS_IMETHODIMP nsSelectWindowAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
*x = *y = *width = *height = 0;
return NS_OK;
}
*/
nsIFrame* nsSelectWindowAccessible::GetBoundsFrame()
{
// get our frame
nsIFrame* frame = GetFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
// get its first popup child that should be the window
frame->FirstChild(context, mPopupAtom, &frame);
return frame;
}
//----------
nsSelectListAccessible::nsSelectListAccessible(nsIAtom* aPopupAtom, nsIAccessible* aParent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
:nsAccessible(aAccessible, aContent, aShell)
{
mPopupAtom = aPopupAtom;
mParent = aParent;
}
void nsSelectListAccessible::GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList)
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(mContent, &frame);
if (aFrame == frame)
aList = mPopupAtom;
else
aList = nsnull;
}
NS_IMETHODIMP nsSelectListAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
return mParent->AccGetBounds(x,y,width,height);
}
NS_IMETHODIMP nsSelectListAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectListAccessible::GetAccName(PRUnichar **_retval)
{
*_retval = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSelectListAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("list"));
return NS_OK;
}
NS_IMETHODIMP nsSelectListAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
NS_IMETHODIMP nsSelectListAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
nsIAccessible* nsSelectListAccessible::CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsListChildAccessible(mPopupAtom, mContent, this, aAccessible, aContent, aShell);
}
nsIAccessible* nsSelectListAccessible::CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsListChildAccessible(mPopupAtom, mContent, this, aAccessible, aContent, aShell);
}
//--------
nsListChildAccessible::nsListChildAccessible(nsIAtom* aPopupAtom, nsIContent* aSelectContent, nsIAccessible* aParent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell):
nsAccessible(aAccessible, aContent, aShell)
{
mParent = aParent;
mPopupAtom = aPopupAtom;
mSelectContent = aSelectContent;
}
nsIAccessible* nsListChildAccessible::CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsListChildAccessible(mPopupAtom, mSelectContent, mParent, aAccessible, aContent, aShell);
}
void nsListChildAccessible::GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList)
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(mSelectContent, &frame);
if (aFrame == frame)
aList = mPopupAtom;
else
aList = nsnull;
}
NS_IMETHODIMP nsListChildAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("list item"));
return NS_OK;
}
NS_IMETHODIMP nsListChildAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}

View File

@@ -0,0 +1,51 @@
/* -*- 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.
*
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
* Contributor(s):
*/
#ifndef __nsSelectAccessible_h__
#define __nsSelectAccessible_h__
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIAtom.h"
class nsSelectAccessible : public nsAccessible
{
public:
nsSelectAccessible(nsIAtom* aPopupAtom, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccValue(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
virtual ~nsSelectAccessible() {}
virtual nsIAccessible* CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
nsCOMPtr<nsIAtom> mPopupAtom;
};
#endif

View File

@@ -0,0 +1,175 @@
/* -*- 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.
*
* Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#include "nsHTMLFormControlAccessible.h"
#include "nsWeakReference.h"
#include "nsIFrame.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsINameSpaceManager.h"
#include "nsHTMLAtoms.h"
#include "nsIDOMHTMLButtonElement.h"
#include "nsReadableUtils.h"
nsHTMLFormControlAccessible::nsHTMLFormControlAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsLeafDOMAccessible(aShell, aNode)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLFormControlAccessible::GetAccName(PRUnichar **_retval)
{
// go up tree get name of label if there is one.
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccState (); */
NS_IMETHODIMP nsHTMLFormControlAccessible::GetAccState(PRUint32 *_retval)
{
// can be
// focusable, focused, checked
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
PRBool checked = PR_FALSE;
element->GetChecked(&checked);
*_retval = (checked ? STATE_CHECKED : 0);
return NS_OK;
}
// --- checkbox -----
nsHTMLCheckboxAccessible::nsHTMLCheckboxAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsHTMLFormControlAccessible(aShell, aNode)
{
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("check box"));
return NS_OK;
}
/* wstring getAccDefaultAction (); */
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccDefaultAction(PRUnichar **_retval)
{
// check or uncheck
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
PRBool checked = PR_FALSE;
element->GetChecked(&checked);
if (checked)
*_retval = ToNewUnicode(NS_LITERAL_STRING("Check"));
else
*_retval = ToNewUnicode(NS_LITERAL_STRING("UnCheck"));
return NS_OK;
}
/* void accDoDefaultAction (); */
NS_IMETHODIMP nsHTMLCheckboxAccessible::AccDoDefaultAction()
{
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
PRBool checked = PR_FALSE;
element->GetChecked(&checked);
element->SetChecked(checked ? PR_FALSE : PR_TRUE);
return NS_OK;
}
//------ Radio button -------
nsHTMLRadioButtonAccessible::nsHTMLRadioButtonAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsHTMLFormControlAccessible(aShell, aNode)
{
}
/* wstring getAccDefaultAction (); */
NS_IMETHODIMP nsHTMLRadioButtonAccessible::GetAccDefaultAction(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("Select"));
return NS_OK;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLRadioButtonAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("radio button"));
return NS_OK;
}
NS_IMETHODIMP nsHTMLRadioButtonAccessible::AccDoDefaultAction()
{
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
element->Click();
return NS_OK;
}
// ----- Button -----
nsHTMLButtonAccessible::nsHTMLButtonAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsHTMLFormControlAccessible(aShell, aNode)
{
}
/* wstring getAccDefaultAction (); */
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccDefaultAction(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("Press"));
return NS_OK;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("push button"));
return NS_OK;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccName(PRUnichar **_retval)
{
*_retval = nsnull;
nsCOMPtr<nsIDOMHTMLInputElement> button = do_QueryInterface(mNode);
if (!button)
return NS_ERROR_FAILURE;
nsAutoString name;
button->GetValue(name);
name.CompressWhitespace();
*_retval = name.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP nsHTMLButtonAccessible::AccDoDefaultAction()
{
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
element->Click();
return NS_OK;
}

View File

@@ -0,0 +1,77 @@
/* -*- 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.
*
* Author: Eric D Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#ifndef _nsHTMLFormControlAccessible_H_
#define _nsHTMLFormControlAccessible_H_
#include "nsGenericAccessible.h"
class nsICheckboxControlFrame;
/* Accessible for supporting for controls
* supports:
* - walking up to get name from label
* - support basic state
*/
class nsHTMLFormControlAccessible : public nsLeafDOMAccessible
{
public:
nsHTMLFormControlAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
class nsHTMLCheckboxAccessible : public nsHTMLFormControlAccessible
{
public:
nsHTMLCheckboxAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccDefaultAction(PRUnichar **_retval);
NS_IMETHOD AccDoDefaultAction(void);
};
class nsHTMLRadioButtonAccessible : public nsHTMLFormControlAccessible
{
public:
nsHTMLRadioButtonAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccDefaultAction(PRUnichar **_retval);
NS_IMETHOD AccDoDefaultAction(void);
};
class nsHTMLButtonAccessible : public nsHTMLFormControlAccessible
{
public:
nsHTMLButtonAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccDefaultAction(PRUnichar **_retval);
NS_IMETHOD AccDoDefaultAction(void);
};
#endif

View File

@@ -0,0 +1,51 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.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.
*
* Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#include "nsHTMLTextAccessible.h"
#include "nsICheckboxControlFrame.h"
#include "nsWeakReference.h"
#include "nsIFrame.h"
nsHTMLTextAccessible::nsHTMLTextAccessible(nsIPresShell* aShell, nsIDOMNode* aDomNode):
nsLeafDOMAccessible(aShell, aDomNode)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLTextAccessible::GetAccName(PRUnichar **_retval)
{
nsAutoString value;
mNode->GetNodeValue(value);
value.CompressWhitespace();
*_retval = value.ToNewUnicode();
return NS_OK;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLTextAccessible::GetAccRole(PRUnichar **_retval)
{
nsAutoString role(NS_LITERAL_STRING("text"));
*_retval = role.ToNewUnicode();
return NS_OK;
}

View File

@@ -0,0 +1,43 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _nsHTMLTextAccessible_H_
#define _nsHTMLTextAccessible_H_
#include "nsGenericAccessible.h"
class nsIWeakReference;
class nsITextControlFrame;
class nsHTMLTextAccessible : public nsLeafDOMAccessible
{
public:
nsHTMLTextAccessible(nsIPresShell* aShell, nsIDOMNode* aDomNode);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
private:
nsCOMPtr<nsIDOMNode> mDomNode;
};
#endif

View File

@@ -0,0 +1,53 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..
MODULE=accessibility
LIBRARY_NAME=accessibility_s
CPP_OBJS=\
.\$(OBJDIR)\nsAccessible.obj \
.\$(OBJDIR)\nsRootAccessible.obj \
.\$(OBJDIR)\nsMutableAccessible.obj \
.\$(OBJDIR)\nsAccessibilityService.obj \
.\$(OBJDIR)\nsSelectAccessible.obj \
.\$(OBJDIR)\nsGenericAccessible.obj \
.\$(OBJDIR)\nsHTMLFormControlAccessible.obj \
.\$(OBJDIR)\nsHTMLTextAccessible.obj \
$(NULL)
LINCS= \
-I..\..\layout\html\forms\public \
-I..\..\layout\html\forms\src \
-I..\..\layout\html\base\src \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(LIBRARY)
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,252 @@
/* -*- 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.
*
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
* Contributor(s):
*/
#include "nsIAccessibilityService.h"
#include "nsAccessibilityService.h"
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsRootAccessible.h"
#include "nsINameSpaceManager.h"
#include "nsMutableAccessible.h"
#include "nsHTMLFormControlAccessible.h"
#include "nsLayoutAtoms.h"
#include "nsSelectAccessible.h"
#include "nsHTMLTextAccessible.h"
//--------------------
nsAccessibilityService::nsAccessibilityService()
{
NS_INIT_REFCNT();
}
nsAccessibilityService::~nsAccessibilityService()
{
}
NS_IMPL_THREADSAFE_ISUPPORTS1(nsAccessibilityService, nsIAccessibilityService);
////////////////////////////////////////////////////////////////////////////////
// nsIAccessibilityService methods:
NS_IMETHODIMP
nsAccessibilityService::CreateRootAccessible(nsISupports* aPresContext, nsISupports* aFrame, nsIAccessible **_retval)
{
nsIFrame* f = NS_STATIC_CAST(nsIFrame*, aFrame);
nsCOMPtr<nsIPresContext> c = do_QueryInterface(aPresContext);
NS_ASSERTION(c,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> s;
c->GetShell(getter_AddRefs(s));
NS_ASSERTION(s,"Error not presshell!!");
nsCOMPtr<nsIWeakReference> wr = getter_AddRefs(NS_GetWeakReference(s));
*_retval = new nsRootAccessible(wr,f);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP
nsAccessibilityService::CreateMutableAccessible(nsISupports* aNode, nsIMutableAccessible **_retval)
{
*_retval = new nsMutableAccessible(aNode);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLBlockAccessible(nsIAccessible* aAccessible, nsIDOMNode* node, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIContent> n = do_QueryInterface(node);
NS_ASSERTION(n,"Error non nsIContent passed to accessible factory!!!");
nsCOMPtr<nsIPresContext> c = do_QueryInterface(aPresContext);
NS_ASSERTION(c,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> s;
c->GetShell(getter_AddRefs(s));
NS_ASSERTION(s,"Error not presshell!!");
nsCOMPtr<nsIWeakReference> wr = getter_AddRefs(NS_GetWeakReference(s));
*_retval = new nsHTMLBlockAccessible(aAccessible, n,wr);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLSelectAccessible(nsIAtom* aPopupAtom, nsIDOMNode* node, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIContent> n = do_QueryInterface(node);
NS_ASSERTION(n,"Error non nsIContent passed to accessible factory!!!");
nsCOMPtr<nsIPresContext> c = do_QueryInterface(aPresContext);
NS_ASSERTION(c,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> s;
c->GetShell(getter_AddRefs(s));
nsCOMPtr<nsIWeakReference> wr = getter_AddRefs(NS_GetWeakReference(s));
*_retval = new nsSelectAccessible(aPopupAtom, nsnull, n, wr);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
/* nsIAccessible createHTMLCheckboxAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLCheckboxAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIPresShell> shell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(shell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLCheckboxAccessible(shell,node);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
/* nsIAccessible createHTMLCheckboxAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLRadioButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIPresShell> shell;
GetInfo(aFrame, &frame, getter_AddRefs(shell), getter_AddRefs(node));
*_retval = new nsHTMLRadioButtonAccessible(shell,node);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
/* nsIAccessible createHTMLCheckboxAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIPresShell> shell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(shell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLButtonAccessible(shell,node);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
/* nsIAccessible createHTMLTextAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTextAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIPresShell> shell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(shell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLTextAccessible(shell, node);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
} else
return NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP nsAccessibilityService::GetInfo(nsISupports* aFrame, nsIFrame** aRealFrame, nsIPresShell** aShell, nsIDOMNode** aNode)
{
*aRealFrame = NS_STATIC_CAST(nsIFrame*, aFrame);
nsCOMPtr<nsIContent> content;
(*aRealFrame)->GetContent(getter_AddRefs(content));
nsCOMPtr<nsIDOMNode> node = do_QueryInterface(content);
*aNode = node;
NS_ADDREF(*aNode);
nsCOMPtr<nsIDocument> document;
content->GetDocument(*getter_AddRefs(document));
#ifdef DEBUG
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
#endif
*aShell = document->GetShellAt(0);
NS_IF_ADDREF(*aShell);
return NS_OK;
}
//////////////////////////////////////////////////////////////////////
nsresult
NS_NewAccessibilityService(nsIAccessibilityService** aResult)
{
NS_PRECONDITION(aResult != nsnull, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
nsAccessibilityService* a = new nsAccessibilityService();
if (a == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(a);
*aResult = a;
return NS_OK;
}

View File

@@ -0,0 +1,53 @@
/* -*- 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.
*
*
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
* Contributor(s):
*/
#ifndef __nsAccessibilityService_h__
#define __nsAccessibilityService_h__
#include "nsIAccessibilityService.h"
class nsIFrame;
class nsIPresShell;
class nsIDOMNode;
class nsAccessibilityService : public nsIAccessibilityService
{
public:
NS_DECL_ISUPPORTS
// nsIAccessibilityService methods:
NS_DECL_NSIACCESSIBILITYSERVICE
// nsAccessibilityService methods:
nsAccessibilityService();
virtual ~nsAccessibilityService();
public:
private:
NS_IMETHOD GetInfo(nsISupports* aFrame, nsIFrame** aRealFrame, nsIPresShell** aShell, nsIDOMNode** aContent);
};
#endif /* __nsIccessibilityService_h__ */

View File

@@ -0,0 +1,968 @@
/* -*- 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):
*/
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsIScrollableView.h"
#include "nsRootAccessible.h"
//#define DEBUG_LEAKS
#ifdef DEBUG_LEAKS
static gnsAccessibles = 0;
#endif
class nsFrameTreeWalker {
public:
nsFrameTreeWalker(nsIPresContext* aPresContext, nsAccessible* aOwner);
nsIFrame* GetNextSibling(nsIFrame* aFrame);
nsIFrame* GetPreviousSibling(nsIFrame* aFrame);
nsIFrame* GetParent(nsIFrame* aFrame);
nsIFrame* GetFirstChild(nsIFrame* aFrame);
nsIFrame* GetLastChild(nsIFrame* aFrame);
nsIFrame* GetChildBefore(nsIFrame* aParent, nsIFrame* aChild);
PRInt32 GetCount(nsIFrame* aFrame);
static PRBool IsSameContent(nsIFrame* aFrame1, nsIFrame* aFrame2);
static void GetAccessible(nsIFrame* aFrame, nsCOMPtr<nsIAccessible>& aAccessible, nsCOMPtr<nsIContent>& aContent);
nsCOMPtr<nsIPresContext> mPresContext;
nsCOMPtr<nsIAccessible> mAccessible;
nsCOMPtr<nsIContent> mContent;
nsAccessible* mOwner;
};
nsFrameTreeWalker::nsFrameTreeWalker(nsIPresContext* aPresContext, nsAccessible* aOwner)
{
mPresContext = aPresContext;
mOwner = aOwner;
}
nsIFrame* nsFrameTreeWalker::GetParent(nsIFrame* aFrame)
{
//printf("Get parent\n");
nsIFrame* parent = nsnull;
aFrame->GetParent(&parent);
// if no parent then we hit the root
// just return that top frame
if (!parent) {
mAccessible = nsnull;
mContent = nsnull;
return aFrame;
}
GetAccessible(parent, mAccessible, mContent);
if (mAccessible)
return parent;
return GetParent(parent);
}
nsIFrame* nsFrameTreeWalker::GetNextSibling(nsIFrame* aFrame)
{
//printf("Get next\n");
// get next sibling
nsIFrame* next = nsnull;
aFrame->GetNextSibling(&next);
// skip any frames with the same content node
while(IsSameContent(aFrame,next))
next->GetNextSibling(&next);
// if failed
if (!next)
{
// if parent has content
nsIFrame* parent = nsnull;
aFrame->GetParent(&parent);
// if no parent fail
if (!parent) {
mAccessible = nsnull;
mContent = nsnull;
return nsnull;
}
// fail if we reach a parent that is accessible
GetAccessible(parent, mAccessible, mContent);
if (mAccessible)
{
// fail
mAccessible = nsnull;
mContent = nsnull;
return nsnull;
} else {
// next on parent
return GetNextSibling(parent);
}
}
// if next has content
GetAccessible(next, mAccessible, mContent);
if (mAccessible)
{
// done
return next;
}
// if next doesn't have node
// call first on next
nsIFrame* first = GetFirstChild(next);
// if found
if (first)
return first;
// call next on next
return GetNextSibling(next);
}
nsIFrame* nsFrameTreeWalker::GetFirstChild(nsIFrame* aFrame)
{
//printf("Get first\n");
// get first child
nsIFrame* child = nsnull;
nsIAtom* list = nsnull;
mOwner->GetListAtomForFrame(aFrame, list);
aFrame->FirstChild(mPresContext, list, &child);
while(child)
{
// if first has a content node
GetAccessible(child, mAccessible, mContent);
if (mAccessible)
{
// done
return child;
} else {
// call first on child
nsIFrame* first = GetFirstChild(child);
// if succeeded
if (first)
{
// return child
return first;
}
}
// get next sibling
nsIFrame* next;
child->GetNextSibling(&next);
// skip children with duplicate content nodes
while(IsSameContent(child,next))
next->GetNextSibling(&next);
child = next;
}
// fail
mAccessible = nsnull;
mContent = nsnull;
return nsnull;
}
nsIFrame* nsFrameTreeWalker::GetChildBefore(nsIFrame* aParent, nsIFrame* aChild)
{
nsIFrame* child = GetFirstChild(aParent);
// if the child is not us
if (child == aChild) {
mAccessible = nsnull;
mContent = nsnull;
return nsnull;
}
nsIFrame* prev = child;
nsCOMPtr<nsIContent> prevContent = mContent;
nsCOMPtr<nsIAccessible> prevAccessible = mAccessible;
while(child)
{
child = GetNextSibling(child);
if (child == aChild)
break;
prev = child;
prevContent = mContent;
prevAccessible = mAccessible;
}
mAccessible = prevAccessible;
mContent = prevContent;
return prev;
}
nsIFrame* nsFrameTreeWalker::GetPreviousSibling(nsIFrame* aFrame)
{
//printf("Get previous\n");
nsIFrame* parent = GetParent(aFrame);
return GetChildBefore(parent, aFrame);
}
nsIFrame* nsFrameTreeWalker::GetLastChild(nsIFrame* aFrame)
{
//printf("Get last\n");
return GetChildBefore(aFrame, nsnull);
}
PRInt32 nsFrameTreeWalker::GetCount(nsIFrame* aFrame)
{
//printf("Get count\n");
nsIFrame* child = GetFirstChild(aFrame);
PRInt32 count = 0;
while(child)
{
count++;
child = GetNextSibling(child);
}
return count;
}
void nsFrameTreeWalker::GetAccessible(nsIFrame* aFrame, nsCOMPtr<nsIAccessible>& aAccessible, nsCOMPtr<nsIContent>& aContent)
{
aContent = nsnull;
aAccessible = nsnull;
aFrame->GetContent(getter_AddRefs(aContent));
if (!aContent)
return;
nsCOMPtr<nsIDocument> document;
aContent->GetDocument(*getter_AddRefs(document));
if (!document)
return;
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
nsIPresShell* shell = document->GetShellAt(0);
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(aContent, &frame);
if (!frame)
return;
aAccessible = do_QueryInterface(aFrame);
if (!aAccessible)
aAccessible = do_QueryInterface(aContent);
if (aAccessible)
printf("Found accessible!\n");
}
PRBool nsFrameTreeWalker::IsSameContent(nsIFrame* aFrame1, nsIFrame* aFrame2)
{
if (!aFrame1 || !aFrame2)
return PR_FALSE;
nsCOMPtr<nsIContent> content1;
nsCOMPtr<nsIContent> content2;
aFrame1->GetContent(getter_AddRefs(content1));
aFrame2->GetContent(getter_AddRefs(content2));
if (content1 == content2 && content1 != nsnull)
return PR_TRUE;
return PR_FALSE;
}
/*
* Class nsAccessible
*/
//-----------------------------------------------------
// construction
//-----------------------------------------------------
nsAccessible::nsAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_INIT_REFCNT();
// get frame and node
mContent = aContent;
mAccessible = aAccessible;
mPresShell = aShell;
#ifdef DEBUG_LEAKS
printf("nsAccessibles=%d\n", ++gnsAccessibles);
#endif
}
//-----------------------------------------------------
// destruction
//-----------------------------------------------------
nsAccessible::~nsAccessible()
{
#ifdef DEBUG_LEAKS
printf("nsAccessibles=%d\n", --gnsAccessibles);
#endif
}
//NS_IMPL_ISUPPORTS2(nsAccessible, nsIAccessible, nsIAccessibleWidgetAccess);
NS_IMPL_ISUPPORTS1(nsAccessible, nsIAccessible);
/* readonly attribute nsIAccessible accParent; */
NS_IMETHODIMP nsAccessible::GetAccParent(nsIAccessible * *aAccParent)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccParent(aAccParent);
if (NS_SUCCEEDED(rv))
return rv;
}
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
// failed? Lets do some default behavior
walker.GetParent(GetFrame());
// if no content or accessible then we hit the root
if (!walker.mContent || !walker.mAccessible)
{
*aAccParent = new nsRootAccessible(mPresShell);
NS_ADDREF(*aAccParent);
return NS_OK;
}
*aAccParent = CreateNewParentAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccParent);
return NS_OK;
}
*aAccParent = nsnull;
return NS_OK;
}
/* readonly attribute nsIAccessible accNextSibling; */
NS_IMETHODIMP nsAccessible::GetAccNextSibling(nsIAccessible * *aAccNextSibling)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccNextSibling(aAccNextSibling);
if (NS_SUCCEEDED(rv))
return rv;
}
// failed? Lets do some default behavior
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
nsIFrame* next = walker.GetNextSibling(GetFrame());
if (next && walker.mAccessible && walker.mContent)
{
*aAccNextSibling = CreateNewNextAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccNextSibling);
return NS_OK;
}
}
*aAccNextSibling = nsnull;
return NS_OK;
}
/* readonly attribute nsIAccessible accPreviousSibling; */
NS_IMETHODIMP nsAccessible::GetAccPreviousSibling(nsIAccessible * *aAccPreviousSibling)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccPreviousSibling(aAccPreviousSibling);
if (NS_SUCCEEDED(rv))
return rv;
}
// failed? Lets do some default behavior
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
nsIFrame* prev = walker.GetPreviousSibling(GetFrame());
if (prev && walker.mAccessible && walker.mContent)
{
*aAccPreviousSibling = CreateNewPreviousAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccPreviousSibling);
return NS_OK;
}
}
*aAccPreviousSibling = nsnull;
return NS_OK;
}
/* readonly attribute nsIAccessible accFirstChild; */
NS_IMETHODIMP nsAccessible::GetAccFirstChild(nsIAccessible * *aAccFirstChild)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccFirstChild(aAccFirstChild);
if (NS_SUCCEEDED(rv))
return rv;
}
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
nsIFrame* child = walker.GetFirstChild(GetFrame());
if (child && walker.mAccessible && walker.mContent)
{
*aAccFirstChild = CreateNewFirstAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccFirstChild);
return NS_OK;
}
}
*aAccFirstChild = nsnull;
return NS_OK;
}
/* readonly attribute nsIAccessible accFirstChild; */
NS_IMETHODIMP nsAccessible::GetAccLastChild(nsIAccessible * *aAccLastChild)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccLastChild(aAccLastChild);
if (NS_SUCCEEDED(rv))
return rv;
}
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
nsIFrame* last = walker.GetLastChild(GetFrame());
if (last && walker.mAccessible && walker.mContent)
{
*aAccLastChild = CreateNewLastAccessible(walker.mAccessible, walker.mContent, mPresShell);
NS_ADDREF(*aAccLastChild);
return NS_OK;
}
}
*aAccLastChild = nsnull;
return NS_OK;
}
/* readonly attribute long accChildCount; */
NS_IMETHODIMP nsAccessible::GetAccChildCount(PRInt32 *aAccChildCount)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccChildCount(aAccChildCount);
if (NS_SUCCEEDED(rv))
return rv;
}
// failed? Lets do some default behavior
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (context) {
nsFrameTreeWalker walker(context, this);
*aAccChildCount = walker.GetCount(GetFrame());
} else
*aAccChildCount = 0;
return NS_OK;
}
/* attribute wstring accName; */
NS_IMETHODIMP nsAccessible::GetAccName(PRUnichar * *aAccName)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccName(aAccName);
if (NS_SUCCEEDED(rv) && *aAccName != nsnull)
return rv;
}
*aAccName = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute wstring accName; */
NS_IMETHODIMP nsAccessible::GetAccDefaultAction(PRUnichar * *aDefaultAction)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccDefaultAction(aDefaultAction);
if (NS_SUCCEEDED(rv) && *aDefaultAction != nsnull)
return rv;
}
*aDefaultAction = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAccessible::SetAccName(const PRUnichar * aAccName)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->SetAccName(aAccName);
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute wstring accValue; */
NS_IMETHODIMP nsAccessible::GetAccValue(PRUnichar * *aAccValue)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccValue(aAccValue);
if (NS_SUCCEEDED(rv) && *aAccValue != nsnull)
return rv;
}
*aAccValue = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAccessible::SetAccValue(const PRUnichar * aAccValue) { return NS_ERROR_NOT_IMPLEMENTED; }
/* readonly attribute wstring accDescription; */
NS_IMETHODIMP nsAccessible::GetAccDescription(PRUnichar * *aAccDescription)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccDescription(aAccDescription);
if (NS_SUCCEEDED(rv) && *aAccDescription != nsnull)
return rv;
}
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring accRole; */
NS_IMETHODIMP nsAccessible::GetAccRole(PRUnichar * *aAccRole)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccRole(aAccRole);
if (NS_SUCCEEDED(rv) && *aAccRole != nsnull)
return rv;
}
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring accState; */
NS_IMETHODIMP nsAccessible::GetAccState(PRUint32 *aAccState)
{
// delegate
if (mAccessible)
return mAccessible->GetAccState(aAccState);
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAccessible::GetAccExtState(PRUint32 *aAccExtState)
{
// delegate
if (mAccessible)
return mAccessible->GetAccExtState(aAccExtState);
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring accHelp; */
NS_IMETHODIMP nsAccessible::GetAccHelp(PRUnichar * *aAccHelp)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->GetAccHelp(aAccHelp);
if (NS_SUCCEEDED(rv) && *aAccHelp != nsnull)
return rv;
}
// failed? Lets do some default behavior
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean accFocused; */
NS_IMETHODIMP nsAccessible::GetAccFocused(PRBool *aAccFocused) { return NS_OK; }
/* nsIAccessible accGetChildAt (in long x, in long y); */
NS_IMETHODIMP nsAccessible::AccGetAt(PRInt32 tx, PRInt32 ty, nsIAccessible **_retval)
{
PRInt32 x,y,w,h;
AccGetBounds(&x,&y,&w,&h);
if (tx > x && tx < x + w && ty > y && ty < y + h)
{
nsCOMPtr<nsIAccessible> child;
nsCOMPtr<nsIAccessible> next;
GetAccFirstChild(getter_AddRefs(child));
PRInt32 cx,cy,cw,ch;
while(child) {
child->AccGetBounds(&cx,&cy,&cw,&ch);
if (tx > cx && tx < cx + cw && ty > cy && ty < cy + ch)
{
*_retval = child;
NS_ADDREF(*_retval);
return NS_OK;
}
child->GetAccNextSibling(getter_AddRefs(next));
child = next;
}
*_retval = this;
NS_ADDREF(this);
return NS_OK;
}
*_retval = nsnull;
return NS_OK;
}
/* void accNavigateRight (); */
NS_IMETHODIMP nsAccessible::AccNavigateRight(nsIAccessible **_retval) { return NS_OK; }
/* void navigateLeft (); */
NS_IMETHODIMP nsAccessible::AccNavigateLeft(nsIAccessible **_retval) { return NS_OK; }
/* void navigateUp (); */
NS_IMETHODIMP nsAccessible::AccNavigateUp(nsIAccessible **_retval) { return NS_OK; }
/* void navigateDown (); */
NS_IMETHODIMP nsAccessible::AccNavigateDown(nsIAccessible **_retval) { return NS_OK; }
/* void addSelection (); */
NS_IMETHODIMP nsAccessible::AccAddSelection(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccAddSelection();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void removeSelection (); */
NS_IMETHODIMP nsAccessible::AccRemoveSelection(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccRemoveSelection();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void extendSelection (); */
NS_IMETHODIMP nsAccessible::AccExtendSelection(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccExtendSelection();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void takeSelection (); */
NS_IMETHODIMP nsAccessible::AccTakeSelection(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccTakeSelection();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void takeFocus (); */
NS_IMETHODIMP nsAccessible::AccTakeFocus(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccTakeFocus();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void doDefaultAction (); */
NS_IMETHODIMP nsAccessible::AccDoDefaultAction(void)
{
// delegate
if (mAccessible) {
nsresult rv = mAccessible->AccDoDefaultAction();
if (NS_SUCCEEDED(rv))
return rv;
}
return NS_ERROR_FAILURE;
}
/* void accGetBounds (out long x, out long y, out long width, out long height); */
NS_IMETHODIMP nsAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
nsIFrame* frame = GetBoundsFrame();
if (!frame || !context)
{
*x = *y = *width = *height = 0;
return NS_OK;
}
// sum up all rects of frames with the same content node
nsRect r;
nsIFrame* start = frame;
nsIFrame* next = nsnull;
start->GetNextSibling(&next);
start->GetRect(r);
while (nsFrameTreeWalker::IsSameContent(start, next))
{
nsRect r2;
next->GetRect(r2);
r.UnionRect(r,r2);
next->GetNextSibling(&next);
}
nsPoint offset(r.x,r.y);
frame->GetParent(&frame);
nsPoint pos(0,0);
while(frame) {
nsIScrollableView* scrollingView;
nsIView* view;
// XXX hack
frame->GetView(context, &view);
if (view) {
nsresult result = view->QueryInterface(NS_GET_IID(nsIScrollableView), (void**)&scrollingView);
if (NS_SUCCEEDED(result)) {
nscoord xoff = 0;
nscoord yoff = 0;
scrollingView->GetScrollPosition(xoff, yoff);
offset.x -= xoff;
offset.y -= yoff;
}
}
frame->GetOrigin(pos);
offset += pos;
frame->GetParent(&frame);
}
float t2p;
context->GetTwipsToPixels(&t2p);
*x = (PRInt32)(offset.x*t2p);
*y = (PRInt32)(offset.y*t2p);
*width = (PRInt32)(r.width*t2p);
*height = (PRInt32)(r.height*t2p);
return NS_OK;
}
// helpers
nsIFrame* nsAccessible::GetBoundsFrame()
{
return GetFrame();
}
nsIFrame* nsAccessible::GetFrame()
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(mContent, &frame);
return frame;
}
void nsAccessible::GetPresContext(nsCOMPtr<nsIPresContext>& aContext)
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
if (shell) {
shell->GetPresContext(getter_AddRefs(aContext));
} else
aContext = nsnull;
}
nsIAccessible* nsAccessible::CreateNewNextAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewPreviousAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewParentAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsAccessible::CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsAccessible(aAccessible, aContent, aShell);
}
// ------- nsHTMLBlockAccessible ------
nsHTMLBlockAccessible::nsHTMLBlockAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell):nsAccessible(aAccessible, aContent, aShell)
{
}
nsIAccessible* nsHTMLBlockAccessible::CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsHTMLBlockAccessible(aAccessible, aContent, aShell);
}
/* nsIAccessible accGetAt (in long x, in long y); */
NS_IMETHODIMP nsHTMLBlockAccessible::AccGetAt(PRInt32 tx, PRInt32 ty, nsIAccessible **_retval)
{
PRInt32 x,y,w,h;
AccGetBounds(&x,&y,&w,&h);
if (tx > x && tx < x + w && ty > y && ty < y + h)
{
nsCOMPtr<nsIAccessible> child;
nsCOMPtr<nsIAccessible> smallestChild;
PRInt32 smallestArea = -1;
nsCOMPtr<nsIAccessible> next;
GetAccFirstChild(getter_AddRefs(child));
PRInt32 cx,cy,cw,ch;
while(child) {
child->AccGetBounds(&cx,&cy,&cw,&ch);
// ok if there are multiple frames the contain the point
// and they overlap then pick the smallest. We need to do this
// for text frames.
if (tx > cx && tx < cx + cw && ty > cy && ty < cy + ch)
{
if (smallestArea == -1 || cw*ch < smallestArea) {
smallestArea = cw*ch;
smallestChild = child;
}
}
child->GetAccNextSibling(getter_AddRefs(next));
child = next;
}
if (smallestChild != nsnull)
{
*_retval = smallestChild;
NS_ADDREF(*_retval);
return NS_OK;
}
*_retval = this;
NS_ADDREF(this);
return NS_OK;
}
*_retval = nsnull;
return NS_OK;
}

View File

@@ -0,0 +1,79 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.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 _nsAccessible_H_
#define _nsAccessible_H_
#include "nsISupports.h"
#include "nsIAccessible.h"
#include "nsCOMPtr.h"
#include "nsIContent.h"
#include "nsIDOMNode.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsWeakReference.h"
class nsIFrame;
class nsAccessible : public nsIAccessible
// public nsIAccessibleWidgetAccess
{
NS_DECL_ISUPPORTS
// nsIAccessibilityService methods:
NS_DECL_NSIACCESSIBLE
//NS_IMETHOD AccGetWidget(nsIWidget**);
public:
nsAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsAccessible();
virtual void GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList) { aList = nsnull; }
protected:
virtual nsIFrame* GetFrame();
virtual nsIFrame* GetBoundsFrame();
virtual void GetPresContext(nsCOMPtr<nsIPresContext>& aContext);
virtual nsIAccessible* CreateNewNextAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewPreviousAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewParentAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
nsCOMPtr<nsIContent> mContent;
nsCOMPtr<nsIWeakReference> mPresShell;
nsCOMPtr<nsIAccessible> mAccessible;
};
/* Special Accessible that knows how to handle hit detection for flowing text */
class nsHTMLBlockAccessible : public nsAccessible
{
public:
nsHTMLBlockAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
NS_IMETHOD AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval);
protected:
virtual nsIAccessible* CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aFrame, nsIWeakReference* aShell);
};
#endif

View File

@@ -0,0 +1,335 @@
/* -*- 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.
*
* Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#include "nsGenericAccessible.h"
#include "nsIEventStateManager.h"
#include "nsIFrame.h"
#include "nsCOMPtr.h"
#include "nsIWeakReference.h"
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsGenericAccessible, nsIAccessible)
nsGenericAccessible::nsGenericAccessible()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}
nsGenericAccessible::~nsGenericAccessible()
{
/* destructor code */
}
/* nsIAccessible getAccParent (); */
NS_IMETHODIMP nsGenericAccessible::GetAccParent(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccNextSibling (); */
NS_IMETHODIMP nsGenericAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccPreviousSibling (); */
NS_IMETHODIMP nsGenericAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsGenericAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsGenericAccessible::GetAccLastChild(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsGenericAccessible::GetAccChildCount(PRInt32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccName (); */
NS_IMETHODIMP nsGenericAccessible::GetAccName(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccValue (); */
NS_IMETHODIMP nsGenericAccessible::GetAccValue(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAccName (in wstring name); */
NS_IMETHODIMP nsGenericAccessible::SetAccName(const PRUnichar *name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAccValue (in wstring value); */
NS_IMETHODIMP nsGenericAccessible::SetAccValue(const PRUnichar *value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccDescription (); */
NS_IMETHODIMP nsGenericAccessible::GetAccDescription(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsGenericAccessible::GetAccRole(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccState (); */
NS_IMETHODIMP nsGenericAccessible::GetAccState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccDefaultAction (); */
NS_IMETHODIMP nsGenericAccessible::GetAccDefaultAction(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccHelp (); */
NS_IMETHODIMP nsGenericAccessible::GetAccHelp(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean getAccFocused (); */
NS_IMETHODIMP nsGenericAccessible::GetAccFocused(PRBool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accGetAt (in long x, in long y); */
NS_IMETHODIMP nsGenericAccessible::AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateRight (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateRight(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateLeft (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateLeft(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateUp (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateUp(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateDown (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateDown(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accGetBounds (out long x, out long y, out long width, out long height); */
NS_IMETHODIMP nsGenericAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accAddSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccAddSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accRemoveSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccRemoveSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accExtendSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccExtendSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accTakeSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccTakeSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accTakeFocus (); */
NS_IMETHODIMP nsGenericAccessible::AccTakeFocus()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accDoDefaultAction (); */
NS_IMETHODIMP nsGenericAccessible::AccDoDefaultAction()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getAccExtState (); */
NS_IMETHODIMP nsGenericAccessible::GetAccExtState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//-------------
// nsDOMAccessible
//-------------
nsDOMAccessible::nsDOMAccessible(nsIPresShell* aShell, nsIDOMNode* aNode)
{
mPresShell = getter_AddRefs(NS_GetWeakReference(aShell));
mNode = aNode;
}
/* void accRemoveSelection (); */
NS_IMETHODIMP nsDOMAccessible::AccRemoveSelection()
{
nsCOMPtr<nsISelectionController> control = do_QueryReferent(mPresShell);
nsCOMPtr<nsISelection> selection;
nsresult rv = control->GetSelection(nsISelectionController::SELECTION_NORMAL, getter_AddRefs(selection));
if (NS_FAILED(rv))
return rv;
nsCOMPtr<nsIDOMNode> parent;
rv = mNode->GetParentNode(getter_AddRefs(parent));
if (NS_FAILED(rv))
return rv;
rv = selection->Collapse(parent, 0);
if (NS_FAILED(rv))
return rv;
return NS_OK;
}
/* void accTakeSelection (); */
NS_IMETHODIMP nsDOMAccessible::AccTakeSelection()
{
nsCOMPtr<nsISelectionController> control = do_QueryReferent(mPresShell);
nsCOMPtr<nsISelection> selection;
nsresult rv = control->GetSelection(nsISelectionController::SELECTION_NORMAL, getter_AddRefs(selection));
if (NS_FAILED(rv))
return rv;
nsCOMPtr<nsIDOMNode> parent;
rv = mNode->GetParentNode(getter_AddRefs(parent));
if (NS_FAILED(rv))
return rv;
PRInt32 offsetInParent = 0;
nsCOMPtr<nsIDOMNode> child;
rv = parent->GetFirstChild(getter_AddRefs(child));
if (NS_FAILED(rv))
return rv;
nsCOMPtr<nsIDOMNode> next;
while(child)
{
if (child == mNode) {
// Collapse selection to just before desired element,
rv = selection->Collapse(parent, offsetInParent);
if (NS_FAILED(rv))
return rv;
// then extend it to just after
rv = selection->Extend(parent, offsetInParent+1);
return rv;
}
child->GetNextSibling(getter_AddRefs(next));
child = next;
offsetInParent++;
}
// didn't find a child
return NS_ERROR_FAILURE;
}
/* void accTakeFocus (); */
NS_IMETHODIMP nsDOMAccessible::AccTakeFocus()
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsCOMPtr<nsIPresContext> context;
shell->GetPresContext(getter_AddRefs(context));
nsCOMPtr<nsIContent> content = do_QueryInterface(mNode);
content->SetFocus(context);
return NS_OK;
}
//-------------
// nsLeafFrameAccessible
//-------------
nsLeafDOMAccessible::nsLeafDOMAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsDOMAccessible(aShell, aNode)
{
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsLeafDOMAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsLeafDOMAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsLeafDOMAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}

View File

@@ -0,0 +1,84 @@
/* -*- 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.
*
* Author: Eric D Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#ifndef _nsGenericAccessible_H_
#define _nsGenericAccessible_H_
#include "nsISupports.h"
#include "nsIAccessible.h"
#include "nsIContent.h"
#include "nsIDOMNode.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsCOMPtr.h"
class nsIWeakReference;
/**
* Basic implementation
* supports nothing
*/
class nsGenericAccessible : public nsIAccessible
{
NS_DECL_ISUPPORTS
NS_DECL_NSIACCESSIBLE
public:
nsGenericAccessible();
virtual ~nsGenericAccessible();
};
/**
* And accessible that observes a dom node
* supports:
* - selection
* - focus
*/
class nsDOMAccessible : public nsGenericAccessible
{
public:
nsDOMAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD AccTakeSelection(void);
NS_IMETHOD AccTakeFocus(void);
NS_IMETHOD AccRemoveSelection(void);
protected:
nsIWeakReference* mPresShell;
nsCOMPtr<nsIDOMNode> mNode;
};
/* Leaf version of DOM Accessible
* has no children
*/
class nsLeafDOMAccessible : public nsDOMAccessible
{
public:
nsLeafDOMAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
};
#endif

View File

@@ -0,0 +1,175 @@
/* -*- 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.
*
* Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#include "nsHTMLFormControlAccessible.h"
#include "nsWeakReference.h"
#include "nsIFrame.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsINameSpaceManager.h"
#include "nsHTMLAtoms.h"
#include "nsIDOMHTMLButtonElement.h"
#include "nsReadableUtils.h"
nsHTMLFormControlAccessible::nsHTMLFormControlAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsLeafDOMAccessible(aShell, aNode)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLFormControlAccessible::GetAccName(PRUnichar **_retval)
{
// go up tree get name of label if there is one.
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccState (); */
NS_IMETHODIMP nsHTMLFormControlAccessible::GetAccState(PRUint32 *_retval)
{
// can be
// focusable, focused, checked
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
PRBool checked = PR_FALSE;
element->GetChecked(&checked);
*_retval = (checked ? STATE_CHECKED : 0);
return NS_OK;
}
// --- checkbox -----
nsHTMLCheckboxAccessible::nsHTMLCheckboxAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsHTMLFormControlAccessible(aShell, aNode)
{
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("check box"));
return NS_OK;
}
/* wstring getAccDefaultAction (); */
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccDefaultAction(PRUnichar **_retval)
{
// check or uncheck
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
PRBool checked = PR_FALSE;
element->GetChecked(&checked);
if (checked)
*_retval = ToNewUnicode(NS_LITERAL_STRING("Check"));
else
*_retval = ToNewUnicode(NS_LITERAL_STRING("UnCheck"));
return NS_OK;
}
/* void accDoDefaultAction (); */
NS_IMETHODIMP nsHTMLCheckboxAccessible::AccDoDefaultAction()
{
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
PRBool checked = PR_FALSE;
element->GetChecked(&checked);
element->SetChecked(checked ? PR_FALSE : PR_TRUE);
return NS_OK;
}
//------ Radio button -------
nsHTMLRadioButtonAccessible::nsHTMLRadioButtonAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsHTMLFormControlAccessible(aShell, aNode)
{
}
/* wstring getAccDefaultAction (); */
NS_IMETHODIMP nsHTMLRadioButtonAccessible::GetAccDefaultAction(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("Select"));
return NS_OK;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLRadioButtonAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("radio button"));
return NS_OK;
}
NS_IMETHODIMP nsHTMLRadioButtonAccessible::AccDoDefaultAction()
{
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
element->Click();
return NS_OK;
}
// ----- Button -----
nsHTMLButtonAccessible::nsHTMLButtonAccessible(nsIPresShell* aShell, nsIDOMNode* aNode):
nsHTMLFormControlAccessible(aShell, aNode)
{
}
/* wstring getAccDefaultAction (); */
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccDefaultAction(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("Press"));
return NS_OK;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("push button"));
return NS_OK;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccName(PRUnichar **_retval)
{
*_retval = nsnull;
nsCOMPtr<nsIDOMHTMLInputElement> button = do_QueryInterface(mNode);
if (!button)
return NS_ERROR_FAILURE;
nsAutoString name;
button->GetValue(name);
name.CompressWhitespace();
*_retval = name.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP nsHTMLButtonAccessible::AccDoDefaultAction()
{
nsCOMPtr<nsIDOMHTMLInputElement> element = do_QueryInterface(mNode);
element->Click();
return NS_OK;
}

View File

@@ -0,0 +1,77 @@
/* -*- 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.
*
* Author: Eric D Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#ifndef _nsHTMLFormControlAccessible_H_
#define _nsHTMLFormControlAccessible_H_
#include "nsGenericAccessible.h"
class nsICheckboxControlFrame;
/* Accessible for supporting for controls
* supports:
* - walking up to get name from label
* - support basic state
*/
class nsHTMLFormControlAccessible : public nsLeafDOMAccessible
{
public:
nsHTMLFormControlAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
class nsHTMLCheckboxAccessible : public nsHTMLFormControlAccessible
{
public:
nsHTMLCheckboxAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccDefaultAction(PRUnichar **_retval);
NS_IMETHOD AccDoDefaultAction(void);
};
class nsHTMLRadioButtonAccessible : public nsHTMLFormControlAccessible
{
public:
nsHTMLRadioButtonAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccDefaultAction(PRUnichar **_retval);
NS_IMETHOD AccDoDefaultAction(void);
};
class nsHTMLButtonAccessible : public nsHTMLFormControlAccessible
{
public:
nsHTMLButtonAccessible(nsIPresShell* aShell, nsIDOMNode* aNode);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccDefaultAction(PRUnichar **_retval);
NS_IMETHOD AccDoDefaultAction(void);
};
#endif

View File

@@ -0,0 +1,51 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.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.
*
* Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s):
*/
#include "nsHTMLTextAccessible.h"
#include "nsICheckboxControlFrame.h"
#include "nsWeakReference.h"
#include "nsIFrame.h"
nsHTMLTextAccessible::nsHTMLTextAccessible(nsIPresShell* aShell, nsIDOMNode* aDomNode):
nsLeafDOMAccessible(aShell, aDomNode)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLTextAccessible::GetAccName(PRUnichar **_retval)
{
nsAutoString value;
mNode->GetNodeValue(value);
value.CompressWhitespace();
*_retval = value.ToNewUnicode();
return NS_OK;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLTextAccessible::GetAccRole(PRUnichar **_retval)
{
nsAutoString role(NS_LITERAL_STRING("text"));
*_retval = role.ToNewUnicode();
return NS_OK;
}

View File

@@ -0,0 +1,43 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _nsHTMLTextAccessible_H_
#define _nsHTMLTextAccessible_H_
#include "nsGenericAccessible.h"
class nsIWeakReference;
class nsITextControlFrame;
class nsHTMLTextAccessible : public nsLeafDOMAccessible
{
public:
nsHTMLTextAccessible(nsIPresShell* aShell, nsIDOMNode* aDomNode);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
private:
nsCOMPtr<nsIDOMNode> mDomNode;
};
#endif

View File

@@ -0,0 +1,263 @@
/* -*- 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):
*/
#include "nsMutableAccessible.h"
#include "nsINameSpaceManager.h"
NS_IMPL_ISUPPORTS1(nsMutableAccessible, nsIAccessible)
nsMutableAccessible::nsMutableAccessible(nsISupports* aNode)
{
NS_INIT_ISUPPORTS();
NS_ASSERTION(aNode,"We must have a valid node!!");
mNode = aNode;
mNameNodeValue = PR_FALSE;
mNameStringSet = PR_FALSE;
mRole = NS_LITERAL_STRING("unknown");
mIsLeaf = PR_FALSE;
}
nsMutableAccessible::~nsMutableAccessible()
{
}
NS_IMETHODIMP nsMutableAccessible::SetIsLeaf(PRBool aLeaf)
{
mIsLeaf = aLeaf;
return NS_OK;
}
/* void SetNodeAsNodeValue (); */
NS_IMETHODIMP nsMutableAccessible::SetNameAsNodeValue()
{
mNameNodeValue = PR_TRUE;
return NS_OK;
}
/* void SetName (in wstring name); */
NS_IMETHODIMP nsMutableAccessible::SetName(const PRUnichar *aName)
{
mName = aName;
mNameStringSet = PR_TRUE;
return NS_OK;
}
/* void SetNameAsAttribute (in nsIAtom atom); */
NS_IMETHODIMP nsMutableAccessible::SetNameAsAttribute(nsIAtom *aAttribute)
{
mNameAttribute = aAttribute;
return NS_OK;
}
/* void SetNameAsAttribute (in nsIAtom atom); */
NS_IMETHODIMP nsMutableAccessible::SetRole(const PRUnichar *aRole)
{
mRole = aRole;
return NS_OK;
}
NS_IMETHODIMP nsMutableAccessible::GetAccParent(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
if (mIsLeaf) {
*_retval = nsnull;
return NS_OK;
}
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccLastChild(nsIAccessible **_retval)
{
if (mIsLeaf) {
*_retval = nsnull;
return NS_OK;
}
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccChildCount(PRInt32 *_retval)
{
if (mIsLeaf) {
*_retval = 0;
return NS_OK;
}
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccName(PRUnichar **_retval)
{
nsAutoString value;
if (mNameNodeValue) {
// see if we can get nodevalue
nsCOMPtr<nsIDOMNode> node = do_QueryInterface(mNode);
if (node) {
node->GetNodeValue(value);
value.CompressWhitespace();
} else {
*_retval = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
} else if (mNameStringSet) {
value = mName;
} else if (mNameAttribute) {
nsCOMPtr<nsIContent> content = do_QueryInterface(mNode);
content->GetAttribute(kNameSpaceID_None, mNameAttribute, value);
value.CompressWhitespace();
} else {
*_retval = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
*_retval = value.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP nsMutableAccessible::GetAccValue(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::SetAccName(const PRUnichar *name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::SetAccValue(const PRUnichar *value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccDescription(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = mRole.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP nsMutableAccessible::GetAccState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccExtState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccDefaultAction(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccHelp(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::GetAccFocused(PRBool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccNavigateRight(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccNavigateLeft(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccNavigateUp(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccNavigateDown(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccAddSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccRemoveSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccExtendSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccTakeSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccTakeFocus()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMutableAccessible::AccDoDefaultAction()
{
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,51 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.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 _nsMutableAccessible_H_
#define _nsMutableAccessible_H_
#include "nsIMutableAccessible.h"
#include "nsAccessible.h"
#include "nsString.h"
class nsMutableAccessible : public nsIMutableAccessible
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIACCESSIBLE
NS_DECL_NSIMUTABLEACCESSIBLE
nsMutableAccessible(nsISupports* aNode);
virtual ~nsMutableAccessible();
private:
nsCOMPtr<nsISupports> mNode;
nsString mName;
nsString mRole;
nsCOMPtr<nsIAtom> mNameAttribute;
PRPackedBool mNameNodeValue;
PRPackedBool mNameStringSet;
PRPackedBool mIsLeaf;
};
#endif

View File

@@ -0,0 +1,199 @@
/* -*- 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):
*/
#include "nsRootAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMElement.h"
#include "nsIDOMEventReceiver.h"
#include "nsReadableUtils.h"
NS_INTERFACE_MAP_BEGIN(nsRootAccessible)
NS_INTERFACE_MAP_ENTRY(nsIAccessibleEventReceiver)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIAccessibleEventReceiver)
NS_INTERFACE_MAP_END_INHERITING(nsAccessible)
NS_IMPL_ADDREF_INHERITED(nsRootAccessible, nsAccessible);
NS_IMPL_RELEASE_INHERITED(nsRootAccessible, nsAccessible);
//-----------------------------------------------------
// construction
//-----------------------------------------------------
nsRootAccessible::nsRootAccessible(nsIWeakReference* aShell, nsIFrame* aFrame):nsAccessible(nsnull,nsnull,aShell)
{
// mFrame = aFrame;
mListener = nsnull;
}
//-----------------------------------------------------
// destruction
//-----------------------------------------------------
nsRootAccessible::~nsRootAccessible()
{
RemoveAccessibleEventListener(mListener);
}
/* attribute wstring accName; */
NS_IMETHODIMP nsRootAccessible::GetAccName(PRUnichar * *aAccName)
{
*aAccName = ToNewUnicode(NS_LITERAL_STRING("Mozilla Document"));
return NS_OK;
}
// helpers
nsIFrame* nsRootAccessible::GetFrame()
{
//if (!mFrame) {
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsIFrame* root = nsnull;
if (shell)
shell->GetRootFrame(&root);
return root;
//}
// return mFrame;
}
nsIAccessible* nsRootAccessible::CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return new nsHTMLBlockAccessible(aAccessible, aContent, aShell);
}
/* readonly attribute nsIAccessible accParent; */
NS_IMETHODIMP nsRootAccessible::GetAccParent(nsIAccessible * *aAccParent)
{
*aAccParent = nsnull;
return NS_OK;
}
/* readonly attribute wstring accRole; */
NS_IMETHODIMP nsRootAccessible::GetAccRole(PRUnichar * *aAccRole)
{
*aAccRole = ToNewUnicode(NS_LITERAL_STRING("client"));
return NS_OK;
}
/* void addAccessibleEventListener (in nsIAccessibleEventListener aListener); */
NS_IMETHODIMP nsRootAccessible::AddAccessibleEventListener(nsIAccessibleEventListener *aListener)
{
if (!mListener)
{
// add an event listener to the document
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsCOMPtr<nsIDocument> document;
shell->GetDocument(getter_AddRefs(document));
nsCOMPtr<nsIDOMEventReceiver> receiver;
if (NS_SUCCEEDED(document->QueryInterface(NS_GET_IID(nsIDOMEventReceiver), getter_AddRefs(receiver))) && receiver)
{
nsresult rv = receiver->AddEventListenerByIID(NS_STATIC_CAST(nsIDOMFocusListener *, this), NS_GET_IID(nsIDOMFocusListener));
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
}
}
// create a weak reference to the listener
mListener = aListener;
return NS_OK;
}
/* void removeAccessibleEventListener (in nsIAccessibleEventListener aListener); */
NS_IMETHODIMP nsRootAccessible::RemoveAccessibleEventListener(nsIAccessibleEventListener *aListener)
{
if (mListener)
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsCOMPtr<nsIDocument> document;
if (!shell)
return NS_OK;
shell->GetDocument(getter_AddRefs(document));
nsCOMPtr<nsIDOMEventReceiver> erP;
if (NS_SUCCEEDED(document->QueryInterface(NS_GET_IID(nsIDOMEventReceiver), getter_AddRefs(erP))) && erP)
{
nsresult rv = erP->RemoveEventListenerByIID(NS_STATIC_CAST(nsIDOMFocusListener *, this), NS_GET_IID(nsIDOMFocusListener));
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
}
}
mListener = nsnull;
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent)
{
if (mListener) {
nsCOMPtr<nsIDOMEventTarget> t;
aEvent->GetOriginalTarget(getter_AddRefs(t));
// create and accessible for the target
nsCOMPtr<nsIContent> content = do_QueryInterface(t);
if (!content)
return NS_OK;
if (mCurrentFocus == content)
return NS_OK;
mCurrentFocus = content;
nsIFrame* frame = nsnull;
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
shell->GetPrimaryFrameFor(content, &frame);
if (!frame)
return NS_OK;
nsCOMPtr<nsIAccessible> a = do_QueryInterface(frame);
if (!a)
a = do_QueryInterface(content);
nsCOMPtr<nsIAccessible> na = CreateNewAccessible(a, content, mPresShell);
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_FOCUS, na);
}
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::Focus(nsIDOMEvent* aEvent)
{
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::Blur(nsIDOMEvent* aEvent)
{
return NS_OK;
}

View File

@@ -0,0 +1,70 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _nsRootAccessible_H_
#define _nsRootAccessible_H_
#include "nsAccessible.h"
#include "nsIAccessibleEventReceiver.h"
#include "nsIAccessibleEventListener.h"
#include "nsIDOMFocusListener.h"
class nsRootAccessible : public nsAccessible,
public nsIAccessibleEventReceiver,
public nsIDOMFocusListener
{
NS_DECL_ISUPPORTS_INHERITED
public:
nsRootAccessible(nsIWeakReference* aShell, nsIFrame* aFrame = nsnull);
virtual ~nsRootAccessible();
/* attribute wstring accName; */
NS_IMETHOD GetAccName(PRUnichar * *aAccName);
NS_IMETHOD GetAccParent(nsIAccessible * *aAccParent);
NS_IMETHOD GetAccRole(PRUnichar * *aAccRole);
// ----- nsIAccessibleEventReceiver ------
NS_IMETHOD AddAccessibleEventListener(nsIAccessibleEventListener *aListener);
NS_IMETHOD RemoveAccessibleEventListener(nsIAccessibleEventListener *aListener);
// ----- nsIDOMEventListener --------
NS_IMETHOD HandleEvent(nsIDOMEvent* anEvent);
NS_IMETHOD Focus(nsIDOMEvent* aEvent);
NS_IMETHOD Blur(nsIDOMEvent* aEvent);
protected:
virtual nsIFrame* GetFrame();
virtual nsIAccessible* CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
// not a com pointer. We don't own the listener
// it is the callers responsibility to remove the listener
// otherwise we will get into circular referencing problems
nsIAccessibleEventListener* mListener;
nsCOMPtr<nsIContent> mCurrentFocus;
};
#endif

View File

@@ -0,0 +1,717 @@
/* -*- 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.
*
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
* Contributor(s):
*/
#include "nsSelectAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsRootAccessible.h"
#include "nsINameSpaceManager.h"
#include "nsMutableAccessible.h"
#include "nsLayoutAtoms.h"
#include "nsIDOMMenuListener.h"
#include "nsIDOMEventReceiver.h"
#include "nsReadableUtils.h"
class nsSelectChildAccessible : public nsAccessible,
public nsIDOMMenuListener
{
public:
NS_DECL_ISUPPORTS_INHERITED
nsSelectChildAccessible(nsIAtom* aPopupAtom, nsIContent* aSelectContent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsSelectChildAccessible();
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccValue(PRUnichar **_retval);
virtual nsIAccessible* CreateNewNextAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewPreviousAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
// popup listener
NS_IMETHOD Create(nsIDOMEvent* aEvent);
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Destroy(nsIDOMEvent* aEvent);
NS_IMETHOD Action(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
nsCOMPtr<nsIAtom> mPopupAtom;
nsCOMPtr<nsIContent> mSelectContent;
PRBool mRegistered;
PRBool mOpen;
};
NS_IMPL_ISUPPORTS_INHERITED(nsSelectChildAccessible, nsAccessible, nsIDOMMenuListener)
class nsSelectWindowAccessible : public nsAccessible,
public nsIDOMMenuListener
{
public:
NS_DECL_ISUPPORTS_INHERITED
nsSelectWindowAccessible(nsIAtom* aPopupAtom, nsIAccessible* aParent, nsIAccessible* aPrev, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsSelectWindowAccessible();
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccExtState(PRUint32 *_retval);
// popup listener
NS_IMETHOD Create(nsIDOMEvent* aEvent);
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Destroy(nsIDOMEvent* aEvent);
NS_IMETHOD Action(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
// helpers
virtual nsIFrame* GetBoundsFrame();
nsCOMPtr<nsIAccessible> mParent;
nsCOMPtr<nsIAccessible> mPrev;
nsCOMPtr<nsIAtom> mPopupAtom;
PRBool mRegistered;
PRBool mOpen;
};
NS_IMPL_ISUPPORTS_INHERITED(nsSelectWindowAccessible, nsAccessible, nsIDOMMenuListener)
class nsSelectListAccessible : public nsAccessible
{
public:
nsSelectListAccessible(nsIAtom* aPopupAtom, nsIAccessible* aParent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsSelectListAccessible() {}
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
virtual void GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList);
virtual nsIAccessible* CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
nsCOMPtr<nsIAtom> mPopupAtom;
nsCOMPtr<nsIAccessible> mParent;
};
class nsListChildAccessible : public nsAccessible
{
public:
nsListChildAccessible(nsIAtom* aPopupAtom, nsIContent* aSelectContent, nsIAccessible* aParent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual ~nsListChildAccessible() {}
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
virtual void GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList);
virtual nsIAccessible* CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
nsCOMPtr<nsIAccessible> mParent;
nsCOMPtr<nsIAtom> mPopupAtom;
nsCOMPtr<nsIContent> mSelectContent;
};
//---------
nsSelectAccessible::nsSelectAccessible(nsIAtom* aPopupAtom,
nsIAccessible* aAccessible,
nsIContent* aContent,
nsIWeakReference* aShell)
:nsAccessible(aAccessible, aContent, aShell)
{
mPopupAtom = aPopupAtom;
}
NS_IMETHODIMP nsSelectAccessible::GetAccValue(PRUnichar **_retval)
{
// our value is our first child's value. Which is the combo boxes text.
nsCOMPtr<nsIAccessible> text;
nsresult rv = GetAccFirstChild(getter_AddRefs(text));
if (NS_FAILED(rv)) {
*_retval = nsnull;
return rv;
}
if (!text) {
*_retval = nsnull;
return NS_ERROR_FAILURE;
}
// look at our role
return text->GetAccValue(_retval);
}
NS_IMETHODIMP nsSelectAccessible::GetAccName(PRUnichar **_retval)
{
*_retval = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSelectAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("combo box"));
return NS_OK;
}
NS_IMETHODIMP nsSelectAccessible::GetAccLastChild(nsIAccessible **_retval)
{
// get the last child. Wrap it with a connector that connects it to the window accessible
nsCOMPtr<nsIAccessible> last;
nsresult rv = nsAccessible::GetAccLastChild(getter_AddRefs(last));
if (NS_FAILED(rv))
return rv;
if (!last) {
// we have a parent but not previous
*_retval = new nsSelectWindowAccessible(mPopupAtom, this, nsnull, nsnull, mContent, mPresShell);
} else {
*_retval = last;
}
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
// get the last child. Wrap it with a connector that connects it to the window accessible
nsCOMPtr<nsIAccessible> first;
nsresult rv = nsAccessible::GetAccFirstChild(getter_AddRefs(first));
if (NS_FAILED(rv))
return rv;
if (!first) {
*_retval = new nsSelectWindowAccessible(mPopupAtom, this, nsnull, nsnull, mContent, mPresShell);
} else {
*_retval = first;
}
NS_ADDREF(*_retval);
return NS_OK;
}
nsIAccessible* nsSelectAccessible::CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewLastAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsSelectAccessible::CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsSelectChildAccessible(mPopupAtom, mContent, aAccessible, aContent, aShell);
}
NS_IMETHODIMP nsSelectAccessible::GetAccChildCount(PRInt32 *_retval)
{
nsresult rv = nsAccessible::GetAccChildCount(_retval);
if (NS_FAILED(rv))
return rv;
// always have one more that is our window child
(*_retval)++;
return NS_OK;
}
//--------------------
nsSelectChildAccessible::nsSelectChildAccessible(nsIAtom* aPopupAtom, nsIContent* aSelectContent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell):
nsAccessible(aAccessible, aContent, aShell)
{
mPopupAtom = aPopupAtom;
mSelectContent = aSelectContent;
mRegistered = PR_FALSE;
mOpen = PR_FALSE;
}
NS_IMETHODIMP nsSelectChildAccessible::GetAccValue(PRUnichar **_retval)
{
nsresult rv = NS_OK;
PRUnichar* string = nsnull;
// look at our role
rv = nsAccessible::GetAccRole(&string);
if (NS_FAILED(rv)) {
*_retval = nsnull;
return rv;
}
nsAutoString role(string);
// if its the text in the combo box then
// its value should be its name.
if (role.EqualsIgnoreCase("text")) {
rv = nsAccessible::GetAccName(_retval);
} else {
rv = nsAccessible::GetAccValue(_retval);
}
delete string;
return rv;
}
NS_IMETHODIMP nsSelectChildAccessible::GetAccRole(PRUnichar **_retval)
{
nsresult rv = NS_OK;
PRUnichar* string = nsnull;
// look at our role
rv = nsAccessible::GetAccRole(&string);
if (NS_FAILED(rv)) {
*_retval = nsnull;
return rv;
}
nsAutoString role(string);
// any text in the combo box is static
if (role.EqualsIgnoreCase("text")) {
// if it the comboboxes text. Make it static
*_retval = ToNewUnicode(NS_LITERAL_STRING("static text"));
} else {
rv = nsAccessible::GetAccRole(_retval);
}
delete string;
return rv;
}
NS_IMETHODIMP nsSelectChildAccessible::GetAccName(PRUnichar **_retval)
{
nsresult rv = NS_OK;
PRUnichar* string = nsnull;
// look at our role
nsAccessible::GetAccRole(&string);
nsAutoString role(string);
// if button then we need to make the name be open or close
if (role.EqualsIgnoreCase("push button"))
{
// if its a button and not already registered,
// register ourselves as a popup listener
if (!mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver = do_QueryInterface(mSelectContent);
if (!eventReceiver) {
*_retval = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
eventReceiver->AddEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE);
mRegistered = PR_TRUE;
}
// get the current state open or closed
// set _retval to it.
// notice its supposed to be reversed. Close if opened
// and Open if closed.
if (mOpen)
*_retval = ToNewUnicode(NS_LITERAL_STRING("Close"));
else
*_retval = ToNewUnicode(NS_LITERAL_STRING("Open"));
} else {
/*rv = nsAccessible::GetAccName(_retval);*/
rv = NS_ERROR_NOT_IMPLEMENTED;
*_retval = nsnull;
}
delete string;
return rv;
}
nsSelectChildAccessible::~nsSelectChildAccessible()
{
if (mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver = do_QueryInterface(mSelectContent);
if (eventReceiver)
eventReceiver->RemoveEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE);
}
}
NS_IMETHODIMP nsSelectChildAccessible::Create(nsIDOMEvent* aEvent)
{
mOpen = PR_TRUE;
printf("Open\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectChildAccessible::Destroy(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
printf("Close\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectChildAccessible::Close(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
printf("Close\n");
/* TBD send state change event */
return NS_OK;
}
nsIAccessible* nsSelectChildAccessible::CreateNewNextAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
return CreateNewPreviousAccessible(aAccessible, aContent, aShell);
}
nsIAccessible* nsSelectChildAccessible::CreateNewPreviousAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsSelectChildAccessible(mPopupAtom, mSelectContent, aAccessible, aContent, aShell);
}
NS_IMETHODIMP nsSelectChildAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> next;
nsresult rv = nsAccessible::GetAccNextSibling(getter_AddRefs(next));
if (NS_FAILED(rv))
return rv;
if (!next) {
// ok no more siblings. Lets create our window
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsSelectWindowAccessible(mPopupAtom, parent, nsnull, nsnull, mSelectContent, mPresShell);
} else {
*_retval = next;
}
NS_ADDREF(*_retval);
return NS_OK;
}
//---------------------
nsSelectWindowAccessible::nsSelectWindowAccessible(nsIAtom* aPopupAtom, nsIAccessible* aParent, nsIAccessible* aPrev, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
:nsAccessible(aAccessible, aContent, aShell)
{
mParent = aParent;
mPrev = aPrev;
mPopupAtom = aPopupAtom;
mRegistered = PR_FALSE;
mOpen = PR_FALSE;
}
nsSelectWindowAccessible::~nsSelectWindowAccessible()
{
if (mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver = do_QueryInterface(mContent);
if (eventReceiver)
eventReceiver->RemoveEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE);
}
}
NS_IMETHODIMP nsSelectWindowAccessible::Create(nsIDOMEvent* aEvent)
{
mOpen = PR_TRUE;
printf("Open\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::Destroy(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
printf("Close\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::Close(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
printf("Close\n");
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccState(PRUint32 *_retval)
{
// not not already one register ourselves as a popup listener
if (!mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver = do_QueryInterface(mContent);
if (!eventReceiver) {
*_retval = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}
nsresult rv = eventReceiver->AddEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE);
if (NS_FAILED(rv)) {
*_retval = 0;
return rv;
}
mRegistered = PR_TRUE;
}
// if open we are visible if closed we are invisible
// set _retval to it.
if (mOpen)
*_retval |= STATE_DEFAULT;
else
*_retval |= STATE_INVISIBLE;
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccExtState(PRUint32 *_retval)
{
*_retval=0;
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccName(PRUnichar **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("window"));
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = mPrev;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = new nsSelectListAccessible(mPopupAtom, this, nsnull, mContent, mPresShell);
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = new nsSelectListAccessible(mPopupAtom, this, nsnull, mContent, mPresShell);
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectWindowAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 1;
return NS_OK;
}
/*
NS_IMETHODIMP nsSelectWindowAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
*x = *y = *width = *height = 0;
return NS_OK;
}
*/
nsIFrame* nsSelectWindowAccessible::GetBoundsFrame()
{
// get our frame
nsIFrame* frame = GetFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
// get its first popup child that should be the window
frame->FirstChild(context, mPopupAtom, &frame);
return frame;
}
//----------
nsSelectListAccessible::nsSelectListAccessible(nsIAtom* aPopupAtom, nsIAccessible* aParent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
:nsAccessible(aAccessible, aContent, aShell)
{
mPopupAtom = aPopupAtom;
mParent = aParent;
}
void nsSelectListAccessible::GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList)
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(mContent, &frame);
if (aFrame == frame)
aList = mPopupAtom;
else
aList = nsnull;
}
NS_IMETHODIMP nsSelectListAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
return mParent->AccGetBounds(x,y,width,height);
}
NS_IMETHODIMP nsSelectListAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsSelectListAccessible::GetAccName(PRUnichar **_retval)
{
*_retval = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSelectListAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("list"));
return NS_OK;
}
NS_IMETHODIMP nsSelectListAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
NS_IMETHODIMP nsSelectListAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
nsIAccessible* nsSelectListAccessible::CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsListChildAccessible(mPopupAtom, mContent, this, aAccessible, aContent, aShell);
}
nsIAccessible* nsSelectListAccessible::CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsListChildAccessible(mPopupAtom, mContent, this, aAccessible, aContent, aShell);
}
//--------
nsListChildAccessible::nsListChildAccessible(nsIAtom* aPopupAtom, nsIContent* aSelectContent, nsIAccessible* aParent, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell):
nsAccessible(aAccessible, aContent, aShell)
{
mParent = aParent;
mPopupAtom = aPopupAtom;
mSelectContent = aSelectContent;
}
nsIAccessible* nsListChildAccessible::CreateNewAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell)
{
NS_ASSERTION(aAccessible && aContent,"Error not accessible or content");
return new nsListChildAccessible(mPopupAtom, mSelectContent, mParent, aAccessible, aContent, aShell);
}
void nsListChildAccessible::GetListAtomForFrame(nsIFrame* aFrame, nsIAtom*& aList)
{
nsCOMPtr<nsIPresShell> shell = do_QueryReferent(mPresShell);
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(mSelectContent, &frame);
if (aFrame == frame)
aList = mPopupAtom;
else
aList = nsnull;
}
NS_IMETHODIMP nsListChildAccessible::GetAccRole(PRUnichar **_retval)
{
*_retval = ToNewUnicode(NS_LITERAL_STRING("list item"));
return NS_OK;
}
NS_IMETHODIMP nsListChildAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}

View File

@@ -0,0 +1,51 @@
/* -*- 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.
*
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
* Contributor(s):
*/
#ifndef __nsSelectAccessible_h__
#define __nsSelectAccessible_h__
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIAtom.h"
class nsSelectAccessible : public nsAccessible
{
public:
nsSelectAccessible(nsIAtom* aPopupAtom, nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccName(PRUnichar **_retval);
NS_IMETHOD GetAccValue(PRUnichar **_retval);
NS_IMETHOD GetAccRole(PRUnichar **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
virtual ~nsSelectAccessible() {}
virtual nsIAccessible* CreateNewFirstAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
virtual nsIAccessible* CreateNewLastAccessible(nsIAccessible* aAccessible, nsIContent* aContent, nsIWeakReference* aShell);
nsCOMPtr<nsIAtom> mPopupAtom;
};
#endif

14
mozilla/aclocal.m4 vendored Normal file
View File

@@ -0,0 +1,14 @@
dnl
dnl Local autoconf macros used with mozilla
dnl The contents of this file are under the Public Domain.
dnl
builtin(include, build/autoconf/glib.m4)dnl
builtin(include, build/autoconf/gtk.m4)dnl
builtin(include, build/autoconf/gdk-pixbuf.m4)dnl
builtin(include, build/autoconf/libIDL.m4)dnl
builtin(include, build/autoconf/nspr.m4)dnl
dnl
define(MOZ_TOPSRCDIR,.)dnl MOZ_TOPSRCDIR is used in altoptions.m4
builtin(include, build/autoconf/altoptions.m4)dnl

1165
mozilla/allmakefiles.sh Executable file

File diff suppressed because it is too large Load Diff

42
mozilla/build/Makefile.in Normal file
View File

@@ -0,0 +1,42 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Mozilla Communicator client code,
# released March 31, 1998.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
ifneq ($(MOZ_WIDGET_TOOLKIT),os2)
DIRS = unix
endif
include $(topsrcdir)/config/rules.mk
# Install bloaturls.txt file for tinderbox Bloaty test.
install:: $(srcdir)/bloaturls.txt
$(INSTALL) $< $(DIST)/bin
# Install startup.html, startup test page.
install:: $(srcdir)/startup-test.html
$(INSTALL) $< $(DIST)/bin

View File

@@ -0,0 +1,179 @@
#! /usr/bin/env perl
#
# 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) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# acoutput-fast.pl - Quickly create makefiles that are in a common format.
#
# Most of the makefiles in mozilla only refer to two configure variables:
# @srcdir@
# @top_srcdir@
# However, configure does not know any better and it runs sed on each file
# with over 150 replacement rules (slow as molasses).
#
# This script takes a list of makefiles as input. For example,
#
# echo $MAKEFILES | acoutput-fast.pl
#
# The script creates each Makefile that only references @srcdir@ and
# @top_srcdir@. For other files, it lists them in a shell command that is
# printed to stdout:
#
# CONFIG_FILES="unhandled_files..."; export CONFIG_FILES
#
# This command can be used to have config.status create the unhandled
# files. For example,
#
# eval "echo $MAKEFILES | acoutput-fast.pl"
# AC_OUTPUT($MAKEFILES)
#
# Send comments, improvements, bugs to Steve Lamm (slamm@netscape.com).
#use File::Basename;
sub dirname {
my $dir = $_[0];
return '.' if not $dir =~ m%/%;
$dir =~ s%/[^/][^/]*$%%;
return $dir;
}
# Create one directory. Assumes it doesn't already exist.
# Will create parent(s) if needed.
sub create_directory {
my $dir = $_[0];
my $parent = dirname($dir);
create_directory($parent) if not -d $parent;
mkdir "$dir",0777;
}
# Create all the directories at once.
# This can be much faster than calling mkdir() for each one.
sub create_directories {
my @makefiles = @_;
my @dirs = ();
my $ac_file;
foreach $ac_file (@makefiles) {
push @dirs, dirname($ac_file);
}
# Call mkdir with the directories sorted by subdir count (how many /'s)
if (@dirs) {
my $mkdir_command = "mkdir -p ". join(' ', @dirs);
if (system($mkdir_command) != 0) {
print STDERR "Creating dirs all at once failed; trying one at atime\n";
foreach $dir (@dirs) {
if (not -d $dir) {
print STDERR "Creating directory $dir\n";
create_directory($dir);
}
}
}
}
}
if ($ARGV[0] =~ /^--srcdir=/) {
$ac_given_srcdir = (split /=/, shift @ARGV)[1];
} else {
$ac_given_srcdir = $0;
$ac_given_srcdir =~ s|/?build/autoconf/.*$||;
$ac_given_srcdir = '.' if $ac_given_srcdir eq '';
}
# Read list of makefiles from the stdin or,
# from files listed on the command-line.
#
@makefiles=();
push @makefiles, split while (<>);
# Create all the directories at once.
# This can be much faster than calling mkdir() for each one.
create_directories(@makefiles);
# Output the makefiles.
#
@unhandled=();
foreach $ac_file (@makefiles) {
if (not $ac_file =~ /Makefile$/ or $ac_file =~ /:/) {
push @unhandled, $ac_file;
next;
}
$ac_file_in = "$ac_given_srcdir/$ac_file.in";
$ac_dir = dirname($ac_file);
if ($ac_dir eq '.') {
$ac_dir_suffix = '';
$ac_dots = '';
} else {
$ac_dir_suffix = "/$ac_dir";
$ac_dir_suffix =~ s%^/\./%/%;
$ac_dots = $ac_dir_suffix;
$ac_dots =~ s%/[^/]*%../%g;
}
if ($ac_given_srcdir eq '.') {
$srcdir = '.';
if ($ac_dots eq '') {
$top_srcdir = '.'
} else {
$top_srcdir = $ac_dots;
$top_srcdir =~ s%/$%%;
}
} elsif ($ac_given_srcdir =~ m%^/% or $ac_given_srcdir =~ m%^.:/%) {
$srcdir = "$ac_given_srcdir$ac_dir_suffix";
$top_srcdir = "$ac_given_srcdir";
} else {
$srcdir = "$ac_dots$ac_given_srcdir$ac_dir_suffix";
$top_srcdir = "$ac_dots$ac_given_srcdir";
}
if (-e $ac_file) {
next if -M _ < -M $ac_file_in;
print STDERR "updating $ac_file\n";
} else {
print STDERR "creating $ac_file\n";
}
open (INFILE, "<$ac_file_in")
or ( warn "can't read $ac_file_in: No such file or directory\n" and next);
open (OUTFILE, ">$ac_file")
or ( warn "Unable to create $ac_file\n" and next);
while (<INFILE>) {
#if (/\@[_a-zA-Z]*\@.*\@[_a-zA-Z]*\@/) {
# warn "Two defines on a line:$ac_file:$.:$_";
# push @unhandled, $ac_file;
# last;
#}
s/\@srcdir\@/$srcdir/g;
s/\@top_srcdir\@/$top_srcdir/g;
if (/\@[_a-zA-Z]*\@/) {
warn "Unknown variable:$ac_file:$.:$_";
push @unhandled, $ac_file;
last;
}
print OUTFILE;
}
close INFILE;
close OUTFILE;
}
# Print the shell command to be evaluated by configure.
#
print "CONFIG_FILES=\"".join(' ', @unhandled)."\"; export CONFIG_FILES\n";

View File

@@ -0,0 +1,140 @@
dnl The contents of this file are subject to the Netscape Public
dnl License Version 1.1 (the "License"); you may not use this file
dnl except in compliance with the License. You may obtain a copy of
dnl the License at http://www.mozilla.org/NPL/
dnl
dnl Software distributed under the License is distributed on an "AS
dnl IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
dnl implied. See the License for the specific language governing
dnl rights and limitations under the License.
dnl
dnl The Original Code is mozilla.org code.
dnl
dnl The Initial Developer of the Original Code is Netscape
dnl Communications Corporation. Portions created by Netscape are
dnl Copyright (C) 1999 Netscape Communications Corporation. All
dnl Rights Reserved.
dnl
dnl Contributor(s):
dnl
dnl altoptions.m4 - An alternative way of specifying command-line options.
dnl These macros are needed to support a menu-based configurator.
dnl This file also includes the macro, AM_READ_MYCONFIG, for reading
dnl the 'myconfig.m4' file.
dnl Send comments, improvements, bugs to Steve Lamm (slamm@netscape.com).
dnl MOZ_ARG_ENABLE_BOOL( NAME, HELP, IF-YES [, IF-NO [, ELSE]])
dnl MOZ_ARG_DISABLE_BOOL( NAME, HELP, IF-NO [, IF-YES [, ELSE]])
dnl MOZ_ARG_ENABLE_STRING( NAME, HELP, IF-SET [, ELSE])
dnl MOZ_ARG_ENABLE_BOOL_OR_STRING( NAME, HELP, IF-YES, IF-NO, IF-SET[, ELSE]]])
dnl MOZ_ARG_WITH_BOOL( NAME, HELP, IF-YES [, IF-NO [, ELSE])
dnl MOZ_ARG_WITHOUT_BOOL( NAME, HELP, IF-NO [, IF-YES [, ELSE])
dnl MOZ_ARG_WITH_STRING( NAME, HELP, IF-SET [, ELSE])
dnl MOZ_ARG_HEADER(Comment)
dnl MOZ_CHECK_PTHREADS( NAME, IF-YES [, ELSE ])
dnl MOZ_READ_MYCONFIG() - Read in 'myconfig.sh' file
dnl MOZ_TWO_STRING_TEST(NAME, STR1, IF-STR1, STR2, IF-STR2 [, ELSE])
AC_DEFUN(MOZ_TWO_STRING_TEST,
[if test "$enableval" = "[$2]"; then
ifelse([$3], , :, [$3])
elif test "$enableval" = "[$4]"; then
ifelse([$5], , :, [$5])
else
ifelse([$6], ,
[AC_MSG_ERROR([Option, [$1], does not take an argument ($enableval).])],
[$6])
fi])
dnl MOZ_ARG_ENABLE_BOOL(NAME, HELP, IF-YES [, IF-NO [, ELSE]])
AC_DEFUN(MOZ_ARG_ENABLE_BOOL,
[AC_ARG_ENABLE([$1], [$2],
[MOZ_TWO_STRING_TEST([$1], yes, [$3], no, [$4])],
[$5])])
dnl MOZ_ARG_DISABLE_BOOL(NAME, HELP, IF-NO [, IF-YES [, ELSE]])
AC_DEFUN(MOZ_ARG_DISABLE_BOOL,
[AC_ARG_ENABLE([$1], [$2],
[MOZ_TWO_STRING_TEST([$1], no, [$3], yes, [$4])],
[$5])])
dnl MOZ_ARG_ENABLE_STRING(NAME, HELP, IF-SET [, ELSE])
AC_DEFUN(MOZ_ARG_ENABLE_STRING,
[AC_ARG_ENABLE([$1], [$2], [$3], [$4])])
dnl MOZ_ARG_ENABLE_BOOL_OR_STRING(NAME, HELP, IF-YES, IF-NO, IF-SET[, ELSE]]])
AC_DEFUN(MOZ_ARG_ENABLE_BOOL_OR_STRING,
[ifelse([$5], ,
[errprint([Option, $1, needs an "IF-SET" argument.
])
m4exit(1)],
[AC_ARG_ENABLE([$1], [$2],
[MOZ_TWO_STRING_TEST([$1], yes, [$3], no, [$4], [$5])],
[$6])])])
dnl MOZ_ARG_WITH_BOOL(NAME, HELP, IF-YES [, IF-NO [, ELSE])
AC_DEFUN(MOZ_ARG_WITH_BOOL,
[AC_ARG_WITH([$1], [$2],
[MOZ_TWO_STRING_TEST([$1], yes, [$3], no, [$4])],
[$5])])
dnl MOZ_ARG_WITHOUT_BOOL(NAME, HELP, IF-NO [, IF-YES [, ELSE])
AC_DEFUN(MOZ_ARG_WITHOUT_BOOL,
[AC_ARG_WITH([$1], [$2],
[MOZ_TWO_STRING_TEST([$1], no, [$3], yes, [$4])],
[$5])])
dnl MOZ_ARG_WITH_STRING(NAME, HELP, IF-SET [, ELSE])
AC_DEFUN(MOZ_ARG_WITH_STRING,
[AC_ARG_WITH([$1], [$2], [$3], [$4])])
dnl MOZ_ARG_HEADER(Comment)
dnl This is used by webconfig to group options
define(MOZ_ARG_HEADER, [# $1])
dnl
dnl Apparently, some systems cannot properly check for the pthread
dnl library unless <pthread.h> is included so we need to test
dnl using it
dnl
dnl MOZ_CHECK_PTHREADS(lib, success, failure)
AC_DEFUN(MOZ_CHECK_PTHREADS,
[
AC_MSG_CHECKING([for pthread_create in -l$1])
echo "
#include <pthread.h>
void *foo(void *v) { int a = 1; }
int main() {
pthread_t t;
if (!pthread_create(&t, 0, &foo, 0)) {
pthread_join(t, 0);
}
exit(0);
}" > dummy.c ;
echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -l[$1] $LDFLAGS $LIBS" 1>&5;
${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -l[$1] $LDFLAGS $LIBS 2>&5;
_res=$? ;
rm -f dummy.c dummy${ac_exeext} ;
if test "$_res" = "0"; then
AC_MSG_RESULT([yes])
[$2]
else
AC_MSG_RESULT([no])
[$3]
fi
])
dnl MOZ_READ_MYCONFIG() - Read in 'myconfig.sh' file
AC_DEFUN(MOZ_READ_MOZCONFIG,
[AC_REQUIRE([AC_INIT_BINSH])dnl
# Read in '.mozconfig' script to set the initial options.
# See the mozconfig2configure script for more details.
_AUTOCONF_TOOLS_DIR=`dirname [$]0`/[$1]/build/autoconf
. $_AUTOCONF_TOOLS_DIR/mozconfig2configure])
dnl This gets inserted at the top of the configure script
MOZ_READ_MOZCONFIG(MOZ_TOPSRCDIR)

View File

@@ -0,0 +1,54 @@
#!/bin/sh
#
# 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):
#
# clean-config.sh - Removes all files generated by mozilla configure.
# Only removes files from the topsrcdir. To clean up an objdir,
# simply remove the directory and start over.
#
# Usage:
# 1. cd <topsrcdir>
# 2. build/autoconf/clean-config.sh
#
# Send comments, improvements, bugs to slamm@netscape.com
topsrcdir=`cd \`dirname $0\`/../..; pwd`
if [ ! -f configure.in ]; then
echo "clean-config.sh only cleans the source tree. To run," 2>&1
echo " cd $topsrcdir; build/autoconf/clean-config.sh" 2>&1
echo " (To clean a separate objdir, simple remove the directory.)" 2>&1
exit 1
fi
if [ -f mailnews/makefiles ]; then
MOZ_MAIL_NEWS=1
export MOZ_MAIL_NEWS
fi
. allmakefiles.sh
rm -fr $MAKEFILES \
config-defs.h \
config.cache \
config.log \
config.status \
$NULL

1391
mozilla/build/autoconf/config.guess vendored Executable file

File diff suppressed because it is too large Load Diff

1373
mozilla/build/autoconf/config.sub vendored Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,166 @@
# Configure paths for gdk-pixbuf
# Elliot Lee 2000-01-10
# stolen from Raph Levien 98-11-18
# stolen from Manish Singh 98-9-30
# stolen back from Frank Belew
# stolen from Manish Singh
# Shamelessly stolen from Owen Taylor
dnl AM_PATH_GDK_PIXBUF([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for GDK_PIXBUF, and define GDK_PIXBUF_CFLAGS and GDK_PIXBUF_LIBS
dnl
AC_DEFUN(AM_PATH_GDK_PIXBUF,
[dnl
dnl Get the cflags and libraries from the gdk-pixbuf-config script
dnl
AC_ARG_WITH(gdk-pixbuf-prefix,[ --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed (optional)],
gdk_pixbuf_prefix="$withval", gdk_pixbuf_prefix="")
AC_ARG_WITH(gdk-pixbuf-exec-prefix,[ --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional)],
gdk_pixbuf_exec_prefix="$withval", gdk_pixbuf_exec_prefix="")
AC_ARG_ENABLE(gdk_pixbuftest, [ --disable-gdk_pixbuftest Do not try to compile and run a test GDK_PIXBUF program],
, enable_gdk_pixbuftest=yes)
if test x$gdk_pixbuf_exec_prefix != x ; then
gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix"
if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config
fi
fi
if test x$gdk_pixbuf_prefix != x ; then
gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix"
if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config
fi
fi
AC_PATH_PROG(GDK_PIXBUF_CONFIG, gdk-pixbuf-config, no)
min_gdk_pixbuf_version=ifelse([$1], ,0.2.5,$1)
AC_MSG_CHECKING(for GDK_PIXBUF - version >= $min_gdk_pixbuf_version)
no_gdk_pixbuf=""
if test "$GDK_PIXBUF_CONFIG" = "no" ; then
no_gdk_pixbuf=yes
else
GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags`
GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs`
gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_gdk_pixbuftest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
LIBS="$LIBS $GDK_PIXBUF_LIBS"
dnl
dnl Now check if the installed GDK_PIXBUF is sufficiently new. (Also sanity
dnl checks the results of gdk-pixbuf-config to some extent
dnl
rm -f conf.gdk_pixbuftest
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
char*
my_strdup (char *str)
{
char *new_str;
if (str)
{
new_str = malloc ((strlen (str) + 1) * sizeof(char));
strcpy (new_str, str);
}
else
new_str = NULL;
return new_str;
}
int main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.gdk_pixbuftest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = my_strdup("$min_gdk_pixbuf_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_gdk_pixbuf_version");
exit(1);
}
if (($gdk_pixbuf_major_version > major) ||
(($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) ||
(($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version);
printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro);
printf("*** best to upgrade to the required version.\n");
printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n");
printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n");
printf("*** config.cache before re-running configure\n");
return 1;
}
}
],, no_gdk_pixbuf=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_gdk_pixbuf" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$GDK_PIXBUF_CONFIG" = "no" ; then
echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found"
echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the"
echo "*** full path to gdk-pixbuf-config."
else
if test -f conf.gdk_pixbuftest ; then
:
else
echo "*** Could not run GDK_PIXBUF test program, checking why..."
CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
LIBS="$LIBS $GDK_PIXBUF_LIBS"
AC_TRY_LINK([
#include <stdio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
], [ return 0; ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong"
echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system"
echo "***"
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed"
echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you"
echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
GDK_PIXBUF_CFLAGS=""
GDK_PIXBUF_LIBS=""
ifelse([$3], , :, [$3])
fi
AC_SUBST(GDK_PIXBUF_CFLAGS)
AC_SUBST(GDK_PIXBUF_LIBS)
rm -f conf.gdk_pixbuftest
])

View File

@@ -0,0 +1,200 @@
# Configure paths for GLIB
# Owen Taylor 97-11-3
dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or
dnl gthread is specified in MODULES, pass to glib-config
dnl
AC_DEFUN(AM_PATH_GLIB,
[dnl
dnl Get the cflags and libraries from the glib-config script
dnl
AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)],
glib_config_prefix="$withval", glib_config_prefix="")
AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX
Exec prefix where GLIB is installed (optional)],
glib_config_exec_prefix="$withval", glib_config_exec_prefix="")
AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program],
, enable_glibtest=yes)
if test x$glib_config_exec_prefix != x ; then
glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
if test x${GLIB_CONFIG+set} != xset ; then
GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
fi
fi
if test x$glib_config_prefix != x ; then
glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
if test x${GLIB_CONFIG+set} != xset ; then
GLIB_CONFIG=$glib_config_prefix/bin/glib-config
fi
fi
for module in . $4
do
case "$module" in
gmodule)
glib_config_args="$glib_config_args gmodule"
;;
gthread)
glib_config_args="$glib_config_args gthread"
;;
esac
done
dnl Force a version check to keep upgraded versions from being overridden by the cached value.
unset ac_cv_path_GLIB_CONFIG
AC_PATH_PROG(GLIB_CONFIG, glib-config, no)
min_glib_version=ifelse([$1], ,0.99.7,$1)
AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
no_glib=""
if test "$GLIB_CONFIG" = "no" ; then
no_glib=yes
else
GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_glibtest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $GLIB_CFLAGS"
LIBS="$GLIB_LIBS $LIBS"
dnl
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
dnl checks the results of glib-config to some extent
dnl
rm -f conf.glibtest
AC_TRY_RUN([
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.glibtest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = g_strdup("$min_glib_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_glib_version");
exit(1);
}
if ((glib_major_version != $glib_config_major_version) ||
(glib_minor_version != $glib_config_minor_version) ||
(glib_micro_version != $glib_config_micro_version))
{
printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
glib_major_version, glib_minor_version, glib_micro_version);
printf ("*** was found! If glib-config was correct, then it is best\n");
printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
(glib_minor_version != GLIB_MINOR_VERSION) ||
(glib_micro_version != GLIB_MICRO_VERSION))
{
printf("*** GLIB header files (version %d.%d.%d) do not match\n",
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
printf("*** library (version %d.%d.%d)\n",
glib_major_version, glib_minor_version, glib_micro_version);
}
else
{
if ((glib_major_version > major) ||
((glib_major_version == major) && (glib_minor_version > minor)) ||
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
glib_major_version, glib_minor_version, glib_micro_version);
printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the glib-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
printf("*** correct copy of glib-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_glib" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$GLIB_CONFIG" = "no" ; then
echo "*** The glib-config script installed by GLIB could not be found"
echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the GLIB_CONFIG environment variable to the"
echo "*** full path to glib-config."
else
if test -f conf.glibtest ; then
:
else
echo "*** Could not run GLIB test program, checking why..."
CFLAGS="$CFLAGS $GLIB_CFLAGS"
LIBS="$LIBS $GLIB_LIBS"
AC_TRY_LINK([
#include <glib.h>
#include <stdio.h>
], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding GLIB or finding the wrong"
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system"
echo "***"
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
echo "***"
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
echo "*** came with the system with the command"
echo "***"
echo "*** rpm --erase --nodeps gtk gtk-devel" ],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
GLIB_CFLAGS=""
GLIB_LIBS=""
ifelse([$3], , :, [$3])
fi
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
rm -f conf.glibtest
])

View File

@@ -0,0 +1,191 @@
# Configure paths for GTK+
# Owen Taylor 97-11-3
# (copy of gtk.m4 (public domain))
dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
dnl
AC_DEFUN(AM_PATH_GTK,
[dnl
dnl Get the cflags and libraries from the gtk-config script
dnl
AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
gtk_config_prefix="$withval", gtk_config_prefix="")
AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX
Exec prefix where GTK is installed (optional)],
gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program],
, enable_gtktest=yes)
if test x$gtk_config_exec_prefix != x ; then
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
if test x${GTK_CONFIG+set} != xset ; then
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
fi
fi
if test x$gtk_config_prefix != x ; then
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
if test x${GTK_CONFIG+set} != xset ; then
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
fi
fi
dnl Force a version check to keep upgraded versions from being overridden by the cached value.
unset ac_cv_path_GTK_CONFIG
AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
min_gtk_version=ifelse([$1], ,0.99.7,$1)
AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
no_gtk=""
if test "$GTK_CONFIG" = "no" ; then
no_gtk=yes
else
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_gtktest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $GTK_CFLAGS"
LIBS="$LIBS $GTK_LIBS"
dnl
dnl Now check if the installed GTK is sufficiently new. (Also sanity
dnl checks the results of gtk-config to some extent
dnl
rm -f conf.gtktest
AC_TRY_RUN([
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.gtktest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = g_strdup("$min_gtk_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_gtk_version");
exit(1);
}
if ((gtk_major_version != $gtk_config_major_version) ||
(gtk_minor_version != $gtk_config_minor_version) ||
(gtk_micro_version != $gtk_config_micro_version))
{
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
gtk_major_version, gtk_minor_version, gtk_micro_version);
printf ("*** was found! If gtk-config was correct, then it is best\n");
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
(gtk_minor_version != GTK_MINOR_VERSION) ||
(gtk_micro_version != GTK_MICRO_VERSION))
{
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
printf("*** library (version %d.%d.%d)\n",
gtk_major_version, gtk_minor_version, gtk_micro_version);
}
#endif /* defined (GTK_MAJOR_VERSION) ... */
else
{
if ((gtk_major_version > major) ||
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
gtk_major_version, gtk_minor_version, gtk_micro_version);
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_gtk" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$GTK_CONFIG" = "no" ; then
echo "*** The gtk-config script installed by GTK could not be found."
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the GTK_CONFIG environment variable to the"
echo "*** full path to gtk-config."
echo "*** GTK+ is available from ftp://ftp.gtk.org/pub/gtk"
else
if test -f conf.gtktest ; then
:
else
echo "*** Could not run GTK test program, checking why..."
CFLAGS="$CFLAGS $GTK_CFLAGS"
LIBS="$LIBS $GTK_LIBS"
AC_TRY_LINK([
#include <gtk/gtk.h>
#include <stdio.h>
], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding GTK or finding the wrong"
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system"
echo "***"
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
echo "***"
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
echo "*** came with the system with the command"
echo "***"
echo "*** rpm --erase --nodeps gtk gtk-devel" ],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
GTK_CFLAGS=""
GTK_LIBS=""
ifelse([$3], , :, [$3])
fi
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
rm -f conf.gtktest
])

119
mozilla/build/autoconf/install-sh Executable file
View File

@@ -0,0 +1,119 @@
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5; it is not part of GNU.
#
# $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $
#
# This script is compatible with the BSD install script, but was written
# from scratch.
#
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
instcmd="$mvprog"
chmodcmd=""
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
fi
# Make a temp file name in the proper directory.
dstdir=`dirname $dst`
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name
$doit $instcmd $src $dsttmp
# and set any options; do chmod last to preserve setuid bits
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi
# Now rename the file to the real destination.
$doit $rmcmd $dst
$doit $mvcmd $dsttmp $dst
exit 0

View File

@@ -0,0 +1,198 @@
# Configure paths for LIBIDL
dnl AM_PATH_LIBIDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
dnl Test for LIBIDL, and define LIBIDL_CFLAGS and LIBIDL_LIBS
dnl
AC_DEFUN(AM_PATH_LIBIDL,
[dnl
dnl Get the cflags and libraries from the libIDL-config script
dnl
AC_ARG_WITH(libIDL-prefix,[ --with-libIDL-prefix=PFX
Prefix where libIDL is installed (optional)],
libIDL_config_prefix="$withval", libIDL_config_prefix="")
AC_ARG_WITH(libIDL-exec-prefix,[ --with-libIDL-exec-prefix=PFX
Exec prefix where libIDL is installed (optional)],
libIDL_config_exec_prefix="$withval", libIDL_config_exec_prefix="")
AC_ARG_ENABLE(libIDLtest, [ --disable-libIDLtest Do not try to compile and run a test libIDL program],
, enable_libIDLtest=yes)
if test x$libIDL_config_exec_prefix != x ; then
libIDL_config_args="$libIDL_config_args --exec-prefix=$libIDL_config_exec_prefix"
if test x${LIBIDL_CONFIG+set} != xset ; then
LIBIDL_CONFIG=$libIDL_config_exec_prefix/bin/libIDL-config
fi
fi
if test x$libIDL_config_prefix != x ; then
libIDL_config_args="$libIDL_config_args --prefix=$libIDL_config_prefix"
if test x${LIBIDL_CONFIG+set} != xset ; then
LIBIDL_CONFIG=$libIDL_config_prefix/bin/libIDL-config
fi
fi
AM_PATH_GLIB(1.2.0)
dnl Force a version check to keep upgraded versions from being overridden by the cached value.
unset ac_cv_path_LIBIDL_CONFIG
AC_PATH_PROG(LIBIDL_CONFIG, libIDL-config, no)
min_libIDL_version=ifelse([$1], ,0.6.0,$1)
AC_MSG_CHECKING(for libIDL - version >= $min_libIDL_version)
no_libIDL=""
if test "$LIBIDL_CONFIG" = "no" ; then
no_libIDL=yes
else
LIBIDL_CFLAGS=`$LIBIDL_CONFIG $libIDL_config_args --cflags`
LIBIDL_LIBS=`$LIBIDL_CONFIG $libIDL_config_args --libs`
# hack to allow us to keep using libIDL 0.6.3-0.6.7. Anyone may remove
# this after we start requiring libIDL 0.6.8 or anything higher
LIBIDL_CFLAGS="$GLIB_CFLAGS $LIBIDL_CFLAGS"
LIBIDL_LIBS="$GLIB_LIBS $LIBIDL_LIBS"
libIDL_config_major_version=`$LIBIDL_CONFIG $libIDL_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
libIDL_config_minor_version=`$LIBIDL_CONFIG $libIDL_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
libIDL_config_micro_version=`$LIBIDL_CONFIG $libIDL_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_libIDLtest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $LIBIDL_CFLAGS"
LIBS="$LIBIDL_LIBS $LIBS"
dnl
dnl Now check if the installed LIBIDL is sufficiently new.
dnl
rm -f conf.libIDLtest
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <libIDL/IDL.h>
int
main ()
{
int major, minor, micro;
int libIDL_major_version;
int libIDL_minor_version;
int libIDL_micro_version;
char *tmp_version;
system ("touch conf.libIDLtest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = g_strdup ("$min_libIDL_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_libIDL_version");
exit(1);
}
tmp_version = g_strdup (IDL_get_libver_string ());
if (sscanf(tmp_version, "%d.%d.%d",
&libIDL_major_version,
&libIDL_minor_version,
&libIDL_micro_version) != 3) {
printf("%s, bad version string\n", tmp_version);
exit(1);
}
if ((libIDL_major_version != $libIDL_config_major_version) ||
(libIDL_minor_version != $libIDL_config_minor_version) ||
(libIDL_micro_version != $libIDL_config_micro_version))
{
printf("\n*** 'libIDL-config --version' returned %d.%d.%d, but libIDL (%d.%d.%d)\n",
$libIDL_config_major_version, $libIDL_config_minor_version, $libIDL_config_micro_version,
libIDL_major_version, libIDL_minor_version, libIDL_micro_version);
printf ("*** was found! If libIDL-config was correct, then it is best\n");
printf ("*** to remove the old version of LIBIDL. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If libIDL-config was wrong, set the environment variable LIBIDL_CONFIG\n");
printf("*** to point to the correct copy of libIDL-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
else if ((libIDL_major_version != LIBIDL_MAJOR_VERSION) ||
(libIDL_minor_version != LIBIDL_MINOR_VERSION) ||
(libIDL_micro_version != LIBIDL_MICRO_VERSION))
{
printf("\n*** libIDL header files (version %d.%d.%d) do not match\n",
LIBIDL_MAJOR_VERSION, LIBIDL_MINOR_VERSION, LIBIDL_MICRO_VERSION);
printf("*** library (version %d.%d.%d)\n",
libIDL_major_version, libIDL_minor_version, libIDL_micro_version);
}
else
{
if ((libIDL_major_version > major) ||
((libIDL_major_version == major) && (libIDL_minor_version > minor)) ||
((libIDL_major_version == major) && (libIDL_minor_version == minor) && (libIDL_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of libIDL (%d.%d.%d) was found.\n",
libIDL_major_version, libIDL_minor_version, libIDL_micro_version);
printf("*** You need at least libIDL version %d.%d.%d.\n",
major, minor, micro);
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the libIDL-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of libIDL, but you can also set the LIBIDL_CONFIG environment to point to the\n");
printf("*** correct copy of libIDL-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}
],, no_libIDL=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_libIDL" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$LIBIDL_CONFIG" = "no" ; then
echo "*** The libIDL-config script installed by libIDL could not be found"
echo "*** If libIDL was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the LIBIDL_CONFIG environment variable to the"
echo "*** full path to libIDL-config."
else
if test -f conf.libIDLtest ; then
:
else
echo "*** Could not run libIDL test program, checking why..."
CFLAGS="$CFLAGS $LIBIDL_CFLAGS"
LIBS="$LIBS $LIBIDL_LIBS"
AC_TRY_LINK([
#include <stdio.h>
#include <stdlib.h>
#include <libIDL/IDL.h>
], [ return IDL_get_libver_string ? 1 : 0; ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding libIDL or finding the wrong"
echo "*** version of LIBIDL. If it is not finding libIDL, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system"
echo "***"
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means libIDL was incorrectly installed"
echo "*** or that you have moved libIDL since it was installed. In the latter case, you"
echo "*** may want to edit the libIDL-config script: $LIBIDL_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
LIBIDL_CFLAGS=""
LIBIDL_LIBS=""
ifelse([$3], , :, [$3])
fi
AC_SUBST(LIBIDL_CFLAGS)
AC_SUBST(LIBIDL_LIBS)
rm -f conf.libIDLtest
])

View File

@@ -0,0 +1,280 @@
#! /usr/bin/env perl
# 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) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# make-makefiles - Quickly create Makefiles for subdirectories.
# Also, creates any needed subdirectories.
#
# usage: make-makefiles [ -t <topsrcdir> -d <depth> ] [ <subdir> | <subdir>/Makefile ] ...
# Send comments, improvements, bugs to Steve Lamm (slamm@netscape.com).
#$debug = 1;
# Determine various tree path variables
#
($topsrcdir, $depth, @makefiles) = parse_arguments(@ARGV);
$object_fullpath = `pwd`;
chdir $depth;
$object_root = `pwd`;
chomp $object_fullpath;
chomp $object_root;
# $source_subdir is the path from the object root to where
# 'make-makefile' was called. For example, if make-makefile was
# called from "mozilla/gfx/src", then $source_subdir would be
# "gfx/src/".
$source_subdir = "$object_fullpath/";
my $quoted_object_root = quotemeta($object_root);
$source_subdir =~ s|^$quoted_object_root/||;
# Prefix makefiles with $source_subdir so that paths
# will be relative to the top of the object tree.
#
for $makefile (@makefiles) {
$makefile = "$source_subdir$makefile";
}
create_directories(@makefiles);
# Find the path to the source directory based on how 'make-makefile'
# was invoked. The path is either relative to the object directory
# or an absolute path.
$given_srcdir = find_srcdir($topsrcdir, $depth);
if ($debug) {
warn "object_fullpath = $object_fullpath\n";
warn "object_root = $object_root\n";
warn "source_subdir = $source_subdir\n";
warn "makefiles = @makefiles\n";
warn "given_srcdir = $given_srcdir\n";
}
@unhandled = update_makefiles($given_srcdir, @makefiles);
run_config_status(@unhandled);
# end of Main
############################################################
sub dirname {
return $_[0] =~ /(.*)\/.*/ ? "$1" : '.';
}
# find_depth: Pull the value of DEPTH out of a Makefile (or Makefile.in)
sub find_depth {
my $depth = '';
open(MAKEFILE, "<$_[0]") || die "Unable to open $_[0]: $!\n";
while (<MAKEFILE>) {
next unless /^DEPTH\s*=\s*(\..*)/;
$depth = $1;
last;
}
close MAKEFILE;
return $depth;
}
sub parse_arguments {
my @args = @_;
my $depth = '';
my $topsrcdir = '';
my @makefiles = ();
while (1) {
if ($args[0] eq '-d') {
$depth = $args[1];
shift @args;
shift @args;
} elsif ($args[0] eq '-t') {
$topsrcdir = $args[1];
shift @args;
shift @args;
} else {
last;
}
}
if ($topsrcdir eq '') {
$topsrcdir = $0; # Figure out topsrcdir based on program name.
$topsrcdir =~ s|/?build/autoconf/.*$||;
}
if ($depth eq '') {
# Use $(DEPTH) in the Makefile or Makefile.in to determine the depth
if (-e "Makefile.in") {
$depth = find_depth("Makefile.in");
} elsif (-e "Makefile") {
$depth = find_depth("Makefile");
} elsif (-e "../Makefile") {
$depth = "../".find_depth("../Makefile");
$depth =~ s/\/\.$//;
} else {
warn "Unable to determine depth (e.g. ../..) to root of objdir tree.\n";
die "No Makefile(.in) present. Try running with '-d <depth>'\n";
}
}
# Build the list of makefiles to generate
#
@makefiles = ();
my $makefile;
foreach $makefile (@args) {
$makefile =~ s/\.in$//;
$makefile =~ s/\/$//;
$makefile =~ /Makefile$/ or $makefile .= "/Makefile";
push @makefiles, "$makefile";
}
@makefiles = "Makefile" unless @args;
return ($topsrcdir, $depth, @makefiles);
}
# Create all the directories at once.
# This can be much faster than calling mkdir() for each one.
sub create_directories {
my @makefiles = @_;
my @dirs = ();
my $ac_file;
foreach $ac_file (@makefiles) {
push @dirs, dirname($ac_file);
}
# Call mkdir with the directories sorted by subdir count (how many /'s)
system "mkdir -p ". join(' ', @dirs) if @dirs;
}
# Find the top of the source directory
# (Assuming that the executable is in $top_srcdir/build/autoconf)
sub find_srcdir {
my ($ac_given_srcdir, $depth) = @_;
if ($debug) {
print "ac_given_srcdir = $ac_given_srcdir\n";
print "depth = $depth\n";
}
if ($ac_given_srcdir =~ /^\./ and $depth ne '.') {
my $quoted_depth = quotemeta($depth);
$ac_given_srcdir =~ s|^$quoted_depth/?||;
}
if ($debug) {
print "ac_given_srcdir = $ac_given_srcdir\n";
}
$ac_given_srcdir = '.' if $ac_given_srcdir eq '';
return $ac_given_srcdir;
}
# Output the makefiles.
#
sub update_makefiles {
my ($ac_given_srcdir, @makefiles) = @_;
my @unhandled=();
my $ac_file;
foreach $ac_file (@makefiles) {
my $ac_file_in = "$ac_given_srcdir/${ac_file}.in";
my $ac_dir = dirname($ac_file);
my $ac_dots = '';
my $ac_dir_suffix = '';
my $srcdir = '.';
my $top_srcdir = '.';
# Determine $srcdir and $top_srcdir
#
if ($ac_dir ne '.') {
$ac_dir_suffix = "/$ac_dir";
$ac_dir_suffix =~ s%^/\./%/%;
$ac_dots = $ac_dir_suffix;
$ac_dots =~ s%/[^/]*%../%g;
}
if ($ac_given_srcdir eq '.') {
if ($ac_dots ne '') {
$top_srcdir = $ac_dots;
$top_srcdir =~ s%/$%%;
}
} elsif ($ac_given_srcdir =~ m%^/% or $ac_given_srcdir =~ m%^.:/%) {
$srcdir = "$ac_given_srcdir$ac_dir_suffix";
$top_srcdir = "$ac_given_srcdir";
} else {
$srcdir = "$ac_dots$ac_given_srcdir$ac_dir_suffix";
$top_srcdir = "$ac_dots$ac_given_srcdir";
}
if ($debug) {
print "ac_dir = $ac_dir\n";
print "ac_file = $ac_file\n";
print "ac_file_in = $ac_file_in\n";
print "srcdir = $srcdir\n";
print "top_srcdir = $top_srcdir\n";
print "cwd = " . `pwd` . "\n";
}
# Copy the file and make substitutions.
# @srcdir@ -> value of $srcdir
# @top_srcdir@ -> value of $top_srcdir
#
if (-e $ac_file) {
next if -M _ < -M $ac_file_in; # Next if Makefile is up-to-date.
warn "updating $ac_file\n";
} else {
warn "creating $ac_file\n";
}
open INFILE, "<$ac_file_in" or do {
warn "$0: Cannot read $ac_file_in: No such file or directory\n";
next;
};
open OUTFILE, ">$ac_file" or do {
warn "$0: Unable to create $ac_file\n";
next;
};
while (<INFILE>) {
#if (/\@[_a-zA-Z]*\@.*\@[_a-zA-Z]*\@/) {
# #warn "Two defines on a line:$ac_file:$.:$_";
# push @unhandled, $ac_file;
# last;
#}
s/\@srcdir\@/$srcdir/g;
s/\@top_srcdir\@/$top_srcdir/g;
if (/\@[_a-zA-Z]*\@/) {
#warn "Unknown variable:$ac_file:$.:$_";
push @unhandled, $ac_file;
last;
}
print OUTFILE;
}
close INFILE;
close OUTFILE;
}
return @unhandled;
}
sub run_config_status {
my @unhandled = @_;
# Run config.status with any unhandled files.
#
if (@unhandled) {
$ENV{CONFIG_FILES}= join ' ', @unhandled;
system "./config.status";
}
}

View File

@@ -0,0 +1,85 @@
#!/bin/sh
#
# 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 script will match a dir with a set of dirs.
#
# Usage: match-dir.sh match [dir1 dir2 ... dirn]
#
# Send comments, improvements, bugs to ramiro@netscape.com
#
if [ -f Makefile ]; then
MAKEFILE="Makefile"
else
if [ -f Makefile.in ]; then
MAKEFILE="Makefile.in"
else
echo
echo "There ain't no 'Makefile' or 'Makefile.in' over here: $pwd, dude."
echo
exit 1
fi
fi
# Use DEPTH in the Makefile.in to determine the depth
depth=`grep -w DEPTH ${MAKEFILE} | grep "\.\." | awk -F"=" '{ print $2; }'`
cwd=`pwd`
# Determine the depth count
n=`echo $depth | tr '/' ' ' | wc -w`
cd $depth
objdir=`pwd`
path=`echo $cwd | sed "s|^${objdir}/||"`
match=$path
for i in $*
do
# echo "Looking for $match in $i"
echo $i | grep -q -x $match
if [ $? -eq 0 ]
then
echo "1"
exit 0
fi
# echo "Looking for $i in $match"
echo $match | grep -q $i
if [ $? -eq 0 ]
then
echo "1"
exit 0
fi
done
echo "0"
exit 0

View File

@@ -0,0 +1,46 @@
#! /bin/sh
#
# 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) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Stephen Lamm <slamm@netscape.com>
#
# mozconfigfind - Loads options from .mozconfig onto configure's
# command-line. The .mozconfig file is searched for in the
# order:
# if $MOZCONFIG is set, use that.
# Otherwise, use $TOPSRCDIR/.mozconfig
# Otherwise, use $HOME/.mozconfig
#
topsrcdir=$1
for _config in $MOZCONFIG \
$MOZ_MYCONFIG \
$topsrcdir/.mozconfig \
$topsrcdir/mozconfig \
$topsrcdir/mozconfig.sh \
$topsrcdir/myconfig.sh \
$HOME/.mozconfig \
$HOME/.mozconfig.sh \
$HOME/.mozmyconfig.sh
do
if test -f $_config; then
echo $_config;
exit 0
fi
done

View File

@@ -0,0 +1,94 @@
#! /bin/sh
#
# 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) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Stephen Lamm <slamm@netscape.com>
#
# mozconfig2client-mk - Translates .mozconfig into options for client.mk.
# Prints defines to stdout.
#
# See mozconfig2configure for more details
print_header() {
_mozconfig=${MOZCONFIG:-$HOME/.mozconfig}
cat >> $tmp_file <<EOF
# gmake
# This file is automatically generated for client.mk.
# Do not edit. Edit $_mozconfig instead.
# To create a new .mozconfig file, you can visit,
# http://webtools.mozilla.org/build/config.cgi
EOF
}
ac_add_options() {
echo "# $* is used by configure (not client.mk)" >> $tmp_file
}
mk_add_options() {
for _opt
do
# Escape shell characters, space, tab, dollar, quote, backslash,
# and substitute '@<word>@' with '$(<word>)'.
_opt=`echo "$_opt" | sed -e 's/\([\"\\]\)/\\\1/g; s/@\([^@]*\)@/\$(\1)/g;'`
echo $_opt;
opts="${opts:+$opts^}$_opt";
done >> $tmp_file
}
mk_echo_options() {
echo "Adding client.mk options from $MOZCONFIG:"
IFS=^
for _opt in $opts; do
echo " $_opt"
done
}
# Main
#--------------------------------------------------
scriptdir=`dirname $0`
topsrcdir=$1
out_file=$2
tmp_file="$out_file-tmp$$"
opts=""
trap "rm -f $tmp_file; exit 1" 1 2 15
MOZCONFIG=`$scriptdir/mozconfig-find $topsrcdir`
print_header > $tmp_file
# If the path changes, configure should be rerun
echo "# PATH=$PATH" >> $tmp_file
if [ "$MOZCONFIG" ]
then
. $MOZCONFIG
fi
if [ "$opts" ]; then
mk_echo_options
fi
if test -f $out_file && cmp -s $tmp_file $out_file; then
rm $tmp_file
else
mv -f $tmp_file $out_file
fi

View File

@@ -0,0 +1,70 @@
#! /bin/sh
#
# 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) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Stephen Lamm (slamm@netscape.com)
#
# mozconfig2configurator - Translates .mozconfig into options for
# the online configurator,
#
# http://webtools.mozilla.org/build/config.cgi
#
# This is called by the 'webconfig' target of mozilla/client.mk
#
ac_add_options() {
for _opt
do
# Escape special url characters
_opt=`echo $_opt | sed -e 's/%/%25/g;s/ /%20/g;s/&/%26/g;'`
case "$_opt" in
--*-*= ) url="$url$_opt&" ;;
--*-* ) url="$url$_opt=yes&" ;;
esac
done
}
mk_add_options() {
for _opt
do
# Escape special url characters
# Escape special url characters
_opt=`echo $_opt | sed -e 's/%/%25/g;s/ /%20/g;s/&/%26/g;'`
url="$url$_opt&"
done
}
#
# main
#
# find-mozconfig.sh
# In params: $MOZCONFIG $HOME ($MOZ_MYCONFIG)
scriptdir=`dirname $0`
MOZCONFIG=`$scriptdir/mozconfig-find $topsrcdir`
if [ "$MOZCONFIG" ]
then
url="http://webtools.mozilla.org/build/config.cgi?"
. $MOZCONFIG
# Drop the last character of $url
echo `expr "$url" : "\(.*\)."`
fi

View File

@@ -0,0 +1,99 @@
#! /bin/sh
#
# 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) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Stephen Lamm <slamm@netscape.com>
#
# mozconfig2configure - Loads options from .mozconfig onto configure's
# command-line. See find-mozconfig.sh for how the config file is
# found
#
# The options from .mozconfig are inserted into the command-line
# before the real command-line options. This way the real options
# will override any .mozconfig options.
#
# .mozconfig is a shell script. To add an option to configure's
# command-line use the pre-defined function, ac_add_options,
#
# ac_add_options <configure-option> [<configure-option> ... ]
#
# For example,
#
# ac_add_options --with-pthreads --enable-debug
#
# ac_add_options can be called multiple times in .mozconfig.
# Each call adds more options to configure's command-line.
# Note: $_AUTOCONF_TOOLS_DIR must be defined in the script that includes this.
ac_add_options() {
for _opt
do
# Escape shell characters, space, tab, dollar, quote, backslash.
_opt=`echo $_opt | sed -e 's/\([\ \ \$\"\\]\)/\\\\\1/g;s/@\([^@]*\)@/\$\1/g;'`
_opt=`echo $_opt | sed -e 's/@\([^@]*\)@/\$(\1)/g'`
# Avoid adding duplicates
case "$ac_options" in
*"$_opt"* ) ;;
* ) mozconfig_ac_options="$mozconfig_ac_options $_opt" ;;
esac
done
}
mk_add_options() {
# These options are for client.mk
# configure can safely ignore them.
:
}
ac_echo_options() {
echo "Adding configure options from $MOZCONFIG:"
eval "set -- $mozconfig_ac_options"
for _opt
do
echo " $_opt"
done
}
# Main
#--------------------------------------------------
_topsrcdir=`dirname $0`
ac_options=
mozconfig_ac_options=
# Save the real command-line options
for _opt
do
# Escape shell characters, space, tab, dollar, quote, backslash.
_opt=`echo $_opt | sed -e 's/\([\ \ \$\"\\]\)/\\\\\1/g;'`
ac_options="$ac_options \"$_opt\""
done
MOZCONFIG=`$_AUTOCONF_TOOLS_DIR/mozconfig-find $_topsrcdir`
if [ "$MOZCONFIG" ]; then
. $MOZCONFIG
fi
if [ "$mozconfig_ac_options" ]; then
ac_echo_options 1>&2
fi
eval "set -- $mozconfig_ac_options $ac_options"

View File

@@ -0,0 +1,67 @@
# -*- tab-width: 4; -*-
# Configure paths for NSPR
# Public domain - Chris Seawood <cls@seawood.org> 2001-04-05
# Based upon gtk.m4 (also PD) by Owen Taylor
dnl AM_PATH_NSPR([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for NSPR, and define NSPR_CFLAGS and NSPR_LIBS
AC_DEFUN(AM_PATH_NSPR,
[dnl
AC_ARG_WITH(nspr-prefix,
[ --with-nspr-prefix=PFX Prefix where NSPR is installed],
nspr_config_prefix="$withval",
nspr_config_prefix="")
AC_ARG_WITH(nspr-exec-prefix,
[ --with-nspr-exec-prefix=PFX
Exec prefix where NSPR is installed],
nspr_config_exec_prefix="$withval",
nspr_config_exec_prefix="")
if test -n "$nspr_config_exec_prefix"; then
nspr_config_args="$nspr_config_args --exec-prefix=$nspr_config_exec_prefix"
if test -z "$NSPR_CONFIG"; then
NSPR_CONFIG=$nspr_config_exec_prefix/bin/nspr-config
fi
fi
if test -n "$nspr_config_prefix"; then
nspr_config_args="$nspr_config_args --prefix=$nspr_config_prefix"
if test -z "$NSPR_CONFIG"; then
NSPR_CONFIG=$nspr_config_prefix/bin/nspr-config
fi
fi
unset ac_cv_path_NSPR_CONFIG
AC_PATH_PROG(NSPR_CONFIG, nspr-config, no)
min_nspr_version=ifelse([$1], ,4.0.0,$1)
AC_MSG_CHECKING(for NSPR - version >= $min_nspr_version (skipping))
no_nspr=""
if test "$NSPR_CONFIG" = "no"; then
no_nspr="yes"
else
NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags`
NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs`
dnl Skip version check for now
nspr_config_major_version=`$NSPR_CONFIG $nspr_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
nspr_config_minor_version=`$NSPR_CONFIG $nspr_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
nspr_config_micro_version=`$NSPR_CONFIG $nspr_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
fi
if test -z "$no_nspr"; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
fi
AC_SUBST(NSPR_CFLAGS)
AC_SUBST(NSPR_LIBS)
])

View File

@@ -0,0 +1,102 @@
#!/bin/sh
#
# 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 script will generate a single Makefile from a Makefile.in using
# the config.status script.
#
# The config.status script is generated the first time you run
# ./configure.
#
#
# Usage: update-makefile.sh
#
# Send comments, improvements, bugs to ramiro@netscape.com
#
update_makefile_usage() {
_progname=`expr //$0 : '.*/\(.*\)'`
cat <<END_USAGE 2>&1
Usage: $_progname [-h -u] [<keyword>]
-d <dir> Subdir to update
-h Print usage
END_USAGE
}
# Parse the command-line options
#
subdir=
while getopts d:h OPT; do
case $OPT in
d) # Make sure "subdir" has exactly one ending slash
subdir=`echo $OPTARG | sed 's/\/$//;'`"/" ;;
\?|h) update_makefile_usage
exit 1
;;
esac
done
# find_depth: Pull the value of DEPTH out of Makefile (or Makefile.in)
find_depth() {
egrep '^DEPTH[ ]*=[ ]*\.' $1 | awk -F= '{ print $2; }'
}
# The Makefile to create
target_makefile=`pwd`"/${subdir}Makefile"
# Use $(DEPTH) in the Makefile or Makefile.in to determine the depth
if [ -f Makefile.in ]
then
depth=`find_depth Makefile.in`
elif [ -f Makefile ]
then
depth=`find_depth Makefile`
elif [ -f ../Makefile ]
then
depth="../"`find_depth Makefile`
else
echo
echo "There ain't no 'Makefile' or 'Makefile.in' over here: $pwd"
echo
exit
fi
# 'cd' to the root of the tree to run "config.status" there
cd $depth
# Strip the tree root off the Makefile's path
#
root_path=`pwd`
target_makefile=`expr $target_makefile : $root_path'/\(.*\)'`
# Make sure config.status exists
#
if [ -f config.status ]
then
CONFIG_FILES=$target_makefile ./config.status
else
echo
echo "There ain't no 'config.status' over here: $pwd"
echo
fi

View File

@@ -0,0 +1,7 @@
http://www.mozilla.org
ftp://ftp.netscape.com/Welcome
http://www.mozilla.org
resource:///res/samples/test2.html
resource:///res/samples/test8.html
resource:///res/samples/test6.html
resource:///res/samples/test8.html

View File

@@ -0,0 +1,292 @@
#!perl -w
# This script copies modified files from a source CVS tree to a destination
# tree. Modified files are detected by comparing their modification dates
# with the CVS Entries file.
#
# Modified files are copied in their entirety to the destination tree
# (no diffing is done). Files are only copied of the CVS version of the
# file is the same in both trees. If the destination file is modified
# already, it is backed up and replaced.
#
# To use this on your tree/platform, do the following:
#
# 1. Fix the !perl line, if necessary.
# 2. Fix $dirsep to be the directory separator on your platform.
# 3. Uncomment the appropriate $dst_linebreaks file specify what linebreaks
# you want for the copied files. This variable defines the *destination* linebreaks
# that you want your changes to be converted to.
# For example, if you have a linux volume
# mounted (via SAMBA perhaps) to your windows box where you've made changes to
# source files, you'd want $dst_linebreaks to be set for unix. This ensures that
# linebreaks are converted to the appropriate OS linebreak scheme for your *target* tree.
# 4. Set $src_tree and $dest_tree to point to the directories you want
# to sync up. These don't have to point to the root of the tree,
# but should be equivalent directories in the two trees.
#
# First version:
# Simon Fraser <sfraser@netscape.com>
use File::stat;
use Time::Local;
# change for your platform ('\' == windows, ':' == mac, '/' == unix)
$dirsep = "\\";
# Set this to the native OS of the *destination* tree
# $dst_linebreaks = pack("cc", 13); # Mac
#$dst_linebreaks = pack("cc", 13, 10); # DOS
$dst_linebreaks = pack("cc", 10); # UNIX
#change for your src and dest trees
$src_tree = "x:\\mozilla\\xpfe\\components";
$dest_tree = "h:\\builds\\mozilla\\xpfe\\components";
#//--------------------------------------------------------------------------------------------------
#// _copyFile. Copy file from src to dest, converting linebreaks if necessary
#//--------------------------------------------------------------------------------------------------
sub _copyFile($;$;$;$)
{
my($srcdir, $destdir, $file, $backup) = @_;
my($srcfile) = $srcdir.$dirsep.$file;
my($dstfile) = $destdir.$dirsep.$file;
if ($backup)
{
my($counter) = 0;
while (-f $dstfile."-".$counter)
{
$counter ++;
}
rename($dstfile, $dstfile."-".$counter) or die "Failed to rename file\n";
}
print "Copying $file over to dest\n";
my($newdest) = $dstfile."_temp";
open(SRCFILE, "< $srcfile") or die "Can't open source file $srcfile\n";
open(NEWDEST, "> $newdest") or die "Can't open dest file $newdest\n";
while (<SRCFILE>)
{
chomp($_);
print NEWDEST $_.$dst_linebreaks;
}
close(SRCFILE);
close(NEWDEST);
if (!$backup) {
unlink($dstfile) or die "Failed to remove $dstfile\n";
}
rename($newdest, $dstfile) or die "Failed to rename $newdest\n";
}
#//--------------------------------------------------------------------------------------------------
#// _readCVSInfo. Suck in the CVS info from the Entries file
#//--------------------------------------------------------------------------------------------------
sub _readCVSInfo($)
{
my($cvsDir) = @_;
my($entries_file_name) = $cvsDir.$dirsep."CVS".$dirsep."Entries";
# print "Reading $entries_file_name\n";
open(ENTRIES, $entries_file_name) || die "Could not open file $entries_file_name";
my(%cvs_entries);
# Read in the path if available
while (defined ($line = <ENTRIES>))
{
chomp($line);
#parse out the line. Format is:
# files: /filename/version/date/options/tag
# dirs: D/dirname////
# dir? D
# because we might be reading an entries file from another platform, with
# different linebreaks, be anal about cleaning up $line.
if ($line =~ /^?\/(.+)\/(.+)\/(.+)\/(.*)\/(.*)?$/)
{
my($filename) = $1;
my($version) = $2;
my($date) = $3;
my($options) = $4;
my($tag) = $5;
my(%cvs_file) = (
"version" => $version,
"date" => $date,
"options" => $options,
"tag" => $tag
);
# print $filename." ".$version." ".$date." ".$options." ".$tag."\n";
$cvs_entries{$filename} = \%cvs_file;
}
}
close ENTRIES;
return %cvs_entries;
}
#//--------------------------------------------------------------------------------------------------
#// _fileIsModified. compare mod date with CVS entries to see if a file is modified
#//--------------------------------------------------------------------------------------------------
sub _fileIsModified($;$;$)
{
my($entries, $dir, $file) = @_;
my($abs_file) = $dir.$dirsep.$file;
if (exists($entries->{$file}))
{
my($date) = $entries->{$file}->{"date"};
# stat the file to get its date
my($file_data) = stat($abs_file) || die "Could not stat $file\n";
my($mod_string) = scalar(gmtime($file_data->mtime));
return ($mod_string ne $date);
}
else
{
return 0;
}
}
#//--------------------------------------------------------------------------------------------------
#// _processFile. args: entries hash, dir, filename
#//--------------------------------------------------------------------------------------------------
sub _processFile($;$;$;$;$)
{
my($src_entries, $dest_entries, $srcdir, $destdir, $file) = @_;
my($abs_file) = $srcdir.$dirsep.$file;
if (exists($src_entries->{$file}))
{
my($file_entry) = $src_entries->{$file};
my($version) = $file_entry->{"version"};
if (_fileIsModified($src_entries, $srcdir, $file))
{
my($rel_file) = $abs_file;
$rel_file =~ s/^$src_tree//;
# print "¥ÊFile $rel_file is modified\n";
# check CVS version in dest
my($dest_entry) = $dest_entries->{$file};
if ($dest_entry)
{
my($dest_version) = $dest_entry->{"version"};
my($versions_match) = ($version == $dest_version);
my($dest_modified) = _fileIsModified($dest_entries, $destdir, $file);
if ($versions_match)
{
# ok, we can copy the file over now, backing up dest if it is modified
_copyFile($srcdir, $destdir, $file, $dest_modified);
}
else
{
print "File $rel_file is version $version in the src tree, but $dest_version in dest. This file will not be copied.\n";
}
}
else
{
print "No CVS entry found in destination tree for $rel_file\n";
}
}
}
else
{
print "No entry for file $file\n";
}
}
#//--------------------------------------------------------------------------------------------------
#// _traverseDir. Traverse one dir, recurse for each found dir.
#//--------------------------------------------------------------------------------------------------
sub _traverseDir($;$)
{
my($srcdir, $destdir) = @_;
opendir(DIR, $srcdir) or die "Cannot open dir $srcdir\n";
my @files = readdir(DIR);
closedir DIR;
# suck in the CVS info for this dir, if there is a CVS dir
unless (-e $srcdir.$dirsep."CVS".$dirsep."Entries" && -e $destdir.$dirsep."CVS".$dirsep."Entries") {
print "$srcdir is not a CVS directory in both source and dest\n";
return;
}
print " Doing $srcdir\n";
my(%src_entries) = _readCVSInfo($srcdir);
my(%dest_entries) = _readCVSInfo($destdir);
my $file;
foreach $file (@files)
{
my $filepath = $srcdir.$dirsep.$file;
if (-d $filepath)
{
if ($file ne "CVS") # ignore 'CVS' dirs
{
# print "Going into $filepath\n";
_traverseDir($filepath, $destdir.$dirsep.$file);
}
}
else
{
# process this file
_processFile(\%src_entries, \%dest_entries, $srcdir, $destdir, $file);
}
}
}
#//--------------------------------------------------------------------------------------------------
#// MigrateChanges
#//--------------------------------------------------------------------------------------------------
sub MigrateChanges($;$)
{
my($srcdir, $destdir) = @_;
# Check that src and dest exist
if (! -d $srcdir) {
die "Source directory $srcdir does not exist\n";
}
if (! -d $destdir) {
die "Dest directory $destdir does not exist\n";
}
print "---------------------------------------------------------\n";
print "Migrating changes from\n $srcdir\nto\n $destdir\n";
print "---------------------------------------------------------\n";
_traverseDir($srcdir, $destdir);
print "---------------------------------------------------------\n";
}
MigrateChanges($src_tree, $dest_tree);

29
mozilla/build/genrc.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/sh
#
# 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):
#
DATATYPE="$1"
INFILE="$2"
echo "${DATATYPE} RCDATA"
sed 's/"/""/g' ${INFILE} | awk 'BEGIN { printf("BEGIN\n") } { printf("\"%s\\r\\n\",\n", $0) } END { printf("\"\\0\"\nEND\n") }'
exit 0

95
mozilla/build/hcc Executable file
View File

@@ -0,0 +1,95 @@
#!/bin/sh
#
# 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):
#
#
# Fix brain-damaged compilers that don't understand -o and -c together
#
CC=`echo $1 | sed -e "s|'||g" -e 's|"||g'`
shift
DASH_C=0
DASH_O=0
DUMMY="XxxXxxX"
GET_OBJECT=0
OBJ="${DUMMY}"
OBJECT="${DUMMY}"
for i in $*
do
[ "${CHECK_O}" = yes ] && {
case $i in
./*/*.o) OBJECT="$i"
OPTS="${OPTS} -o"
DASH_O=1
;;
./*.o) OBJECT="`basename $i`"
i=""
DASH_O=1
;;
*.o) if [ $i = `basename $i` ]
then
OBJECT="$i"
i=""
else
OPTS="${OPTS} -o"
fi
DASH_O=1
;;
*) OPTS="${OPTS} -o $i"
DASH_O=1
i=""
;;
esac
CHECK_O=no
}
case $i in
-c) DASH_C=1
OPTS="${OPTS} -c"
;;
-o) CHECK_O=yes
;;
*.c) C_SRC=$i
OPTS="${OPTS} $i"
# cc always creates the .o from the .c name
OBJ=`basename $C_SRC .c`.o
;;
*.s) S_SRC=$i
OPTS="${OPTS} $i"
# or the .o from the .s name
OBJ=`basename $S_SRC .s`.o
;;
*.o) OBJECT=$i
OPTS="${OPTS} $i"
;;
*) OPTS="${OPTS} $i"
;;
esac
done
${CC} ${OPTS} || exit $?
# if there was no -c and -o we're done
[ $DASH_C = 1 -a $DASH_O = 1 ] || exit 0
# if $OBJ and $OBJECT are the same we're done
[ $OBJ = $OBJECT ] && exit 0
[ -f $OBJ ] && mv -f $OBJ $OBJECT

139
mozilla/build/hcpp Executable file
View File

@@ -0,0 +1,139 @@
#!/bin/sh
#
# 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):
#
#
# Wrapper for brain-damaged compilers that don't understand -o and -c together.
#
CXX=`echo $1 | sed -e "s|'||g" -e 's|"||g'`
shift
DUMMY="XxxXxxX"
DASH_C=0
DASH_O=0
GET_OBJECT=0
C_SRC="${DUMMY}"
CC_SRC="${DUMMY}"
CPP_SRC="${DUMMY}"
S_SRC="${DUMMY}"
OBJECT="${DUMMY}"
NEW_i="${DUMMY}"
PLATFORM=`uname -s`
for i in $*
do
[ ${GET_OBJECT} -eq 1 ] && {
case $i in
./*/*.o) OBJECT="$i"
OPTS="${OPTS} -o"
DASH_O=1
;;
./*.o) OBJECT="`basename $i`"
i=""
DASH_O=1
;;
*.o) if [ $i = `basename $i` ]
then
i=""
else
OPTS="${OPTS} -o"
DASH_O=1
fi
;;
*) OPTS="${OPTS} -o $i"
DASH_O=1
i=""
;;
esac
GET_OBJECT=0
}
case $i in
-c)
DASH_C=1
OPTS="${OPTS} -c"
;;
-o)
GET_OBJECT=1
;;
*.c)
C_SRC="$i"
OPTS="${OPTS} $i"
# cc always creates the .o from the .c name
OBJ=`basename ${C_SRC} .c`.o
;;
+.*)
OPTS="${OPTS} $i"
;;
*.cpp)
CPP_SRC="$i"
if [ "${PLATFORM}" = "SCO_SV" ]; then
OPTS="${OPTS} +.cpp $i"
elif [ "${PLATFORM}" = "IRIX" ]; then
NEW_i=`basename ${CPP_SRC} .cpp`.C
rm -f ${NEW_i}
cp $i ${NEW_i}
OPTS="${OPTS} ${NEW_i}"
else
OPTS="${OPTS} $i"
fi
# cc always creates the .o from the .cpp name
OBJ=`basename ${CPP_SRC} .cpp`.o
;;
*.cc)
CC_SRC="$i"
OPTS="${OPTS} $i"
# cc always creates the .o from the .cc name
OBJ=`basename ${CC_SRC} .cc`.o
;;
*.s)
S_SRC="$i"
OPTS="${OPTS} $i"
# cc always creates the .o from the .s name
OBJ=`basename ${S_SRC} .s`.o
;;
*.o) OBJECT=$i
OPTS="${OPTS} $i"
;;
*) OPTS="${OPTS} $i"
;;
esac
done
${CXX} ${OPTS} || exit $?
rm -f ${NEW_i}
# Really only needed for NSPR now.
if [ "${PLATFORM}" = "IRIX" -a "$OBJ" != "$OBJECT" ]; then
OBJ=$OBJECT
fi
# LAME!!!
if [ -f -O ]; then
mv -f -- -O ${OBJECT}
fi
# if there was no -c and -o we're done
[ ${DASH_C} -eq 1 -a ${DASH_O} -eq 1 ] || exit 0
# if $OBJ and $OBJECT are the same we're done
[ $OBJ = $OBJECT ] && exit 0
[ -f $OBJ ] && mv -f $OBJ $OBJECT

View File

@@ -0,0 +1,110 @@
/* -*- 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):
*/
/*
This file overrides all option settings in the IDE. It is an attempt to allow all builds
to have the same options.
Note: We can't use ConditionalMacros.h in this file because it will conflict with
the PowerPlant precompiled headers.
*/
/* warning pragmas */
#pragma warn_hidevirtual on
#pragma warn_emptydecl on
#pragma warn_unusedvar on
#pragma warn_extracomma on
#pragma warn_illpragma on
#pragma warn_possunwant on
#pragma warn_unusedarg off /* turned off to reduce warnings */
#pragma check_header_flags on
/* Language features that must be the same across libraries... */
#pragma enumsalwaysint on
#pragma unsigned_char off
#pragma exceptions on
#pragma bool on
#pragma wchar_type on
#pragma RTTI on
/* Save as much space as possible with strings... */
#pragma pool_strings on
#pragma dont_reuse_strings off
#pragma options align=native
#pragma sym on /* Takes no memory. OK in non-debug. */
#ifdef powerc /* ...generating PowerPC */
#pragma toc_data on
#pragma fp_contract on
#pragma readonly_strings on
#ifdef DEBUG
#pragma profile off /* Turn this on to profile the application. */
/* Look for more details about profiling in nsMacMessagePump.cpp. */
#pragma traceback on
#pragma global_optimizer off
#pragma scheduling off
#pragma peephole off
#pragma optimize_for_size off
#else
#pragma traceback on /* leave on until the final release, so MacsBug logs are interpretable */
#pragma global_optimizer on
#pragma optimization_level 4
#pragma scheduling 603
#pragma peephole on
#pragma optimize_for_size on
#pragma opt_strength_reduction on
#pragma opt_propagation on
#pragma opt_loop_invariants on
#pragma opt_lifetimes on
#pragma opt_dead_code on
#pragma opt_dead_assignments on
#pragma opt_common_subs on
#endif
#else /* ...generating 68k */
#pragma code68020 on
#pragma code68881 off
/* Far everything... */
#pragma far_code
#pragma far_data on
#pragma far_strings on
#pragma far_vtables on
#pragma fourbyteints on /* 4-byte ints */
#pragma IEEEdoubles on /* 8-byte doubles (as required by Java and NSPR) */
#ifdef DEBUG
#pragma macsbug on
#pragma oldstyle_symbols off
#else
#pragma macsbug off
#endif
#endif

View File

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

View File

@@ -0,0 +1,43 @@
/* -*- 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):
*/
#error "DonÕt use me!"
#define OLDROUTINELOCATIONS 0
#define XP_MAC 1
#define NSPR20 1
#define _NO_FAST_STRING_INLINES_ 1
#define HAVE_BOOLEAN 1
#define NETSCAPE 1
#define OTUNIXERRORS 1 /* We want OpenTransport error codes */
#define OJI 1
/*
This compiles in heap dumping utilities and other good stuff
for developers -- maybe we only want it in for a special SDK
nspr/java runtime(?):
*/
#define DEVELOPER_DEBUG 1
#define MAX(_a,_b) ((_a) < (_b) ? (_b) : (_a))
#define MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))

Binary file not shown.

View File

@@ -0,0 +1,78 @@
#!perl
#
# 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):
# Simon Fraser <sfraser@netscape.com>
#
require 5.004;
use strict;
use Cwd;
use Moz::BuildUtils;
use Moz::BuildCore;
#-------------------------------------------------------------
# Where have the build options gone?
#
# The various build flags have been centralized into one place.
# The master list of options is in MozBuildFlags.txt. However,
# you should never need to edit that file, or this one.
#
# To customize what gets built, or where to start the build,
# edit the $prefs_file_name file in
# System Folder:Preferences:Mozilla build prefs:
# Documentation is provided in that file.
#-------------------------------------------------------------
my($prefs_file_name) = "Mozilla opt build prefs";
#-------------------------------------------------------------
# hashes to hold build options
#-------------------------------------------------------------
my(%build);
my(%options);
my(%filepaths);
my(%optiondefines);
# Hash of input files for this build. Eventually, there will be
# input files for manifests, and projects too.
my(%inputfiles) = (
"buildflags", "MozillaBuildFlags.txt",
"checkoutdata", "MozillaCheckoutList.txt",
"buildprogress", "¥ Mozilla opt progress",
"buildmodule", "MozillaBuildList.pm"
);
#-------------------------------------------------------------
# end build hashes
#-------------------------------------------------------------
# set the build root directory, which is the the dir above mozilla
SetupBuildRootDir(":mozilla:build:mac:build_scripts");
# Set up all the flags on $main::, like DEBUG, CARBON etc.
# Override the defaults using the preferences files.
SetupDefaultBuildOptions(0, ":mozilla:dist:viewer:");
my($do_checkout) = 0;
my($do_build) = 1;
RunBuild($do_checkout, $do_build, \%inputfiles, $prefs_file_name);

View File

@@ -0,0 +1,78 @@
#!perl
#
# 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):
# Simon Fraser <sfraser@netscape.com>
#
require 5.004;
use strict;
use Cwd;
use Moz::BuildUtils;
use Moz::BuildCore;
#-------------------------------------------------------------
# Where have the build options gone?
#
# The various build flags have been centralized into one place.
# The master list of options is in MozBuildFlags.txt. However,
# you should never need to edit that file, or this one.
#
# To customize what gets built, or where to start the build,
# edit the $prefs_file_name file in
# System Folder:Preferences:Mozilla build prefs:
# Documentation is provided in that file.
#-------------------------------------------------------------
my($prefs_file_name) = "Mozilla debug build prefs";
#-------------------------------------------------------------
# hashes to hold build options
#-------------------------------------------------------------
my(%build);
my(%options);
my(%filepaths);
my(%optiondefines);
# Hash of input files for this build. Eventually, there will be
# input files for manifests, and projects too.
my(%inputfiles) = (
"buildflags", "MozillaBuildFlags.txt",
"checkoutdata", "MozillaCheckoutList.txt",
"buildprogress", "¥ Mozilla debug progress",
"buildmodule", "MozillaBuildList.pm"
);
#-------------------------------------------------------------
# end build hashes
#-------------------------------------------------------------
# set the build root directory, which is the the dir above mozilla
SetupBuildRootDir(":mozilla:build:mac:build_scripts");
# Set up all the flags on $main::, like DEBUG, CARBON etc.
# Override the defaults using the preferences files.
SetupDefaultBuildOptions(1, ":mozilla:dist:viewer_debug:");
my($do_pull) = 0; # overridden by flags and prefs
my($do_build) = 1;
RunBuild($do_pull, $do_build, \%inputfiles, $prefs_file_name);

View File

@@ -0,0 +1,485 @@
#!perl -w
package Moz::BuildCore;
require 5.004;
require Exporter;
use strict;
use vars qw( @ISA @EXPORT );
# perl includes
use Cwd;
use File::Basename;
use LWP::Simple;
# homegrown
use Moz::Moz;
use Moz::Jar;
use Moz::BuildFlags;
use Moz::BuildUtils;
use Moz::CodeWarriorLib;
# use MozillaBuildList; # eventually, this should go away, and be replaced by data input
@ISA = qw(Exporter);
@EXPORT = qw(
RunBuild
);
#//--------------------------------------------------------------------------------------------------
#// DoPrebuildCheck
#//
#// Check the build tools etc before running the build.
#//--------------------------------------------------------------------------------------------------
sub DoPrebuildCheck()
{
SanityCheckJarOptions();
# launch codewarrior and persist its location. Have to call this before first
# call to getCodeWarriorPath().
my($ide_path_file) = $main::filepaths{"idepath"};
$ide_path_file = full_path_to($ide_path_file);
LaunchCodeWarrior($ide_path_file);
}
#//--------------------------------------------------------------------------------------------------
#// Configure Build System
#//--------------------------------------------------------------------------------------------------
sub GenBuildSystemInfo()
{
# always rebuild the configuration program.
BuildProjectClean(":mozilla:build:mac:tools:BuildSystemInfo:BuildSystemInfo.mcp", "BuildSystemInfo");
# delete the configuration file.
unlink(":mozilla:build:mac:BuildSystemInfo.pm");
# run the program.
system(":mozilla:build:mac:BuildSystemInfo");
# wait for the file to be created.
while (!(-e ":mozilla:build:mac:BuildSystemInfo.pm")) { WaitNextEvent(); }
# wait for BuildSystemInfo to finish, so that we see correct results.
while (IsProcessRunning("BuildSystemInfo")) { WaitNextEvent(); }
# now, evaluate the contents of the file.
open(F, ":mozilla:build:mac:BuildSystemInfo.pm");
while (<F>) { eval; }
close(F);
}
#//--------------------------------------------------------------------------------------------------
#// Make library aliases
#//--------------------------------------------------------------------------------------------------
sub MakeLibAliases()
{
my($dist_dir) = GetBinDirectory();
#// ProfilerLib
if ($main::PROFILE)
{
my($profilerlibpath) = Moz::CodeWarriorLib::getCodeWarriorPath("MacOS Support:Profiler:Profiler Common:ProfilerLib");
MakeAlias("$profilerlibpath", "$dist_dir"."Essential Files:");
}
}
#//--------------------------------------------------------------------------------------------------
#// Regenerate DefinesOptions.h if necessary
#//
#//--------------------------------------------------------------------------------------------------
sub UpdateConfigHeader($)
{
my($config_path) = @_;
my($config, $oldconfig) = ("", "");
my($define, $definevalue, $defines);
my($k, $l,);
foreach $k (keys(%main::options))
{
if ($main::options{$k})
{
foreach $l (keys(%{$main::optiondefines{$k}}))
{
$my::defines{$l} = $main::optiondefines{$k}{$l};
print "Setting up my::defines{$l}\n";
}
}
}
my $config_headerfile = current_directory().$config_path;
if (-e $config_headerfile)
{
open(CONFIG_HEADER, "< $config_headerfile") || die "$config_headerfile: $!\n";
my($line);
while ($line = <CONFIG_HEADER>)
{
$oldconfig .= $line;
if ($line =~ m/#define (.*) (.*)\n/)
{
$define = $1;
$definevalue = $2;
if (exists ($my::defines{$define}) and ($my::defines{$define} == $definevalue))
{
delete $my::defines{$define};
$config .= $line;
}
}
}
close(CONFIG_HEADER);
}
if (%my::defines)
{
foreach $k (keys(%my::defines))
{
$config .= "#define " . $k . " " . $my::defines{$k} . "\n";
}
}
if (($config ne $oldconfig) || (!-e $config_headerfile))
{
printf("Writing new DefinesOptions.h\n");
open(CONFIG_HEADER, "> $config_headerfile") || die "$config_headerfile: $!\n";
MacPerl::SetFileInfo("CWIE", "TEXT", $config_headerfile);
print CONFIG_HEADER ($config);
close(CONFIG_HEADER);
}
}
#//--------------------------------------------------------------------------------------------------
#// ConfigureBuildSystem
#//
#// defines some build-system configuration variables.
#//--------------------------------------------------------------------------------------------------
sub ConfigureBuildSystem()
{
#// In the future, we may want to do configurations based on the actual build system itself.
#// GenBuildSystemInfo();
#// For now, if we discover a newer header file than existed in Universal Interfaces 3.2,
#// we'll assume that 3.3 or later is in use.
my($universal_interfaces) = Moz::CodeWarriorLib::getCodeWarriorPath("MacOS Support:Universal:Interfaces:CIncludes:");
if (-e ($universal_interfaces . "ControlDefinitions.h")) {
$main::UNIVERSAL_INTERFACES_VERSION = 0x0330;
}
#// Rename IC SDK folder in the Mac OS Support folder
my($ic_sdk_folder) = Moz::CodeWarriorLib::getCodeWarriorPath("MacOS Support:ICProgKit2.0.2");
if( -e $ic_sdk_folder)
{
my($new_ic_folder_name) = Moz::CodeWarriorLib::getCodeWarriorPath("MacOS Support:(ICProgKit2.0.2)");
rename ($ic_sdk_folder, $new_ic_folder_name);
# note that CodeWarrior doesn't descnet into folders with () the name
print "Mozilla no longer needs the Internet Config SDK to build:\n Renaming the 'ICProgKit2.0.2' folder to '(ICProgKit2.0.2)'\n";
}
printf("UNIVERSAL_INTERFACES_VERSION = 0x%04X\n", $main::UNIVERSAL_INTERFACES_VERSION);
UpdateConfigHeader(":mozilla:config:mac:DefinesOptions.h");
# alias required CodeWarrior libs into the Essential Files folder (only the Profiler lib now)
MakeLibAliases();
}
#//--------------------------------------------------------------------------------------------------
#// CheckOutModule. Takes variable number of args; first two are required
#//--------------------------------------------------------------------------------------------------
sub CheckOutModule($$$$)
{
my($session, $module, $revision, $date) = @_;
my($result) = $session->checkout($module, $revision, $date);
# result of 1 is success
if ($result) { return; }
my($checkout_err) = $session->getLastError();
if ($checkout_err == 708) {
die "Error: Checkout was cancelled.\n";
} elsif ($checkout_err == 911) {
die "Error: CVS session settings are incorrect. Check your password, and the CVS root settings.\n";
} elsif ($checkout_err == 703) {
die "Error: CVS checkout failed. Unknown module, unknown tag, bad username, or other CVS error.\n";
} elsif ($checkout_err == 711) {
print "Checkout of '$module' failed.\n";
}
}
#//--------------------------------------------------------------------------------------------------
#// getScriptFolder
#//--------------------------------------------------------------------------------------------------
sub getScriptFolder()
{
return dirname($0);
}
#//--------------------------------------------------------------------------------------------------
#// getScriptFolder
#//--------------------------------------------------------------------------------------------------
sub get_url_contents($)
{
my($url) = @_;
my($url_contents) = LWP::Simple::get($url);
$url_contents =~ s/\r\n/\n/g; # normalize linebreaks
$url_contents =~ s/\r/\n/g; # normalize linebreaks
return $url_contents;
}
#//--------------------------------------------------------------------------------------------------
#// get_files_from_content
#//--------------------------------------------------------------------------------------------------
sub uniq
{
my $lastval;
grep(($_ ne $lastval, $lastval = $_)[$[], @_);
}
#//--------------------------------------------------------------------------------------------------
#// get_files_from_content
#//--------------------------------------------------------------------------------------------------
sub get_files_from_content($)
{
my($content) = @_;
my(@jscalls) = grep (/return js_file_menu[^{]*/, split(/\n/, $content));
my $i;
for ($i = 0; $i < @jscalls ; $i++)
{
$jscalls[$i] =~ s/.*\(|\).*//g;
my(@callparams) = split(/,/, $jscalls[$i]);
my ($repos, $dir, $file, $rev) = grep(s/['\s]//g, @callparams);
$jscalls[$i] = "$dir/$file";
}
&uniq(sort(@jscalls));
}
#//--------------------------------------------------------------------------------------------------
#// FastUpdate
#//
#// Use Bonsai url data to update only those dirs which have new files
#//
#//--------------------------------------------------------------------------------------------------
sub FastUpdate($)
{
my($num_hours) = @_;
my($the_module) = "SeaMonkeyAll";
my($the_branch) = "HEAD";
my($search_type) = "hours";
my($min_date) = "";
my($max_date) = "";
my($url) = "http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=${the_module}&branch=${the_branch}&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=${num_hours}&date=${search_type}&mindate=${min_date}&maxdate=${max_date}&cvsroot=%2Fcvsroot";
my(@files) = &get_files_from_content(&get_url_contents($url));
my(@cvs_co_list);
my($co_file);
foreach $co_file (@files)
{
my(@cvs_co) = ["", "", ""];
@cvs_co[0] = $co_file;
push(@cvs_co_list, \@cvs_co);
}
CheckoutModules(\@cvs_co_list);
}
#//--------------------------------------------------------------------------------------------------
#// Checkout
#//--------------------------------------------------------------------------------------------------
sub CheckoutModules($)
{
my($modules) = @_; # list of modules to check out
my($start_time) = TimeStart();
# assertRightDirectory();
my($cvsfile) = AskAndPersistFile($main::filepaths{"sessionpath"});
my($session) = Moz::MacCVS->new( $cvsfile );
unless (defined($session)) { die "Error: Checkout aborted. Cannot create session file: $session" }
# activate MacCVS
ActivateApplication('Mcvs');
my($this_co);
foreach $this_co (@$modules)
{
my($module, $revision, $date) = ($this_co->[0], $this_co->[1], $this_co->[2]);
CheckOutModule($session, $module, $revision, $date);
# print "Checking out $module with ref $revision, date $date\n";
}
TimeEnd($start_time, "Checkout");
}
#//--------------------------------------------------------------------------------------------------
#// Checkout
#//--------------------------------------------------------------------------------------------------
sub Checkout($)
{
my($checkout_list) = @_;
unless ( $main::build{pull} ) { return; }
StartBuildModule("pull");
my(@cvs_co_list);
my($checkout_file) = getScriptFolder().":".$checkout_list;
local(*CHECKOUT_FILE);
open(CHECKOUT_FILE, "< $checkout_file") || die "Error: failed to open checkout list $checkout_file\n";
while (<CHECKOUT_FILE>)
{
my($line) = $_;
chomp($line);
# ignore comments and empty lines
if ($line =~ /^\#/ || $line =~ /^\s*$/) {
next;
}
my(@cvs_co) = ["", "", ""];
my($module, $revision, $date) = (0, 1, 2);
if ($line =~ /\s*([^#,\s]+)\s*\,\s*([^#,\s]+)\s*\,\s*([^#]+)/)
{
@cvs_co[$module] = $1;
@cvs_co[$revision] = $2;
@cvs_co[$date] = $3;
}
elsif ($line =~ /\s*([^#,\s]+)\s*\,\s*([^#,\s]+)\s*(#.+)?/)
{
@cvs_co[$module] = $1;
@cvs_co[$revision] = $2;
}
elsif ($line =~ /\s*([^#,\s]+)\s*\,\s*,\s*([^#,]+)/)
{
@cvs_co[$module] = $1;
@cvs_co[$date] = $2;
}
elsif ($line =~ /\s*([^#,\s]+)/)
{
@cvs_co[$module] = $1;
}
else
{
die "Error: unrecognized line '$line' in $checkout_list\n";
}
# strip surrounding space from date
@cvs_co[$date] =~ s/^\s*|\s*$//g;
# print "Going to check out '@cvs_co[$module]', '@cvs_co[$revision]', '@cvs_co[$date]'\n";
push(@cvs_co_list, \@cvs_co);
}
close(CHECKOUT_FILE);
CheckoutModules(\@cvs_co_list);
EndBuildModule("pull");
}
#//--------------------------------------------------------------------------------------------------
#// RunBuild
#//--------------------------------------------------------------------------------------------------
sub RunBuild($$$$)
{
my($do_pull, $do_build, $input_files, $build_prefs) = @_;
InitBuildProgress($input_files->{"buildprogress"});
# if we are pulling, we probably want to do a full build, so clear the build progress
if ($do_pull) {
ClearBuildProgress();
}
# read local prefs, and the build progress file, and set flags to say what to build
SetupBuildParams(\%main::build,
\%main::options,
\%main::optiondefines,
\%main::filepaths,
$input_files->{"buildflags"},
$build_prefs);
# If we were told to pull, make sure we do, overriding prefs etc.
if ($do_pull)
{
$main::build{"pull"} = 1;
}
# transfer this flag
$CodeWarriorLib::CLOSE_PROJECTS_FIRST = $main::CLOSE_PROJECTS_FIRST;
# setup the build log
SetupBuildLog($main::filepaths{"buildlogfilepath"}, $main::USE_TIMESTAMPED_LOGS);
StopForErrors();
if ($main::LOG_TO_FILE) {
RedirectOutputToFile($main::filepaths{"scriptlogfilepath"});
}
# run a pre-build check to see that the tools etc are in order
DoPrebuildCheck();
if ($main::FAST_UPDATE)
{
my($hours) = 8; # update files checked in during last 8 hours
FastUpdate($hours);
} else {
Checkout($input_files->{"checkoutdata"});
}
unless ($do_build) { return; }
my($build_start) = TimeStart();
# create generated headers
ConfigureBuildSystem();
# here we load and call methods in the build module indirectly.
# we have to use indirection because the build module can be named
# differently for different builds.
chdir(dirname($0)); # change to the script dir
my($build_module) = $input_files->{"buildmodule"};
# load the build module
require $build_module;
{ # scope for no strict 'refs'
no strict 'refs';
my($package_name) = $build_module;
$package_name =~ s/\.pm$//;
chdir($main::MOZ_SRC);
&{$package_name."::BuildDist"}();
chdir($main::MOZ_SRC);
&{$package_name."::BuildProjects"}();
}
# the build finished, so clear the build progress state
ClearBuildProgress();
TimeEnd($build_start, "Build");
print "Build complete\n";
}
1;

View File

@@ -0,0 +1,423 @@
package Moz::BuildFlags;
require 5.004;
require Exporter;
# Package that attempts to read a file from the Preferences folder,
# and get build settings out of it
use strict;
use Exporter;
use Cwd;
use File::Basename;
use Moz::Moz;
use Moz::Prefs;
use vars qw(@ISA @EXPORT);
@ISA = qw(Exporter);
@EXPORT = qw(
SetupBuildParams
InitBuildProgress
WriteBuildProgress
ClearBuildProgress
ReadBuildProgress
);
my(@build_flags);
my(@options_flags);
my(@filepath_flags);
my(%arrays_list) = (
"build_flags", \@build_flags,
"options_flags", \@options_flags,
"filepath_flags", \@filepath_flags
);
my($progress_file) = "¥ÊBuild progress";
#-------------------------------------------------------------------------------
# appendArrayFlag
#
# Set a flag in the array
#-------------------------------------------------------------------------------
sub appendArrayFlag($$$)
{
my($array_name, $setting, $value) = @_;
my(@this_flag) = [$setting, $value];
my($flags_array) = $arrays_list{$array_name};
if ($flags_array)
{
push(@{$flags_array}, @this_flag) || die "Failed to append\n";
}
else
{
die "Error: unknown build flags array $array_name\n";
}
}
#-------------------------------------------------------------------------------
# readFlagsFile
#
# Read the file of build flags from disk. File path is relative to the
# script directory.
#-------------------------------------------------------------------------------
sub readFlagsFile($)
{
my($flags_file) = @_;
my($file_path) = $0;
$file_path =~ s/[^:]+$/$flags_file/;
print "Reading build flags from '$file_path'\n";
local(*FLAGS_FILE);
open(FLAGS_FILE, "< $file_path") || die "Error: failed to open flags file $file_path\n";
my($cur_array) = "";
while(<FLAGS_FILE>)
{
my($line) = $_;
chomp($line);
# ignore comments and empty lines
if ($line =~ /^\#/ || $line =~ /^\s*$/) {
next;
}
# 1-word line, probably array name
if ($line =~ /^([^#\s]+)\s*$/)
{
$cur_array = $1;
next;
}
elsif ($line =~ /^([^#\s]+)\s+\"(.+)\"(\s+#.+)?$/) # quoted option, possible comment
{
my($flag) = $1;
my($setting) = $2;
appendArrayFlag($cur_array, $flag, $setting);
}
elsif ($line =~ /^([^#\s]+)\s+([^#\s]+)(\s+#.+)?$/) # two-word line, possible comment
{
my($flag) = $1;
my($setting) = $2;
appendArrayFlag($cur_array, $flag, $setting);
}
else
{
die "Error: unknown build flag at '$line'\n";
}
}
close(FLAGS_FILE);
}
#-------------------------------------------------------------------------------
# flagsArrayToHash
#
# Utility routine to migrate flag from a 2D array to a hash, where
# item[n][0] is the hash entry name, and item[n][1] is the hash entry value.
#-------------------------------------------------------------------------------
sub flagsArrayToHash($$)
{
my($src_array, $dest_hash) = @_;
my($item);
foreach $item (@$src_array)
{
$dest_hash->{$item->[0]} = $item->[1];
}
}
#-----------------------------------------------
# printHash
#
# Utility routine to print a hash
#-----------------------------------------------
sub printHash($)
{
my($hash_ref) = @_;
print "Printing hash:\n";
my($key, $value);
while (($key, $value) = each (%$hash_ref))
{
print " $key $value\n";
}
}
#-----------------------------------------------
# printBuildArray
#
# Utility routine to print a 2D array
#-----------------------------------------------
sub printBuildArray($)
{
my($build_array) = @_;
my($entry);
foreach $entry (@$build_array)
{
print "$entry->[0] = $entry->[1]\n";
}
}
#-------------------------------------------------------------------------------
# SetBuildFlags
#-------------------------------------------------------------------------------
sub SetBuildFlags($)
{
my($build) = @_;
flagsArrayToHash(\@build_flags, $build);
}
#-------------------------------------------------------------------------------
# SetBuildOptions
#-------------------------------------------------------------------------------
sub SetBuildOptions($)
{
my($options) = @_;
flagsArrayToHash(\@options_flags, $options);
}
#-------------------------------------------------------------------------------
# SetFilepathFlags
#-------------------------------------------------------------------------------
sub SetFilepathFlags($)
{
my($filepath) = @_;
flagsArrayToHash(\@filepath_flags, $filepath);
}
#-------------------------------------------------------------------------------
# SetOptionDefines
#-------------------------------------------------------------------------------
sub SetOptionDefines($)
{
my($optiondefines) = @_;
# These should remain unchanged
$optiondefines->{"mathml"}{"MOZ_MATHML"} = 1;
$optiondefines->{"svg"}{"MOZ_SVG"} = 1;
$optiondefines->{"carbon"}{"TARGET_CARBON"} = 1;
$optiondefines->{"cache"}{"MOZ_NEW_CACHE"} = 1;
$optiondefines->{"soap"}{"MOZ_SOAP"} = 1;
$optiondefines->{"lowmem"}{"MOZ_MAC_LOWMEM"} = 1;
$optiondefines->{"ldap_experimental"}{"MOZ_LDAP_XPCOM_EXPERIMENTAL"} = 1;
$optiondefines->{"useimg2"}{"USE_IMG2"} = 1;
$optiondefines->{"bidi"}{"IBMBIDI"} = 1;
}
#-------------------------------------------------------------------------------
# PropagateAllFlags
#-------------------------------------------------------------------------------
sub PropagateAllFlags($)
{
my($build_array) = @_;
# if "all" is set, set all the flags to 1
unless ($build_array->[0][0] eq "all") { die "Error: 'all' must come first in the flags array\n"; }
if ($build_array->[0][1] == 1)
{
my($index);
foreach $index (@$build_array)
{
$index->[1] = 1;
}
}
}
#//--------------------------------------------------------------------------------------------------
#// _getBuildProgressFile
#//--------------------------------------------------------------------------------------------------
sub _getBuildProgressFile()
{
return $progress_file;
}
#//--------------------------------------------------------------------------------------------------
#// setBuildProgressStart
#//
#// This automagically sets $build{"all"} to 0
#//--------------------------------------------------------------------------------------------------
sub setBuildProgressStart($$)
{
my($build_array, $name) = @_;
my($index);
foreach $index (@$build_array)
{
$index->[1] = 0;
if ($index->[0] eq $name) {
last;
}
}
print "Building from module after $name, as specified by build progress\n";
}
#//--------------------------------------------------------------------------------------------------
#// InitBuildProgress
#//--------------------------------------------------------------------------------------------------
sub InitBuildProgress($)
{
my($prog_file) = @_;
if ($prog_file ne "") {
$progress_file = full_path_to($prog_file);
print "Writing build progress to $progress_file\n";
}
}
#//--------------------------------------------------------------------------------------------------
#// WriteBuildProgress
#//--------------------------------------------------------------------------------------------------
sub WriteBuildProgress($)
{
my($module_built) = @_;
my($progress_file) = _getBuildProgressFile();
if ($progress_file ne "")
{
open(PROGRESS_FILE, ">>$progress_file") || die "Failed to open $progress_file\n";
print(PROGRESS_FILE "$module_built\n");
close(PROGRESS_FILE);
}
}
#//--------------------------------------------------------------------------------------------------
#// ClearBuildProgress
#//--------------------------------------------------------------------------------------------------
sub ClearBuildProgress()
{
my($progress_file) = _getBuildProgressFile();
if ($progress_file ne "") {
unlink $progress_file;
}
}
#//--------------------------------------------------------------------------------------------------
#// WipeBuildProgress
#//--------------------------------------------------------------------------------------------------
sub WipeBuildProgress()
{
print "Ignoring build progress\n";
ClearBuildProgress();
$progress_file = "";
}
#//--------------------------------------------------------------------------------------------------
#// ReadBuildProgress
#//--------------------------------------------------------------------------------------------------
sub ReadBuildProgress($)
{
my($build_array) = @_;
my($progress_file) = _getBuildProgressFile();
my($last_module);
if (open(PROGRESS_FILE, "< $progress_file"))
{
print "Getting build progress from $progress_file\n";
while (<PROGRESS_FILE>)
{
my($line) = $_;
chomp($line);
$last_module = $line;
}
close(PROGRESS_FILE);
}
if ($last_module)
{
setBuildProgressStart($build_array, $last_module);
}
}
#-------------------------------------------------------------------------------
# clearOldBuildSettings
#-------------------------------------------------------------------------------
sub clearOldBuildSettings($$$$)
{
my($build, $options, $optiondefines, $filepaths) = @_;
# empty the arrays in case we're being called twice
@build_flags = ();
@options_flags = ();
@filepath_flags = ();
# and empty the hashes
%$build = ();
%$options = ();
%$optiondefines = ();
%$filepaths = ();
}
#-------------------------------------------------------------------------------
# SetupBuildParams
#-------------------------------------------------------------------------------
sub SetupBuildParams($$$$$$)
{
my($build, $options, $optiondefines, $filepaths, $flags_file, $prefs_file) = @_;
# Empty the hashes and arrays, to wipe out any stale data.
# Needed because these structures persist across two build scripts
# called using 'do' from a parent script.
clearOldBuildSettings($build, $options, $optiondefines, $filepaths);
# Read from the flags file, which sets up the various arrays
readFlagsFile($flags_file);
# If 'all' is set in the build array, propagate that to all entries
PropagateAllFlags(\@build_flags);
# read the user pref file, that can change values in the array
ReadMozUserPrefs($prefs_file, \@build_flags, \@options_flags, \@filepath_flags);
# If build progress exists, this clears flags in the array up to a certain point
if ($main::USE_BUILD_PROGRESS) {
ReadBuildProgress(\@build_flags);
} else {
WipeBuildProgress();
}
# printBuildArray(\@build_flags);
# printBuildArray(\@options_flags);
SetBuildFlags($build);
SetBuildOptions($options);
SetOptionDefines($optiondefines);
SetFilepathFlags($filepaths);
# printHash($build);
# printHash($options);
}
1;

View File

@@ -0,0 +1,518 @@
package Moz::BuildUtils;
require 5.004;
require Exporter;
# Package that contains build util functions specific to the Mozilla build
# process.
use strict;
use Exporter;
use Cwd;
use File::Path;
use File::Basename;
use Mac::Events;
use Mac::StandardFile;
use Moz::Moz;
use Moz::BuildFlags;
use Moz::MacCVS;
use vars qw(@ISA @EXPORT);
@ISA = qw(Exporter);
@EXPORT = qw(
SetupDefaultBuildOptions
SetupBuildRootDir
StartBuildModule
EndBuildModule
GetBinDirectory
BuildOneProjectWithOutput
BuildOneProject
BuildIDLProject
BuildFolderResourceAliases
AskAndPersistFile
DelayFor
TimeStart
TimeEnd
EmptyTree
SetupBuildLog
SetBuildNumber
SetTimeBomb
);
#//--------------------------------------------------------------------------------------------------
#// SetupDefaultBuildOptions
#//--------------------------------------------------------------------------------------------------
sub SetupDefaultBuildOptions($$)
{
my($debug, $bin_dir) = @_;
# Here we set up defaults for the various build flags.
# If you want to override any of these, it's best to do
# so via the relevant preferences file, which lives in
# System Folder:Preferences:Mozilla build prefs:{build prefs file}.
# For the name of the prefs file, see the .pl script that you
# run to start this build. The prefs files are created when
# you run the build, and contain some documentation.
#-------------------------------------------------------------
# configuration variables that globally affect what is built
#-------------------------------------------------------------
$main::DEBUG = $debug;
$main::PROFILE = 0;
$main::RUNTIME = 0; # turn on to just build runtime support and NSPR projects
$main::GC_LEAK_DETECTOR = 0; # turn on to use GC leak detection
$main::MOZILLA_OFFICIAL = 0; # generate build number
$main::LOG_TO_FILE = 0; # write perl output to a file
#-------------------------------------------------------------
# configuration variables that affect the manner of building,
# but possibly affecting the outcome.
#-------------------------------------------------------------
$main::ALIAS_SYM_FILES = $main::DEBUG;
$main::CLOBBER_LIBS = 1; # turn on to clobber existing libs and .xSYM files before
# building each project
# The following two options will delete all dist files (if you have $main::build{dist} turned on),
# but leave the directory structure intact.
$main::CLOBBER_DIST_ALL = 1; # turn on to clobber all aliases/files inside dist (headers/xsym/libs)
$main::CLOBBER_DIST_LIBS = 0; # turn on to clobber only aliases/files for libraries/sym files in dist
$main::CLOBBER_IDL_PROJECTS = 0; # turn on to clobber all IDL projects.
$main::UNIVERSAL_INTERFACES_VERSION = 0x0320;
#-------------------------------------------------------------
# configuration variables that are preferences for the build,
# style and do not affect what is built.
#-------------------------------------------------------------
$main::CLOSE_PROJECTS_FIRST = 0;
# 1 = close then make (for development),
# 0 = make then close (for tinderbox).
$main::USE_TIMESTAMPED_LOGS = 0;
$main::USE_BUILD_PROGRESS = 1; # track build progress for restartable builds
#-------------------------------------------------------------
# END OF CONFIG SWITCHES
#-------------------------------------------------------------
$main::BIN_DIRECTORY = $bin_dir;
}
#//--------------------------------------------------------------------------------------------------
#// SetupBuildRootDir
#//--------------------------------------------------------------------------------------------------
sub SetupBuildRootDir($)
{
my($rel_path_to_script) = @_;
my($cur_dir) = cwd();
$cur_dir =~ s/$rel_path_to_script$//;
chdir($cur_dir) || die "Error: failed to set build root directory to '$cur_dir'.\nYou probably need to put 'mozilla' one level down (in a folder).\n";
$main::MOZ_SRC = cwd();
}
#//--------------------------------------------------------------------------------------------------
#// StartBuildModule
#//--------------------------------------------------------------------------------------------------
sub StartBuildModule($)
{
my($module) = @_;
print("---- Start of $module ----\n");
}
#//--------------------------------------------------------------------------------------------------
#// EndBuildModule
#//--------------------------------------------------------------------------------------------------
sub EndBuildModule($)
{
my($module) = @_;
WriteBuildProgress($module);
print("---- End of $module ----\n");
}
#--------------------------------------------------------------------------------------------------
# GetBinDirectory
#--------------------------------------------------------------------------------------------------
sub GetBinDirectory()
{
if ($main::BIN_DIRECTORY eq "") { die "Dist directory not set\n"; }
return $main::BIN_DIRECTORY;
}
#--------------------------------------------------------------------------------------------------
# AskAndPersistFile stores the information about the user pick inside
# the file $session_storage
#--------------------------------------------------------------------------------------------------
sub AskAndPersistFile($)
{
my ($sessionStorage) = @_;
my $cvsfile;
if (( -e $sessionStorage) &&
open( SESSIONFILE, $sessionStorage ))
{
# Read in the path if available
$cvsfile = <SESSIONFILE>;
chomp $cvsfile;
close SESSIONFILE;
if ( ! -e $cvsfile )
{
print STDERR "$cvsfile has disappeared\n";
undef $cvsfile;
}
}
unless (defined ($cvsfile))
{
# make sure that MacPerl is a front process
ActivateApplication('McPL');
MacPerl::Answer("Could not find your MacCVS session file. Please choose one", "OK");
# prompt user for the file name, and store it
my $macFile = StandardGetFile( 0, "McvD");
if ( $macFile->sfGood() )
{
$cvsfile = $macFile->sfFile();
# save the choice if we can
if ( open (SESSIONFILE, ">" . $sessionStorage))
{
printf SESSIONFILE $cvsfile, "\n";
close SESSIONFILE;
}
else
{
print STDERR "Could not open storage file $sessionStorage for saving $cvsfile\n";
}
}
}
return $cvsfile;
}
#--------------------------------------------------------------------------------------------------
# BuildIDLProject
#
#--------------------------------------------------------------------------------------------------
sub BuildIDLProject($$)
{
my ($project_path, $module_name) = @_;
if ($main::CLOBBER_IDL_PROJECTS)
{
my($datafolder_path) = $project_path;
$datafolder_path =~ s/\.mcp$/ Data:/; # generate name of the project's data folder.
print STDERR "Deleting IDL data folder: $datafolder_path\n";
EmptyTree($datafolder_path);
}
BuildOneProject($project_path, "headers", 0, 0, 0);
BuildOneProject($project_path, $module_name.".xpt", 1, 0, 1);
}
#//--------------------------------------------------------------------------------------------------
#// Build one project, and make the alias. Parameters are project path, target name, shared library
#// name, make shlb alias (boolean), make xSYM alias (boolean), and is component (boolean).
#//--------------------------------------------------------------------------------------------------
sub BuildOneProjectWithOutput($$$$$$)
{
my ($project_path, $target_name, $output_name, $alias_shlb, $alias_xSYM, $component) = @_;
unless ($project_path =~ m/^$main::BUILD_ROOT.+/) { return; }
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
my($D) = $main::DEBUG ? "Debug" : "";
my($dist_dir) = GetBinDirectory();
# Put libraries in "Essential Files" folder, Components in "Components" folder
my($component_dir) = $component ? "Components:" : "Essential Files:";
my($project_dir) = $project_path;
$project_dir =~ s/:[^:]+$/:/; # chop off leaf name
if ($main::CLOBBER_LIBS)
{
unlink "$project_dir$output_name"; # it's OK if these fail
unlink "$project_dir$output_name.xSYM";
}
BuildProject($project_path, $target_name);
$alias_shlb ? MakeAlias("$project_dir$output_name", "$dist_dir$component_dir") : 0;
$alias_xSYM ? MakeAlias("$project_dir$output_name.xSYM", "$dist_dir$component_dir") : 0;
}
#//--------------------------------------------------------------------------------------------------
#// For compatiblity with existing scripts, BuildOneProject now just calls
#// BuildOneProjectWithOutput, with the output name and target name identical.
#// Note that this routine assumes that the target name and the shared libary name
#// are the same.
#//--------------------------------------------------------------------------------------------------
sub BuildOneProject($$$$$)
{
my ($project_path, $target_name, $alias_shlb, $alias_xSYM, $component) = @_;
BuildOneProjectWithOutput($project_path, $target_name, $target_name,
$alias_shlb, $alias_xSYM, $component);
}
#//--------------------------------------------------------------------------------------------------
#// Make resource aliases for one directory
#//--------------------------------------------------------------------------------------------------
sub BuildFolderResourceAliases($$)
{
my($src_dir, $dest_dir) = @_;
# get a list of all the resource files
opendir(SRCDIR, $src_dir) || die("can't open $src_dir");
my(@resource_files) = readdir(SRCDIR);
closedir(SRCDIR);
# make aliases for each one into the dest directory
print("Placing aliases to all files from $src_dir in $dest_dir\n");
for ( @resource_files )
{
next if $_ eq "CVS";
#print(" Doing $_\n");
if (-l $src_dir.$_)
{
print(" $_ is an alias\n");
next;
}
my($file_name) = $src_dir . $_;
MakeAlias($file_name, $dest_dir);
}
}
#//--------------------------------------------------------------------------------------------------
#// DelayFor
#//
#// Delay for the given number of seconds, allowing the script to be cancelled
#//--------------------------------------------------------------------------------------------------
sub DelayFor($)
{
my($delay_secs) = @_;
STDOUT->autoflush(1);
my($end_time) = time() + $delay_secs;
my($last_time) = 0;
my($cur_time) = time();
while ($cur_time < $end_time)
{
$cur_time = time();
if ($cur_time > $last_time)
{
print ".";
$last_time = $cur_time;
}
WaitNextEvent();
}
print "\n";
STDOUT->autoflush(0);
}
#//--------------------------------------------------------------------------------------------------
#// TimeStart
#//--------------------------------------------------------------------------------------------------
sub TimeStart()
{
return time();
}
#//--------------------------------------------------------------------------------------------------
#// TimeEnd
#//--------------------------------------------------------------------------------------------------
sub TimeEnd($$)
{
use integer;
my($start_time, $operation_name) = @_;
my($end_time) = time();
my($tot_sec) = $end_time - $start_time;
my($seconds) = $tot_sec;
my($hours) = $seconds / (60 * 60);
$seconds -= $hours * (60 * 60);
my($minutes) = $seconds / 60;
$seconds -= $minutes * 60;
print "$operation_name took $hours hours $minutes minutes and $seconds seconds\n";
}
#//--------------------------------------------------------------------------------------------------
#// Remove all files from a tree, leaving directories intact (except "CVS").
#//--------------------------------------------------------------------------------------------------
sub EmptyTree($)
{
my ($root) = @_;
#print "EmptyTree($root)\n";
opendir(DIR, $root);
my $sub;
foreach $sub (readdir(DIR))
{
my $fullpathname = $root.$sub; # -f, -d only work on full paths
# Don't call empty tree for the alias of a directory.
# -d returns true for the alias of a directory, false for a broken alias)
if (-d $fullpathname)
{
if (-l $fullpathname) # delete aliases
{
unlink $fullpathname;
next;
}
EmptyTree($fullpathname.":");
if ($sub eq "CVS")
{
#print "rmdir $fullpathname\n";
rmdir $fullpathname;
}
}
else
{
unless (unlink $fullpathname) { die "Failed to delete $fullpathname\n"; }
}
}
closedir(DIR);
}
#//--------------------------------------------------------------------------------------------------
#// Recurse through a directory hierarchy, looking for MANIFEST files.
#// Currently unused.
#//--------------------------------------------------------------------------------------------------
sub ScanForManifestFiles($$$$)
{
my($dir, $theme_root, $theme_name, $dist_dir) = @_;
opendir(DIR, $dir) or die "Cannot open dir $dir\n";
my @files = readdir(DIR);
closedir DIR;
my $file;
foreach $file (@files)
{
my $filepath = $dir.":".$file;
if (-d $filepath)
{
# print "Looking for MANIFEST files in $filepath\n";
ScanForManifestFiles($filepath, $theme_root, $theme_name, $dist_dir);
}
elsif ($file eq "MANIFEST")
{
# print "Doing manifest file $filepath\n";
# Get the dest path from the first line of the file
open(MANIFEST, $filepath) || die "Could not open file $file";
# Read in the path if available
my($dest_line) = <MANIFEST>;
chomp $dest_line;
close MANIFEST;
$dest_line =~ s|^#!dest[\t ]+|| || die "No destination line found in $filepath\n";
my($dest_path) = $dist_dir."chrome:skins:$theme_name:$dest_line";
# print " Destination is $dest_path\n";
InstallResources($filepath, "$dest_path", 0);
}
}
}
#-----------------------------------------------
# SetupBuildLog
#-----------------------------------------------
sub SetupBuildLog($$)
{
my($logfile_path, $timestamped_log) = @_;
my($logdir) = "";
my($logfile) = $logfile_path;
if ($logfile_path =~ /(.+?:)([^:]+)$/) # ? for non-greedy match
{
$logdir = $1;
$logfile = $2;
mkpath($logdir);
}
if ($timestamped_log)
{
#Use time-stamped names so that you don't clobber your previous log file!
my $now = localtime();
while ($now =~ s@:@.@) {} # replace all colons by periods
OpenErrorLog("${logdir}${now}");
}
else
{
OpenErrorLog("${logdir}${logfile}");
}
}
#-----------------------------------------------
# SetBuildNumber
#-----------------------------------------------
sub SetBuildNumber($$)
{
my($build_num_file, $files_to_touch) = @_;
# Make sure we add the config dir to search, to pick up mozBDate.pm
# Need to do this dynamically, because this module can be used before
# mozilla/config has been checked out.
my ($inc_path) = $0; # $0 is the path to the parent script
$inc_path =~ s/:build:mac:build_scripts:.+$/:config/;
push(@INC, $inc_path);
require mozBDate;
mozBDate::UpdateBuildNumber($build_num_file, $main::MOZILLA_OFFICIAL);
my($file);
foreach $file (@$files_to_touch)
{
print "Writing build number to $file from ${file}.in\n";
mozBDate::SubstituteBuildNumber($file, $build_num_file, "${file}.in");
}
}
#-----------------------------------------------
# SetBuildNumber
#-----------------------------------------------
sub SetTimeBomb($$)
{
my ($warn_days, $bomb_days) = @_;
system("perl :mozilla:config:mac-set-timebomb.pl $warn_days $bomb_days");
}
1;

View File

@@ -0,0 +1,592 @@
#!perl
package Moz::CodeWarriorLib;
=pod
=head1 NAME
CodeWarriorLib - supply interface to CodeWarrior
=head1 SYNOPSIS
#!perl
use CodeWarriorLib;
CodeWarriorLib::activate();
$had_errors = CodeWarriorLib::build_project(
$project_path, $target_name, $recent_errors_file, $clean_build
);
=head1 DESCRIPTION
Replaces the AppleScript library I<CodeWarriorLib>.
=over 4
=cut
use strict;
use Cwd;
use Mac::Types;
use Mac::Events;
use Mac::AppleEvents;
use Mac::AppleEvents::Simple;
use Mac::Processes;
use Mac::MoreFiles;
use Mac::StandardFile;
use File::Basename;
use vars qw($VERSION);
$VERSION = '1.02';
my($app) = 'CWIE';
my($scriptDir) = cwd(); # could use $0 for this
my($ide_loc_file) = "";
# 0 == don't switch CWIE to front app in do_event(), 1 == do switch
# note: activate() still switches when called
$Mac::AppleEvents::Simple::SWITCH = 0;
# $Mac::AppleEvents::Simple::WARN = 1;
# supply your own path to the source here
#_test('PowerPudgeIV:mozilla:mozilla:');
=pod
=item _get_project($full_path)
A private routine returning a reference to the open project with the given name,
or else the empty string (when that project is not open)
full_path is a string identifying the project to be built and is of the form,
e.g., "HD:ProjectFolder:MyProject.mcp". It must be supplied.
=cut
sub _get_project ($) {
my(
$full_path, $candidate_projects
) = @_;
$candidate_projects = _doc_named(basename($full_path, '*'));
if ($candidate_projects) {
my($cps) = _get_dobj($candidate_projects);
my($num) = AECountItems($cps);
if ($num) { # is a list
foreach (1 .. AECountItems($cps)) {
my($cp) = AEGetNthDesc($cps, $_);
if (lc $full_path eq lc _full_path($cp)) {
return($cp);
}
}
} else { # is only one, not a list
if (lc $full_path eq lc _full_path($cps)) {
return($cps);
}
}
}
return;
}
=pod
=item build_project
Build a selected target of a project, saving any errors to a file, if supplied.
full_path is a string identifying the project to be built and is of the form,
e.g., "HD:ProjectFolder:MyProject.mcp". It must be supplied.
If target_name is the empty string, the current target of the selected project
will be built, else, target_name should be a string matching a target name in
the selected project.
If error_path is the empty string, errors will not be saved to a file,
else, error_path should be the full path of a file to save error messages into.
=cut
$CodeWarriorLib::CLOSE_PROJECTS_FIRST = 0; # If true we close then make. If false, make then close.
my $last_project_built = "";
my $last_project_was_closed = 0;
sub build_project ($;$$$) {
my(
$full_path, $target_name, $error_path,
$remove_object, $p, $project_was_closed, $had_errors
) = @_;
_close_errors_window();
if ($CodeWarriorLib::CLOSE_PROJECTS_FIRST && ($last_project_built ne $full_path))
{
# If we're in "close first" mode, we don't close if the current project
# is the same as the previous one.
if ($last_project_was_closed) {
$p = _get_project($last_project_built);
_close($p);
}
$last_project_built = $full_path;
$last_project_was_closed = 0; # now refers to the new project
}
$project_was_closed = 0;
while (1) {
$p = _get_project($full_path);
if (!$p) {
if ($project_was_closed) {
print "### Error - request for project document failed after opening\n";
die "### possibly CW Pro 4 bug: be sure to close your Find window\n";
}
$project_was_closed = 1;
$last_project_was_closed = 1;
_open_file($full_path);
} else {
last;
}
}
$had_errors = 0;
if ($target_name eq '') {
if ($remove_object) {_remove_object($p)}
_build($p);
} else {
if ($remove_object) {_remove_object($p, $target_name)}
_build($p, $target_name);
}
if ($error_path ne '') {
_save_errors_window($error_path);
}
$had_errors = _close_errors_window();
if (!$CodeWarriorLib::CLOSE_PROJECTS_FIRST)
{
if ($project_was_closed) {
$p = _get_project($full_path);
_close($p);
}
}
return($had_errors);
}
=pod
=item appIsRunning()
=cut
sub _appIsRunning($)
{
my ($appSignature) = @_;
my ($psi);
my ($found) = 0;
my ($appPSN);
foreach $psi (values(%Process))
{
if ($psi->processSignature() eq $appSignature)
{
$appPSN = $psi->processNumber();
$found = 1;
last;
}
}
return $found;
}
=pod
=item appIsFrontmost()
=cut
sub _appIsFrontmost($)
{
my ($appSignature) = @_;
my ($psi);
my ($found) = 0;
my ($appPSN);
foreach $psi (values(%Process))
{
if ($psi->processSignature() eq $appSignature)
{
$appPSN = $psi->processNumber();
$found = 1;
last;
}
}
return (GetFrontProcess() == $appPSN);
}
=pod
=item activate()
Launches CodeWarrior and brings it to the front.
Once found, path will be saved in $idepath_file for future reference.
Edit or delete this file to change the location of the IDE. If app is
moved, C<activate()> will prompt for a new location.
First looks for an open CodeWarrior app. Second, tries to open previously
saved location in ':idepath.txt'. Third, tries to find it and allow user
to choose it with Navigation Services (if present). Fourth, uses good old
GUSI routines built-in to MacPerl for a Choose Directory dialog box.
=cut
sub activate ($) {
$ide_loc_file = $_[0]; # save in global
my($filepath, $appath, $psi) = ($ide_loc_file);
foreach $psi (values(%Process)) {
if ($psi->processSignature() eq $app) {
$appath = $psi->processAppSpec();
_save_appath($filepath, $appath);
last;
}
}
if (!$appath || !-x $appath) {
$appath = _read_appath($filepath);
}
if (!$appath || ! -x $appath)
{
# make sure that MacPerl is a front process
#ActivateApplication('McPL');
MacPerl::Answer("Please locate the CodeWarrior application.", "OK");
# prompt user for the file name, and store it
my $macFile = StandardGetFile( 0, "APPL");
if ( $macFile->sfGood() )
{
$appath = $macFile->sfFile();
}
else
{
die "Operation canceled\n";
}
# if (eval {require Mac::Navigation}) {
# my($options, $nav);
# Mac::Navigation->import();
# $options = NavGetDefaultDialogOptions();
# $options->message('Where is CodeWarrior IDE?');
# $options->windowTitle('Find CodeWarrior IDE');
# $nav = NavChooseObject($Application{$app}, $options);
# die "CodeWarrior IDE not found.\n" if (!$nav || !$nav->file(1));
# $appath = $nav->file(1);
# } else {
# local(*D);
# my $cwd = `pwd`;
# $appath = _get_folder(
# 'Where is the CW IDE folder?',
# dirname($Application{$app})
# );
# die "CodeWarrior IDE not found.\n" if !$appath;
# opendir(D, $appath) or die $!;
# chdir($appath);
# foreach my $file (sort readdir (D)) {
# my(@app) = MacPerl::GetFileInfo($file);
# if ($app[0] && $app[1] &&
# $app[1] eq 'APPL' && $app[0] eq $app
# ) {
# $appath .= $file;
# last;
# }
# }
# chomp($cwd);
# chdir($cwd);
# }
_save_appath($filepath, $appath);
}
my($lp) = LaunchParam->new(
launchAppSpec => $appath,
launchControlFlags => launchContinue() + launchNoFileFlags()
);
unless (LaunchApplication($lp)) {
unlink($filepath);
die $^E;
}
# wait for CodeWarrior to show up in the list of processes
while (!_appIsRunning('CWIE'))
{
WaitNextEvent();
}
# wait for CodeWarrior to come to the front
while (!_appIsFrontmost('CWIE'))
{
WaitNextEvent();
}
}
=pod
=item getCodeWarriorPath()
Returns a file path relative to the CodeWarrior folder
=cut
sub getCodeWarriorPath($)
{
my($subfolder)=@_;
my($app_path) = _read_appath($ide_loc_file);
if ($app_path eq "") { die "Error: Failed to get CodeWarrior IDE path\n"; }
my($codewarrior_root) = $app_path;
$codewarrior_root =~ s/[^:]*$//;
return ($codewarrior_root . $subfolder);
}
=pod
=item getCodeWarriorIDEName()
Returns the name of the CodeWarrior application
=cut
sub getCodeWarriorIDEName()
{
my($subfolder)=@_;
my($app_path) = _read_appath($ide_loc_file);
if ($app_path eq "") { die "Error: Failed to get CodeWarrior IDE path\n"; }
my(@codewarrior_path) = split(/:/, $app_path);
return pop(@codewarrior_path);
}
=pod
=item quit()
Quits CodeWarrior.
=cut
sub quit() {
$last_project_built = "";
$last_project_was_closed = 0;
my($evt) = do_event(qw/aevt quit/, $app);
}
sub _build ($;$) {
my($evt);
if ($_[1]) {
my($prm) =
q"'----':obj {form:name, want:type(TRGT), seld:TEXT(@), from:" .
AEPrint($_[0]) . '}';
$evt = do_event(qw/CWIE MAKE/, $app, $prm, $_[1]);
} else {
my($prm) = q"'----':" . AEPrint($_[0]);
$evt = do_event(qw/CWIE MAKE/, $app, $prm);
}
}
sub _remove_object ($;$) {
my($evt);
if ($_[1]) {
my($prm) =
q"'----':obj {form:name, want:type(TRGT), seld:TEXT(@), from:" .
AEPrint($_[0]) . '}';
$evt = do_event(qw/CWIE RMOB/, $app, $prm, $_[1]);
} else {
my($prm) = q"'----':" . AEPrint($_[0]);
$evt = do_event(qw/CWIE RMOB/, $app, $prm);
}
}
sub _open_file ($) {
my($prm) =
q"'----':obj {form:name, want:type(alis), " .
q"seld:TEXT(@), from:'null'()}";
do_event(qw/aevt odoc/, $app, $prm, $_[0]);
}
sub import_project ($$) {
my($xml_file, $project_path) = @_;
my($prm) = "kocl:type(PRJD), rtyp:TEXT(@), data:TEXT(@), &subj:'null'()";
my($evt) = do_event(qw/core crel/, $app, $prm, $project_path, $xml_file);
return $evt->{ERROR};
}
sub _doc_named ($) {
my($prm) =
q"'----':obj {form:test, want:type(docu), from:'null'(), " .
q"seld:cmpd{relo:'= ', 'obj1':obj {form:prop, want:type" .
q"(prop), seld:type(pnam), from:'exmn'()}, 'obj2':TEXT(@)}}";
my($evt) = do_event(qw/core getd/, $app, $prm, $_[0]);
return($evt->{REPLY} eq 'aevt\ansr{}' ? undef : $evt);
}
sub _full_path ($) {
my($obj) = $_[0];
my($prm) =
q"'----':obj {form:prop, want:type(prop), seld:type(FILE), " .
q"from:" . AEPrint($_[0]) . q"}, rtyp:type(TEXT)";
my($evt) = do_event(qw/core getd/, $app, $prm);
return MacPerl::MakePath(
MacUnpack('fss ', (
AEGetParamDesc($evt->{REP}, keyDirectObject()))->data()->get()
)
);
}
sub _save_errors_window ($) {
my($prm) =
q"'----':obj {form:name, want:type(alis), seld:TEXT(@), from:'null'()}";
do_event(qw/MMPR SvMs/, $app, $prm, $_[0]);
}
sub _close_errors_window () {
my($prm) =
q"'----':obj {form:name, want:type(cwin), " .
q"seld:TEXT(@), from:'null'()}";
my($evt) = do_event(qw/core clos/, $app, $prm, 'Errors & Warnings');
return($evt->{REPLY} eq 'aevt\ansr{}' ? 1 : 0);
}
sub _close () {
my($prm) = q"'----':" . AEPrint($_[0]);
do_event(qw/core clos/, $app, $prm);
}
sub _get_dobj ($) {
return(AEGetParamDesc($_[0]->{REP}, keyDirectObject()));
}
sub _get_folder ($$) {
require 'GUSI.ph';
my($prompt, $default) = @_;
MacPerl::Choose(
GUSI::AF_FILE(), 0, $prompt, '',
GUSI::CHOOSE_DIR() + ($default ? &GUSI::CHOOSE_DEFAULT : 0),
$default
);
}
sub _save_appath ($$) {
my($cwd) = cwd(); # remember the current working dir
chdir($scriptDir); # change dir to the script dir
local(*F);
open(F, '>' . $_[0]) or die $!;
print F $_[1];
close(F);
chdir($cwd); # restore the cwd
}
sub _read_appath ($) {
my($filepath) = @_;
my($cwd) = cwd(); # remember the current working dir
chdir($scriptDir); # change dir to the script dir
if (! -e $filepath) {
return "";
}
local(*F);
open(F, $filepath);
my($appath) = <F>;
close(F);
chdir($cwd); # restore the cwd
return($appath);
}
sub _test ($) {
activate($ide_loc_file);
my($path) = $_[0];
build_project(
"${path}modules:xml:macbuild:XML.mcp", '',
"${path}build:mac:Mozilla.BuildLog.part"
);
}
1;
=pod
=back
=head1 HISTORY
=over 4
=item v1.02, September 23, 1998
Made fixes in finding and saving location of CodeWarrior IDE.
=item v1.01, June 1, 1998
Made fixes to C<chdir()> in C<activate()>, made C<activate()> more robust
in finding CodeWarrior IDE, added global variable to NOT switch to IDE
for each sent event, a few other fixes.
=item v1.00, May 30, 1998
First shot
=back
=head1 AUTHORS
Chris Nandor F<E<lt>pudge@pobox.comE<gt>>, and the author of the
original I<CodeWarriorLib>, Scott Collins F<E<lt>scc@netscape.comE<gt>>.
=head1 SEE ALSO
BuildProject L<Moz>.
=head1 COPYRIGHT
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
=cut

View File

@@ -0,0 +1,599 @@
#!perl -w
package Moz::Jar;
#
# Module for creating jar files, either using a jar manifest, or
# simply jarring up folders on disk.
#
require 5.004;
require Exporter;
use strict;
use Archive::Zip;
use File::Path;
use Mac::Files;
use Moz::Moz;
use vars qw( @ISA @EXPORT );
@ISA = qw(Exporter);
@EXPORT = qw(
CreateJarFileFromDirectory
CreateJarFromManifest
WriteOutJarFiles
SanityCheckJarOptions
);
#-------------------------------------------------------------------------------
# Add the contents of a directory to the zip file
#
#-------------------------------------------------------------------------------
sub _addDirToJar($$$$)
{
my($dir, $jar_root, $zip, $compress) = @_;
opendir(DIR, $dir) or die "Error: Cannot open dir $dir\n";
my @files = readdir(DIR);
closedir DIR;
my $unix_jar_root = $jar_root;
$unix_jar_root =~ s|:|/|g; # colon to slash conversion
my $file;
foreach $file (@files)
{
my $filepath = $dir.":".$file;
if (-d $filepath)
{
print "Adding files to jar from $filepath\n";
_addDirToJar($filepath, $jar_root, $zip, $compress);
}
else
{
my $member = Archive::Zip::Member->newFromFile($filepath);
die "Error: Failed to create zip file member $filepath\n" unless $member;
my $unixName = $filepath;
$unixName =~ s|:|/|g; # colon to slash conversion
$unixName =~ s|^$unix_jar_root||; # relativise
$member->fileName($unixName);
# print "Adding $file as $unixName\n";
if ($compress) {
$member->desiredCompressionMethod(Archive::Zip::COMPRESSION_DEFLATED);
} else {
$member->desiredCompressionMethod(Archive::Zip::COMPRESSION_STORED);
}
$zip->addMember($member);
}
}
}
#-------------------------------------------------------------------------------
# Add the contents of a directory to the zip file
#
#-------------------------------------------------------------------------------
sub CreateJarFileFromDirectory($$$)
{
my($srcdir, $jarpath, $compress) = @_;
my $zip = Archive::Zip->new();
_addDirToJar($srcdir, $srcdir, $zip, $compress);
print "Saving zip file...\n";
my $status = $zip->writeToFileNamed($jarpath);
if ($status == 0) {
print "Zipping completed successfully\n";
} else {
print "Error saving zip file\n";
}
# set the file type/creator to something reasonable
MacPerl::SetFileInfo("ZIP ", "ZIP ", $jarpath);
}
#-------------------------------------------------------------------------------
# SanityCheckJarOptions
#
#-------------------------------------------------------------------------------
sub SanityCheckJarOptions()
{
if (!$main::options{chrome_jars} && !$main::options{chrome_files})
{
print "Both \$options{chrome_jars} and \$options{chrome_files} are off. You won't get any chrome.\n";
return;
}
if (!$main::options{chrome_jars} && $main::options{use_jars})
{
print "\$options{chrome_jars} is off but \$options{use_jars} is on. Your build won't run (expects jars, got files).\n";
return;
}
if (!$main::options{chrome_files} && !$main::options{use_jars})
{
print "\$options{chrome_jars} is off but \$options{chrome_files} is on. Your build won't run (expects files, got jars).\n";
return;
}
}
#-------------------------------------------------------------------------------
# printZipContents
#
#-------------------------------------------------------------------------------
sub printZipContents($)
{
my($zip) = @_;
my(@members) = $zip->memberNames();
print "Zip contains:\n";
my($member);
foreach $member (@members)
{
print " $member\n";
}
}
#-------------------------------------------------------------------------------
# safeSaveJarFile
#
# Archive::Zip has a problem where you cannot save a zip file on top of
# an existing zip file that it has open, because it holds references
# into that zip. So we have to save to a temp file, then do a swap.
#
# Note that the zip will become invalid after this operation.
# If you want to do further operations on it, you'll have to reread it.
#-------------------------------------------------------------------------------
sub safeSaveJarFile($$)
{
my($zip, $full_dest_path) = @_;
my($temp_file_name) = $full_dest_path."_temp";
($zip->writeToFileNamed($temp_file_name) == Archive::Zip::AZ_OK) || die "Error: died writing jar to temp file $temp_file_name\n";
unlink $full_dest_path;
(rename $temp_file_name, $full_dest_path) || die "Error: Failed to rename $temp_file_name\n";
MacPerl::SetFileInfo("ZIP ", "ZIP ", $full_dest_path);
}
#-------------------------------------------------------------------------------
# addToJarFile
#
# Add a file to a jar file
#
# Parameters:
# 1. Jar ID. Unix path of jar file inside chrome.
# 2. Abs path to jar.mn file (i.e. source) (mac breaks)
# 3. File source, relative to jar.mn path (mac breaks)
# 4. Abs path to the resulting .jar file (mac breaks)
# 5. Relative file path within the jar (unix breaks)
# 6. Reference to hash of jar files
#
#-------------------------------------------------------------------------------
sub addToJarFile($$$$$$$)
{
my($jar_id, $jar_man_dir, $file_src, $jar_path, $file_jar_path, $override, $jars) = @_;
# print "addToJarFile with:\n $jar_man_dir\n $file_src\n $jar_path\n $file_jar_path\n";
unless ($jar_path =~ m/(.+:)([^:]+)$/) { die "Error: Bad jar path $jar_path\n"; }
my($target_dir) = $1;
my($jar_name) = $2;
$target_dir =~ s/[^:]+$//;
# print "¥ $target_dir $jar_name\n";
# find the source file
my($src) = $jar_man_dir.":".$file_src;
if ((!-e $src) && ($file_src =~ m/.+:([^:]+)$/)) # src does not exist. Fall back to looking for src in jar.mn dir
{
$file_src = $1;
$src = $jar_man_dir.":".$file_src;
if (!-e $src) {
die "Error: Can't find chrome file $src\n";
}
}
if ($main::options{chrome_jars})
{
my($zip) = $jars->{$jar_id};
unless ($zip) { die "Error: Can't find Zip entry for $jar_id\n"; }
# print "Adding $file_src to jar file $jar_path at $file_jar_path\n";
my($member) = Archive::Zip::Member->newFromFile($src);
unless ($member) { die "Error: Failed to create zip file member $src\n"; }
$member->fileName($file_jar_path);
my($compress) = 1;
if ($compress) {
$member->desiredCompressionMethod(Archive::Zip::COMPRESSION_DEFLATED);
$member->desiredCompressionLevel(Archive::Zip::COMPRESSION_LEVEL_DEFAULT); # defaults to 6
} else {
$member->desiredCompressionMethod(Archive::Zip::COMPRESSION_STORED);
}
my($old_member) = $zip->memberNamed($file_jar_path);
if ($override)
{
if ($old_member)
{
# print "Overriding $file_jar_path in jar file $jar_id\n";
# need to compare mod dates or use the + here
$zip->removeMember($old_member);
}
$zip->addMember($member);
}
else
{
if ($old_member)
{
#compare dates here
my($member_moddate) = $old_member->lastModTime();
my($file_moddate) = GetFileModDate($src);
if ($file_moddate > $member_moddate)
{
print "Updating older file $file_jar_path in $jar_id\n";
$zip->removeMember($old_member);
$zip->addMember($member);
}
else
{
print "File $file_jar_path in $jar_id is more recent. Not updating.\n";
}
}
else
{
$zip->addMember($member);
}
}
}
if ($main::options{chrome_files}) # we install raw files too
{
my($rel_path) = $file_jar_path;
$rel_path =~ s|/|:|g; # slash to colons
my($dir_name) = $jar_name;
$dir_name =~ s/\.jar$//;
my($dst) = $target_dir.$dir_name.":".$rel_path;
# print "Aliassing $src\n to\n$dst\n";
if ($override)
{
unlink $dst;
MakeAlias($src, $dst); # don't check errors, otherwise we fail on replacement
}
else
{
if (-e $dst)
{
#compare dates here
my($dst_moddate) = GetFileModDate($dst);
my($file_moddate) = GetFileModDate($src);
if ($file_moddate > $dst_moddate)
{
print "Updating older file $rel_path in $dir_name\n";
unlink $dst;
MakeAlias($src, $dst);
}
else
{
print "File $file_jar_path in $jar_id is more recent. Not updating.\n";
}
}
else
{
MakeAlias($src, $dst);
}
}
}
}
#-------------------------------------------------------------------------------
# setupJarFile
#
# setup a zip for writing
#-------------------------------------------------------------------------------
sub setupJarFile($$$)
{
my($jar_id, $dest_path, $jar_hash) = @_;
# print "Creating jar file $jar_id at $jar_path\n";
my($jar_file) = $jar_id;
$jar_file =~ s|/|:|g; # slash to colons
my($full_jar_path) = full_path_to($dest_path.":".$jar_file);
if ($main::options{chrome_jars})
{
my($zip) = $jar_hash->{$jar_id};
if (!$zip) # if we haven't made it already, do so
{
my($zip) = Archive::Zip->new();
$jar_hash->{$jar_id} = $zip;
# does the jar file exist already? If so, read it in
if (-e $full_jar_path)
{
print "Reading in jar file $jar_id\n";
if ($zip->read($full_jar_path) != Archive::Zip::AZ_OK) { die "Error: Failed to re-read $full_jar_path\n"; }
# printZipContents($zip);
}
}
}
else
{
# installing files.
# nothing to do. MakeAlias creates dirs as needed.
# add this jar to the list
$jar_hash->{$jar_id} = 1;
}
}
#-------------------------------------------------------------------------------
# closeJarFile
#
# We're done with this jar file _for this jar.mn_. We may add more entries
# to it later, so keep it open in the hash.
#-------------------------------------------------------------------------------
sub closeJarFile($$)
{
my($jar_path, $jar_hash) = @_;
# print "Closing jar file $jar_path\n";
if ($main::options{chrome_jars})
{
}
else
{
# installing files.
# nothing to do
}
}
#-------------------------------------------------------------------------------
# WriteOutJarFiles
#
# Now we dump out the jars
#-------------------------------------------------------------------------------
sub WriteOutJarFiles($$)
{
my($chrome_dir, $jars) = @_;
unless ($main::options{chrome_jars}) { return; }
my($full_chrome_path) = full_path_to($chrome_dir);
my($key);
foreach $key (keys %$jars)
{
my($zip) = $jars->{$key};
my($rel_path) = $key;
$rel_path =~ s/\//:/g;
my($output_path) = $full_chrome_path.":".$rel_path;
print "Writing zip file $key to $output_path\n";
# ensure the target dirs exist
my($path) = $output_path;
$path =~ s/[^:]+$//;
mkpath($path);
# unlink $output_path; # remove any existing jar
safeSaveJarFile($zip, $output_path);
# $zip is invalid after this operation, so nuke it here
$jars->{$key} = 0;
}
}
#-------------------------------------------------------------------------------
# registerChromePackage
#
# Enter a chrome package into the installed-chrome.txt file
#-------------------------------------------------------------------------------
sub registerChromePackage($$$$$$)
{
my($jar_file, $file_path, $chrome_dir, $jar_hash, $chrome_type, $pkg_name) = @_;
my($manifest_subdir) = $jar_file;
$manifest_subdir =~ s/:/\//g;
my($chrome_entry);
if ($main::options{use_jars}) {
$chrome_entry = "$chrome_type,install,url,jar:resource:/chrome/$manifest_subdir!/$chrome_type/$pkg_name";
} else {
$manifest_subdir =~ s/\.jar$//;
$chrome_entry = "$chrome_type,install,url,resource:/chrome/$manifest_subdir/$chrome_type/$pkg_name";
}
# print "Entering $chrome_entry in installed-chrome.txt\n";
# ensure chrome_dir exists
mkpath($chrome_dir);
my($inst_chrome) = ${chrome_dir}.":installed-chrome.txt";
if (open(CHROMEFILE, "<$inst_chrome")) {
while (<CHROMEFILE>) {
chomp;
if ($_ eq $chrome_entry) {
# $chrome_entry already appears in installed-chrome.txt file
# just update the mod date
my $now = time;
utime($now, $now, $inst_chrome) || die "Error: Couldn't touch $inst_chrome";
print "+++ updating chrome $inst_chrome\n+++\t\t$chrome_entry\n";
close(CHROMEFILE) || die "Error: can't close $inst_chrome: $!";
return 0;
}
}
close(CHROMEFILE) || die "Error: can't close $inst_chrome: $!";
}
open(CHROMEFILE, ">>${inst_chrome}") || die "Error: Failed to open $inst_chrome\n";
print(CHROMEFILE "${chrome_entry}\n");
close(CHROMEFILE) || die "Error: Failed to close $inst_chrome\n";
print "+++ adding chrome $inst_chrome\n+++\t\t$chrome_entry\n";
}
#-------------------------------------------------------------------------------
# Create or add to a jar file from a jar.mn file.
# Both arguments are relative to the mozilla root dir.
#
#
#-------------------------------------------------------------------------------
sub CreateJarFromManifest($$$)
{
my($jar_man_path, $dest_path, $jars) = @_;
if ($main::options{chrome_jars}) {
print "Jarring from $jar_man_path\n";
}
if ($main::options{chrome_files}) {
print "Installing files from $jar_man_path\n";
}
$jar_man_path = full_path_to($jar_man_path);
$dest_path = full_path_to($dest_path);
# if the jars hash is empty, nuke installed-chrome.txt
if (! scalar(%$jars))
{
print "Nuking installed-chrome.txt\n";
my($installed_chrome) = $dest_path.":installed-chrome.txt";
# unlink $installed_chrome;
}
my $jar_man_dir = "";
my $jar_man_file = "";
if ($jar_man_path =~ /(.+):([^:]+)$/)
{
$jar_man_dir = $1; # no trailing :
$jar_man_file = $2;
}
# Keep a hash of jar files, keyed on relative jar path (e.g. "packages/core.jar")
# Entries are open Archive::Zips (if zipping), and installed-chrome entries.
my($jar_id) = ""; # Current foo/bar.jar from jar.mn file
my($jar_file) = ""; # relative path to jar file (from $dest_path), with mac separators
my($full_jar_path);
open(FILE, "<$jar_man_path") || die "Error: could not open \"$jar_man_path\": $!";
while (<FILE>)
{
my($line) = $_;
chomp($line);
# print "$line\n";
if ($line =~ /^\s*\#.*$/) { # skip comments
next;
}
if ($line =~/^([\w\d.\-\_\\\/]+)\:\s*$/) # line start jar file entries
{
$jar_id = $1;
$jar_file = $jar_id;
$jar_file =~ s|/|:|g; # slash to colons
$full_jar_path = $dest_path.":".$jar_file;
setupJarFile($jar_id, $dest_path, $jars);
}
elsif ($line =~ /^(\+?)\s+([\w\d.\-\_\\\/]+)\s*(\([\w\d.\-\_\\\/]+\))?$\s*/) # jar file entry
{
my($override) = ($1 eq "+");
my($file_dest) = $2;
my($file_src) = $3;
if ($file_src) {
$file_src = substr($file_src, 1, -1); #strip the ()
} else {
$file_src = $file_dest;
}
$file_src =~ s|/|:|g;
if ($jar_file ne "") # if jar is open, add to jar
{
if ($file_dest =~ /([\w\d.\-\_]+)\/([\w\d.\-\_\\\/]+)contents.rdf/)
{
my $chrome_type = $1;
my $pkg_name = $2;
registerChromePackage($jar_file, $file_dest, $dest_path, $jars, $chrome_type, $pkg_name);
}
addToJarFile($jar_id, $jar_man_dir, $file_src, $full_jar_path, $file_dest, $override, $jars);
}
else
{
die "Error: bad jar.mn format at $line\n";
}
}
elsif ($line =~ /^\s*$/ ) # blank line
{
if ($jar_file ne "") #if a jar file is open, close it
{
closeJarFile($full_jar_path, $jars);
$jar_file = "";
$full_jar_path = "";
}
}
}
close(FILE);
if ($jar_file ne "") #if a jar file is open, close it
{
closeJarFile($full_jar_path, $jars);
}
}
1;

View File

@@ -0,0 +1,254 @@
#!perl -w
package Moz::MacCVS;
# package Mac::Apps::MacCVS; this should really be the name of the package
# but due to our directory hierarchy in mozilla, I am not doing it
require 5.004;
require Exporter;
use strict;
use Exporter;
use vars qw($VERSION @ISA @EXPORT $MacCVSLib);
use Cwd;
use Mac::StandardFile;
use File::Basename;
@ISA = qw(Exporter);
@EXPORT = qw( new print checkout);
$VERSION = "1.00";
my($last_error) = 0;
# Architecture:
# cvs session object:
# name - session name
# session_file - session file
#
# globals
# $MacCVSLib - location of MacCVS applescript library
#
#
#
# utility routines
#
# just like Mac::DoAppleScript, 1 is success, 0 is failure
sub _myDoAppleScript($)
{
my($script) = @_;
my $asresult = MacPerl::DoAppleScript($script);
if ($asresult eq "0")
{
return 1;
}
else
{
my($error_string) = "Unknown error";
my($error_code) = 0;
if ($asresult =~ /^\"(.*)\.([0-9]+)\"$/)
{
$error_string = $1;
$error_code = $2;
}
print STDERR "Error. Script returned '$error_string (error $error_code)\n";
# print STDERR "AppleScript was: \n $script \n";
$last_error = $error_code;
return 0;
}
}
# get the full path to this module
sub _getPathToMe()
{
# this can be a relative or absolute path. If relative, is relative
# to the running script ($0)
my($my_path) = $INC{"Moz/MacCVS.pm"};
if (substr($my_path, 0, 1) eq ":") # relative path
{
$my_path = dirname($0).$my_path;
}
return $my_path;
}
# _useMacCVSLib
# returns 1 on success
# Search the include path for the file called MacCVSLib
sub _useMacCVSLib()
{
unless (defined($MacCVSLib) && ($MacCVSLib ne ""))
{
my($libname) = "MacCVSLib";
my($my_path) = _getPathToMe();
# try in the same directory as this module
my($c) = dirname($my_path).":".$libname;
if ( -e $c)
{
$MacCVSLib = $c;
return 1;
}
# try the directory we were run from
$c = dirname($0) . ":" . $libname;
if ( -e $c)
{
$MacCVSLib = $c;
return 1;
}
# now search the include directories
foreach (@INC)
{
unless ( m/^Dev:Pseudo/ ) # This is some bizarre MacPerl special-case directory
{
$c = $_ . $libname;
if (-e $c)
{
$MacCVSLib = $c;
return 1;
}
}
}
die "Error: MacCVSLib could not be found!";
}
return 1;
}
#
# Session object methods
#
sub new
{
my ( $proto, $session_file) = @_;
my $class = ref($proto) || $proto;
my $self = {};
if ( defined($session_file) && ( -e $session_file) )
{
$self->{"name"} = basename( $session_file );
$self->{"session_file"} = $session_file;
bless $self, $class;
return $self;
}
else
{
print STDERR "MacCVS->new cvs file < $session_file > does not exist\n";
return;
}
}
# makes sure that the session is open
# assertSessionOpen()
# returns 1 on success
sub assertSessionOpen()
{
my ($self) = shift;
_useMacCVSLib() || die "Error: Could not load MacCVSLib\n";
$last_error = 0;
my $script = <<END_OF_APPLESCRIPT;
tell (load script file "$MacCVSLib") to OpenSession("$self->{session_file}")
END_OF_APPLESCRIPT
return _myDoAppleScript($script);
}
# prints the cvs object, used mostly for debugging
sub print
{
my($self) = shift;
$last_error = 0;
print "MacCVS:: name: ", $self->{name}, " session file: ", $self->{session_file}, "\n";
}
# checkout( self, module, revision, date)
# MacCVS checkout command
# returns 1 on success.
sub checkout()
{
my($self, $module, $revision, $date ) = @_;
unless( defined ($module) ) { $module = ""; } # get rid of the pesky undefined warnings
unless( defined ($revision) ) { $revision = ""; }
unless( defined ($date) ) { $date = ""; }
$last_error = 0;
$self->assertSessionOpen() || die "Error: failed to open MacCVS session file at $self->{session_file}\n";
my($revstring) = ($revision ne "") ? $revision : "(none)";
my($datestring) = ($date ne "") ? $date : "(none)";
print "Checking out $module with revision $revstring, date $datestring\n";
my $script = <<END_OF_APPLESCRIPT;
tell (load script file "$MacCVSLib") to Checkout given sessionName:"$self->{name}", module:"$module", revision:"$revision", date:"$date"
END_OF_APPLESCRIPT
return _myDoAppleScript($script);
}
sub getLastError()
{
return $last_error;
}
1;
=pod
=head1 NAME
MacCVS - Interface to MacCVS
=head1 SYNOPSIS
use MacCVS;
$session = MacCVS->new( <session_file_path>) || die "cannot create session";
$session->checkout([module] [revision] [date]) || die "Could not check out";
=head1 DESCRIPTION
This is a MacCVS interface for talking to MacCVS Pro client.
MacCVSSession is the class used to manipulate the session
=item new
MacCVS->new( <cvs session file path>);
Creates a new session. Returns undef on failure.
=item checkout( <module> [revision] [date] )
cvs checkout command. Revision and date are optional
returns 0 on failure
=cut
=head1 SEE ALSO
=over
=item MacCVS Home Page
http://www.maccvs.org/
=back
=head1 AUTHORS
Aleks Totic atotic@netscape.com
=cut
__END__

Binary file not shown.

View File

@@ -0,0 +1,597 @@
=head1 NAME
B<Moz> - routines for automating CodeWarrior builds, and some extra-curricular
activities related to building Mozilla
=head1 SYNOPSIS
use Moz;
OpenErrorLog(":::BuildLog");
StopForErrors();
$Moz::QUIET = 1;
InstallFromManifest(":projects:MANIFEST", $dist_dir);
BuildProjectClean(":projects:SomeProject.mcp", "SomeTarget");
MakeAlias(":projects:SomeProject.shlb", $dist_dir);
DontStopForErrors();
BuildProject(":projects:SomeOtherProject.mcp", "SomeTarget");
=head1 DESCRIPTION
B<Moz> comprises the routines needed to slap CodeWarrior around, force it
to build a sequence of projects, report the results, and a few other things.
This module should only contain functions that are generic to any build,
not just the Mozilla build.
=cut
package Moz::Moz;
require Exporter;
use Cwd;
use File::Copy;
use File::Path;
use Mac::Types;
use Mac::Events;
use Mac::Processes;
use ExtUtils::Manifest 'maniread';
use Moz::CodeWarriorLib;
@ISA = qw(Exporter);
@EXPORT = qw( LaunchCodeWarrior
GetCodeWarriorRelativePath
current_directory
full_path_to
BuildProject
BuildProjectClean
ImportXMLProject
OpenErrorLog
MakeAlias
GetFileModDate
StopForErrors
DontStopForErrors
InstallFromManifest
InstallResources
RedirectOutputToFile
Delay
ActivateApplication
IsProcessRunning);
@EXPORT_OK = qw(CloseErrorLog QUIET);
sub current_directory()
{
my $current_directory = cwd();
chop($current_directory) if ( $current_directory =~ m/:$/ );
return $current_directory;
}
sub full_path_to($)
{
my ($path) = @_;
if ( $path =~ m/^[^:]+$/ )
{
$path = ":" . $path;
}
if ( $path =~ m/^:/ )
{
$path = current_directory() . $path;
}
return $path;
}
$logging = 0;
$recent_errors_file = "";
$stop_on_1st_error = 1;
$QUIET = 0;
=head2 Logging all the errors and warnings - C<OpenErrorLog($log_file)>, C<CloseErrorLog()>
The warnings and errors generated in the course of building projects can be logged to a file.
Tinderbox uses this facility to show why a remote build failed.
Logging is off by default.
Start logging at any point in your build process with C<OpenErrorLog($log_file)>.
Stop with C<CloseErrorLog()>.
You never need to close the log explicitly, unless you want to just log a couple of projects in the middle of a big list.
C<CloseErrorLog()> is not exported by default.
=cut
sub CloseErrorLog()
{
if ( $logging )
{
close(ERROR_LOG);
$logging = 0;
StopForErrors() if $stop_on_1st_error;
}
}
sub OpenErrorLog($)
{
my ($log_file) = @_;
CloseErrorLog();
if ( $log_file )
{
$log_file = full_path_to($log_file);
open(ERROR_LOG, ">$log_file") || die "Error: Can't open $log_file\n";
MacPerl::SetFileInfo("CWIE", "TEXT", $log_file);
$log_file =~ m/.+:(.+)/;
$recent_errors_file = full_path_to("$1.part");
$logging = 1;
}
}
=head2 Stopping before it's too late - C<StopForErrors()>, C<DontStopForErrors()>
When building a long list of projects, you decide whether to continue building subsequent projects when one fails.
By default, your build script will C<die> after the first project that generates an error while building.
Change this behavior with C<DontStopForErrors()>.
Re-enable it with C<StopForErrors()>.
=cut
sub StopForErrors()
{
$stop_on_1st_error = 1;
# Can't stop for errors unless we notice them.
# Can't notice them unless we are logging.
# If the user didn't explicitly request logging, log to a temporary file.
if ( ! $recent_errors_file )
{
OpenErrorLog("${TMPDIR}BuildResults");
}
}
sub DontStopForErrors()
{
$stop_on_1st_error = 0;
}
sub log_message($)
{
if ( $logging )
{
my ($message) = @_;
print ERROR_LOG $message;
}
}
sub log_message_with_time($)
{
if ( $logging )
{
my ($message) = @_;
my $time_stamp = localtime();
log_message("$message ($time_stamp)\n");
}
}
sub log_recent_errors($)
{
my ($project_name) = @_;
my $found_errors = 0;
if ( $logging )
{
open(RECENT_ERRORS, "<$recent_errors_file");
while( <RECENT_ERRORS> )
{
if ( /^Error/ || /^CouldnÕt find project file/ || /^Link Error/ )
{
# if (!$found_errors)
# print $_;
$found_errors = 1;
}
print ERROR_LOG $_;
}
close(RECENT_ERRORS);
unlink("$recent_errors_file");
}
if ( $stop_on_1st_error && $found_errors )
{
print ERROR_LOG "### Build failed.\n";
die "### Errors encountered building \"$project_name\".\n";
}
}
sub build_project($$$)
{
my ($project_path, $target_name, $clean_build) = @_;
$project_path = full_path_to($project_path);
# $project_path =~ m/.+:(.+)/;
# my $project_name = $1;
log_message_with_time("### Building \"$project_path\"");
# Check that the given project exists
if (! -e $project_path)
{
print ERROR_LOG "### Build failed.\n";
die "### Can't find project file \"$project_path\".\n";
}
print "Building \"$project_path\[$target_name\]\"\n";
$had_errors = Moz::CodeWarriorLib::build_project(
$project_path, $target_name, $recent_errors_file, $clean_build
);
WaitNextEvent();
# $had_errors =
#MacPerl::DoAppleScript(<<END_OF_APPLESCRIPT);
# tell (load script file "$CodeWarriorLib") to BuildProject("$project_path", "$project_name", "$target_name", "$recent_errors_file", $clean_build)
#END_OF_APPLESCRIPT
# Append any errors to the globally accumulated log file
# if ( $had_errors ) # Removed this test, because we want warnings, too. -- jrm
{
log_recent_errors($project_path);
}
}
=head2 Getting CodeWarrior to build projects - C<BuildProject($project, $opt_target)>, C<BuildProjectClean($project, $opt_target)>
C<BuildProject()> and C<BuildProjectClean()> are identical, except that the latter first removes object code.
In both, CodeWarrior opens the project if it wasn't already open; builds the given (or else current) target; and finally closes
the project, if it wasn't already open.
=cut
sub BuildProject($;$)
{
my ($project_path, $target_name) = @_;
build_project($project_path, $target_name, 0);
}
sub BuildProjectClean($;$)
{
my ($project_path, $target_name) = @_;
build_project($project_path, $target_name, 1);
}
sub ImportXMLProject($$)
{
my ($xml_path, $project_path) = @_;
my ($codewarrior_ide_name) = Moz::CodeWarriorLib::getCodeWarriorIDEName();
# my $ascript = <<EOS;
# tell application "$codewarrior_ide_name"
# make new (project document) as ("$project_path") with data ("$xml_path")
# end tell
#EOS
# print $ascript."\n";
# my($result) = MacPerl::DoAppleScript($ascript);
# unless ($result) { die "Error: ImportXMLProject AppleScript failed $^E $result\n"; }
#
my($import_error) = Moz::CodeWarriorLib::import_project($xml_path, $project_path);
if ($import_error ne "") {
die "Error: ImportXMLProject failed with error $import_error\n";
}
}
=head2 Miscellaneous
C<MakeAlias($old_file, $new_file)> functions like C<symlink()>, except with better argument defaulting and more explicit error messages.
=cut
sub MakeAlias($$)
{
my ($old_file, $new_file) = @_;
# if the directory to hold $new_file doesn't exist, create it
if ( ($new_file =~ m/(.+:)/) && !-d $1 )
{
mkpath($1);
}
# if a leaf name wasn't specified for $new_file, use the leaf from $old_file
if ( ($new_file =~ m/:$/) && ($old_file =~ m/.+:(.+)/) )
{
$new_file .= $1;
}
my $message = "Can't create a Finder alias (at \"$new_file\")\n for \"$old_file\"; because ";
die "Error: $message \"$old_file\" doesn't exist.\n" unless -e $old_file;
die "Error: $message I won't replace an existing (non-alias) file with an alias.\n" if ( -e $new_file && ! -l $new_file );
# now: $old_file exists; $new_file doesn't (or else, is an alias already)
if ( -l $new_file )
{
# ...then see if it already points to $old_file
my $current_target = full_path_to(readlink($new_file));
my $new_target = full_path_to($old_file);
return if ( $current_target eq $new_target );
# if the desired alias already exists and points to the right thing, then we're done
unlink $new_file;
}
symlink($old_file, $new_file) || die "Error: $message symlink returned an unexpected error.\n";
}
=pod
C<InstallFromManifest()>
=cut
sub InstallFromManifest($;$$)
{
my ($manifest_file, $dest_dir, $flat) = @_;
$flat = 0 unless defined($flat); # if $flat, all rel. paths in MANIFEST get aliased to the root of $dest_dir
$dest_dir ||= ":";
$manifest_file =~ m/(.+):/;
my $source_dir = $1;
chop($dest_dir) if $dest_dir =~ m/:$/;
#Mac::Events->import();
WaitNextEvent();
if ($flat)
{
print "Doing manifest on \"$manifest_file\" FLAT\n" unless $QUIET;
}
else
{
print "Doing manifest on \"$manifest_file\"\n" unless $QUIET;
}
my $read = maniread(full_path_to($manifest_file));
foreach $file (keys %$read)
{
next unless $file;
$subdir = ":";
if (!$flat && ($file =~ /:.+:/ ))
{
$subdir = $&;
}
$file = ":$file" unless $file =~ m/^:/;
MakeAlias("$source_dir$file", "$dest_dir$subdir");
}
}
=pod
C<InstallResources()>
=cut
# parameters are path to MANIFEST file, destination dir, true (to make copies) or false (to make aliases)
sub InstallResources($;$;$)
{
my ($manifest_file, $dest_dir, $copy_files) = @_;
$dest_dir ||= ":";
mkpath($dest_dir) if !-d $dest_dir;
$manifest_file =~ m/(.+):/;
my $source_dir = $1;
chop($dest_dir) if $dest_dir =~ m/:$/;
WaitNextEvent();
print "Installing resources from \"$manifest_file\"\n" unless $QUIET;
my $read = maniread(full_path_to($manifest_file));
foreach $file (keys %$read)
{
next unless $file;
if ($copy_files)
{
copy("$source_dir:$file", "$dest_dir:$file");
}
else
{
MakeAlias("$source_dir:$file", "$dest_dir:$file");
}
}
}
#//--------------------------------------------------------------------------------------------------
#// Delay
#//--------------------------------------------------------------------------------------------------
sub Delay($)
{
my ($delay_seconds) = @_;
$now = time;
$exit_time = $now + $delay_seconds;
while ($exit_time > $now) {
$now = time;
}
}
#//--------------------------------------------------------------------------------------------------
#// GetFileModDate
#//--------------------------------------------------------------------------------------------------
sub GetFileModDate($)
{
my($filePath)=@_;
my($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks) = stat($filePath);
return $mtime;
}
#//--------------------------------------------------------------------------------------------------
#// LaunchCodeWarrior
#//--------------------------------------------------------------------------------------------------
sub LaunchCodeWarrior($)
{
my($idepath_file) = @_; # full path to IDE location file
my($cur_dir) = cwd();
# this both launches and writes the IDE path file
Moz::CodeWarriorLib::activate($idepath_file);
chdir($cur_dir);
}
#//--------------------------------------------------------------------------------------------------
#// GetCodeWarriorRelativePath
#//--------------------------------------------------------------------------------------------------
sub GetCodeWarriorRelativePath($)
{
my($rel_path) = @_;
return Moz::CodeWarriorLib::getCodeWarriorPath($rel_path);
}
#//--------------------------------------------------------------------------------------------------
#// RedirectOutputToFile
#//--------------------------------------------------------------------------------------------------
sub RedirectOutputToFile($)
{
my($log_file) = @_;
# ensure that folders in the path exist
my($logdir) = "";
my($logfile) = $log_file;
if ($log_file =~ /(.+?:)([^:]+)$/) # ? for non-greedy match
{
$logdir = $1;
$logfile = $2;
mkpath($logdir);
}
print "Output is now being redirected to the file '$log_file'\n";
open(STDOUT, "> $log_file") || die "Can't redirect stdout";
open(STDERR, ">&STDOUT") || die "Can't dup stdout";
select(STDERR); $| = 1; # make unbuffered
select(STDOUT); $| = 1; # make unbuffered
MacPerl::SetFileInfo("CWIE", "TEXT", $log_file);
}
#//--------------------------------------------------------------------------------------------------
#// ActivateApplication
#//--------------------------------------------------------------------------------------------------
sub ActivateApplication($)
{
my ($appSignature) = @_;
my ($psi, $found);
my ($appPSN);
$found = 0;
foreach $psi (values(%Process))
{
if ($psi->processSignature() eq $appSignature)
{
$appPSN = $psi->processNumber();
$found = 1;
last;
}
}
if ($found == 0 || SameProcess($appPSN, GetFrontProcess()))
{
return;
}
SetFrontProcess($appPSN);
while (GetFrontProcess() != $appPSN)
{
WaitNextEvent();
}
}
#//--------------------------------------------------------------------------------------------------
#// IsProcessRunning
#//--------------------------------------------------------------------------------------------------
sub IsProcessRunning($)
{
my($processName, $psn, $psi) = @_;
while ( ($psn, $psi) = each(%Process) ) {
if ($psi->processName eq $processName) { return 1; }
}
return 0;
}
1;
=head1 AUTHORS
Scott Collins <scc@netscape.com>, Simon Fraser <sfraser@netscape.com>, Chris Yeh <cyeh@netscape.com>
=head1 SEE ALSO
BuildMozillaDebug.pl (et al), BuildList.pm, CodeWarriorLib (an AppleScript library)
=head1 COPYRIGHT
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
=cut

View File

@@ -0,0 +1,273 @@
package Moz::Prefs;
require 5.004;
require Exporter;
# Package that attempts to read a file from the Preferences folder,
# and get build settings out of it
use strict;
use Exporter;
use File::Path;
use Mac::Files;
use vars qw(@ISA @EXPORT);
@ISA = qw(Exporter);
@EXPORT = qw(ReadMozUserPrefs);
#-------------------------------------------------------------------------------
#
# GetPrefsFolder
#
#-------------------------------------------------------------------------------
sub GetPrefsFolder()
{
my($prefs_folder) = FindFolder(kOnSystemDisk, kPreferencesFolderType, 1);
return $prefs_folder.":Mozilla build prefs";
}
#-------------------------------------------------------------------------------
#
# SetArrayValue
#
#-------------------------------------------------------------------------------
sub SetArrayValue($$$)
{
my($array_ref, $index1, $index2) = @_;
my($index);
foreach $index (@$array_ref)
{
if ($index->[0] eq $index1)
{
$index->[1] = $index2;
return 1;
}
}
return 0;
}
#-------------------------------------------------------------------------------
#
# WriteDefaultPrefsFile
#
#-------------------------------------------------------------------------------
sub WriteDefaultPrefsFile($)
{
my($file_path) = @_;
my($file_contents);
$file_contents = <<'EOS';
% You can use this file to customize the Mozilla build system.
% The following kinds of lines are allowable:
% Comment lines, which start with a '%' in the first column
% Lines which modify the default build settings. For the list of flags,
% see MozBuildFlags.pm. Examples are:
%
% build pull 0 % don't pull
% options mng 1 % turn mng on
%
% Line containing the special 'buildfrom' flag, which specifies
% where to start the build. Example:
%
% buildfrom nglayout % where to start the build
%
% Lines which specify the location of the files used to store paths
% to the CodeWarrior IDE, and the MacCVS Pro session file. Note quoting
% of paths containing whitespace. Examples:
%
% filepath idepath ::codewarrior.txt
% filepath sessionpath ":Some folder:MacCVS session path.txt"
%
% Lines which modify the build settings like %main::DEBUG.
% Any lines which do not match either of the above are assumed
% to set variables on $main::. Examples:
%
% CARBON 1
% MOZILLA_OFFICIAL 1
%
EOS
$file_contents =~ s/%/#/g;
local(*PREFS_FILE);
open(PREFS_FILE, "> $file_path") || die "Could not write default prefs file\n";
print PREFS_FILE ($file_contents);
close(PREFS_FILE);
MacPerl::SetFileInfo("McPL", "TEXT", $file_path);
}
#-------------------------------------------------------------------------------
#
# HandlePrefSet
#
#-------------------------------------------------------------------------------
sub HandlePrefSet($$$$)
{
my($flags, $name, $value, $desc) = @_;
if (SetArrayValue($flags, $name, $value)) {
print "Prefs set $desc flag '$name' to '$value'\n";
} else {
die "$desc setting '$name' is not a valid option\n";
}
}
#-------------------------------------------------------------------------------
#
# HandleBuildFromPref
#
#-------------------------------------------------------------------------------
sub HandleBuildFromPref($$)
{
my($build_array, $name) = @_;
my($setting) = 0;
my($index);
foreach $index (@$build_array)
{
if ($index->[0] eq $name) {
$setting = 1;
}
$index->[1] = $setting;
}
if ($setting == 1) {
print "Building from $name onwards, as specified by prefs\n";
} else {
printf "Failed to find buildfrom setting '$name'\n";
}
}
#-------------------------------------------------------------------------------
#
# ReadPrefsFile
#
#-------------------------------------------------------------------------------
sub ReadPrefsFile($$$$$)
{
my($file_path, $build_flags, $options_flags, $filepath_flags, $create_if_missing) = @_;
local(*PREFS_FILE);
if (open(PREFS_FILE, "< $file_path"))
{
print "Reading build prefs from '$file_path'\n";
while (<PREFS_FILE>)
{
my($line) = $_;
chomp($line);
if ($line =~ /^\#/ || $line =~ /^\s*$/) { # ignore comments and empty lines
next;
}
if (($line =~ /^\s*([^#\s]+)\s+([^#\s]+)\s+\"(.+)\"(\s+#.+)?/) ||
($line =~ /^\s*([^#\s]+)\s+([^#\s]+)\s+\'(.+)\'(\s+#.+)?/) ||
($line =~ /^\s*([^#\s]+)\s+([^#\s]+)\s+([^#\s]+)(\s+#.+)?/))
{
my($array_name) = $1;
my($option_name) = $2;
my($option_value) = $3;
# print "Read '$array_name' '$option_name' '$option_value'\n";
if ($array_name eq "build")
{
HandlePrefSet($build_flags, $option_name, $option_value, "Build");
}
elsif ($array_name eq "options")
{
HandlePrefSet($options_flags, $option_name, $option_value, "Options");
}
elsif ($array_name eq "filepath" && $option_name && $option_value)
{
HandlePrefSet($filepath_flags, $option_name, $option_value, "Filepath");
}
else
{
print "Unknown pref option at $line\n";
}
}
elsif ($line =~ /^\s*buildfrom\s+([^#\s]+)(\s+#.+)?/)
{
my($build_start) = $1;
HandleBuildFromPref($build_flags, $build_start);
}
elsif ($line =~ /^\s*([^#\s]+)\s+([^#\s]+)(\s+#.+)?/)
{
my($build_var) = $1;
my($var_setting) = $2;
print "Setting \$main::$build_var to $var_setting\n";
eval "\$main::$build_var = \"$var_setting\"";
}
else
{
print "Unrecognized input line at $line\n";
}
}
close(PREFS_FILE);
}
elsif ($create_if_missing)
{
print "No prefs file found at $file_path; using defaults\n";
my($folder_path) = $file_path;
$folder_path =~ s/[^:]+$//;
mkpath($folder_path);
WriteDefaultPrefsFile($file_path);
}
}
#-------------------------------------------------------------------------------
#
# ReadMozUserPrefs
#
#-------------------------------------------------------------------------------
sub ReadMozUserPrefs($$$$)
{
my($prefs_file_name, $build_flags, $options_flags, $filepath_flags) = @_;
if ($prefs_file_name eq "") { return; }
# if local prefs exist, just use those. Othewise, look in the prefs folder
if (-e $prefs_file_name)
{
# read local prefs
ReadPrefsFile($prefs_file_name, $build_flags, $options_flags, $filepath_flags, 0);
}
else
{
# first read prefs folder prefs
my($prefs_path) = GetPrefsFolder();
$prefs_path .= ":$prefs_file_name";
ReadPrefsFile($prefs_path, $build_flags, $options_flags, $filepath_flags, 1);
}
}
1;

View File

@@ -0,0 +1,67 @@
#-------------------------------------------------------------------------------
# These 3 lists are the 'master lists' to control what gets built.
#
# Ordering in these arrays is important; it has to reflect the order in
# which the build occurs.
#
# Setting containing spaces must be quoted with double quotes.
#-------------------------------------------------------------------------------
build_flags
all 1
pull 0
dist 0
xpidl 0
idl 0
stubs 0
runtime 0
common 0
imglib 0
libimg2 0
necko 0
security 0
browserutils 0
intl 0
nglayout 0
accessiblity 0
editor 0
embedding 0
viewer 0
xpapp 0
extensions 0
plugins 0
mailnews 0
apprunner 0
resources 0
options_flags
chrome_jars 1
chrome_files 0
use_jars 1
transformiix 0
mathml 0
svg 0
mng 1
ldap 1
ldap_experimental 0
xmlextras 1
soap 0
vixen 0
inspector 0
mailextras 1
xptlink 0
psm 0
psm2 0
embedding_test 1
carbon 0
cache 1
useimg2 1
lowmem 0
accessible 1
bidi 0
filepath_flags
idepath ":CodeWarrior IDE Path.txt"
sessionpath ":Mozilla session path.txt"
buildlogfilepath ":Build Logs:Mozilla build log.txt" # this is a path
scriptlogfilepath ":Build Logs:Mozilla script log.txt"

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
# List of modules to check out. Format is
# module, (tag), (date)
# where tag and date are optional (non-trailing commas are required)
#
# Examples:
# mozilla/nsprpub, NSPRPUB_CLIENT_BRANCH
# mozilla/gc, , 10/25/2000 12:00:00
#
mozilla/nsprpub, XPCDOM_20010329_BRANCH
mozilla/security/nss, XPCDOM_20010329_BRANCH
mozilla/security/psm, XPCDOM_20010329_BRANCH
mozilla/security/manager, XPCDOM_20010329_BRANCH
mozilla/accessible, XPCDOM_20010329_BRANCH
DirectorySDKSourceC, XPCDOM_20010329_BRANCH
mozilla/lib/mac/Instrumentation
mozilla/gfx2, XPCDOM_20010329_BRANCH
mozilla/modules/libpr0n, XPCDOM_20010329_BRANCH
SeaMonkeyAll, XPCDOM_20010329_BRANCH

View File

@@ -0,0 +1,78 @@
#!perl
#
# 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):
# Simon Fraser <sfraser@netscape.com>
#
require 5.004;
use strict;
use Cwd;
use Moz::BuildUtils;
use Moz::BuildCore;
#-------------------------------------------------------------
# Where have the build options gone?
#
# The various build flags have been centralized into one place.
# The master list of options is in MozBuildFlags.txt. However,
# you should never need to edit that file, or this one.
#
# To customize what gets built, or where to start the build,
# edit the $prefs_file_name file in
# System Folder:Preferences:Mozilla build prefs:
# Documentation is provided in that file.
#-------------------------------------------------------------
my($prefs_file_name) = "Mozilla pull prefs";
#-------------------------------------------------------------
# hashes to hold build options
#-------------------------------------------------------------
my(%build);
my(%options);
my(%filepaths);
my(%optiondefines);
# Hash of input files for this build. Eventually, there will be
# input files for manifests, and projects too.
my(%inputfiles) = (
"buildflags", "MozillaBuildFlags.txt",
"checkoutdata", "MozillaCheckoutList.txt",
"buildprogress", "",
"buildmodule", "MozillaBuildList.pm"
);
#-------------------------------------------------------------
# end build hashes
#-------------------------------------------------------------
# set the build root directory, which is the the dir above mozilla
SetupBuildRootDir(":mozilla:build:mac:build_scripts");
# Set up all the flags on $main::, like DEBUG, CARBON etc.
# Override the defaults using the preferences files.
SetupDefaultBuildOptions(0, ":mozilla:dist:viewer:");
my($do_checkout) = 1;
my($do_build) = 0;
RunBuild($do_checkout, $do_build, \%inputfiles, $prefs_file_name);

View File

@@ -0,0 +1,4 @@
This directory is merely here to test the project editor server. It will go away after
it is validated. For more information, see http://camelot.
Testing watchers.

Binary file not shown.

Binary file not shown.

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