Compare commits

..

658 Commits

Author SHA1 Message Date
(no author)
e9e4e7ce60 This commit was manufactured by cvs2svn to create branch
'MOZILLA_0_6_RELEASE'.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_RELEASE@83575 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-13 00:44:40 +00:00
leaf%mozilla.org
7b7f538336 one-revision change for release tagging
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@83574 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-13 00:44:39 +00:00
leaf%mozilla.org
c0f6378988 one-revision change to pull the release tag, will revert shortly
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@83573 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-13 00:43:17 +00:00
leaf%mozilla.org
9f7d91b76a ua string needs to be different, and accurate r,a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@83290 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-05 22:54:55 +00:00
cltbld%netscape.com
d644a26066 committing mathml patch (tested by asa)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@83105 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-30 02:17:51 +00:00
leaf%mozilla.org
807ca77469 point urls at the release notes
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@83104 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-30 02:13:37 +00:00
cltbld%netscape.com
ca8a58073e fixing what appears to be a missed file from mkaply's checkin; build bustage fix for
windows.


git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82861 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-22 19:19:11 +00:00
mkaply%us.ibm.com
a22bfc1bea Don't put shell scripts in dist on OS/2
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82833 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-21 19:35:27 +00:00
mkaply%us.ibm.com
30c0ac0ef2 OS/2 code to add/remove console
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82832 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-21 19:33:22 +00:00
mkaply%us.ibm.com
207a8670a2 #55888
Wrong types in timer queue - needed to do OS/2 timer work


git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82831 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-21 19:31:14 +00:00
mkaply%us.ibm.com
ed75f66997 Putting OS/2 only changes on the 0.6 branch
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82830 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-21 19:26:08 +00:00
mkaply%us.ibm.com
252ec55ba7 Putting OS/2 only changes on the 0.6 branch
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82800 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 23:30:53 +00:00
mkaply%us.ibm.com
d37cf9e0ff Putting OS/2 only changes on the 0.6 branch
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82799 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 23:21:09 +00:00
mkaply%us.ibm.com
b34e59704c Prevent annoying debug assert
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82798 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 23:19:40 +00:00
mkaply%us.ibm.com
d71ea4b65a Putting OS/2 only changes on the 0.6 branch
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82797 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 22:54:46 +00:00
mkaply%us.ibm.com
043f78fc07 misspelling put in by NS at the last minute
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82796 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 22:53:46 +00:00
colin%theblakes.com
fcc6120512 OpenVMS-specific fix for stat issue.
b=60199 r=dougt a=leaf


git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82781 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-18 21:14:25 +00:00
cltbld%netscape.com
52a35d7f7a Starting mozilla 0.6 branch
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82666 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-16 00:18:59 +00:00
(no author)
39e3979754 This commit was manufactured by cvs2svn to create branch
'MOZILLA_0_6_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_6_BRANCH@82636 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-15 14:59:18 +00:00
jefft%netscape.com
c2b3ea8497 fixed bug 59460 -- unable to display international message; r=sspitzer, scottip333; sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82424 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-08 08:03:44 +00:00
sfraser%netscape.com
31e88c98bc Fix for bug 48887 -- OpenURL apple event drops the last character of the URL. r=beard, sr=scc, a=PDT.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82398 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-08 00:49:15 +00:00
mscott%netscape.com
9a1deaf69c Bug #58774 --> salt the temp file name we generate when downloading external content
sr=alecf
r=sspitzer


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82361 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 23:35:49 +00:00
mstoltz%netscape.com
843b421b2d Checking in LiveConnect security patch (bug 53849) for the third time, plus security fix for a major exploit, bugscape 3109. sr=jband, brendan on the second one.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82356 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 23:04:07 +00:00
radha%netscape.com
cbf422c175 Fix for bug # 46828 r=pollmann sr=rpotts a=PDT
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82350 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 22:18:33 +00:00
radha%netscape.com
44dd3eb609 fix for bug # 46828 r=pollmann sr=rpotts a=PDT
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82349 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 22:17:52 +00:00
jefft%netscape.com
f021d77a1c fixed bug 59203 -- Viewing attached message crashes in nsCRT::strtok; r=rhp, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82348 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 22:12:26 +00:00
erik%netscape.com
144df8208d bug 53989; backing out the previous fix since we discovered that
IMEDestroyIC is called on the parent before the children, leaving the
children with a dangling mXIC pointer that would be accessed after the
memory is freed. Since this might break the more common kinput2 input
method under certain memory conditions, we decided to back it out.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82347 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 22:01:25 +00:00
sspitzer%netscape.com
3603bfc332 fix for #58580. r=rhp, sr=mscott. make the files we put in /tmp for sending drafts
and posting news message have permissions of 600.  it is bad to have users
messages world readable in /tmp.
600.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82345 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 21:39:18 +00:00
harishd%netscape.com
a02db812a0 59189 - Make sure that SanitizeKey() is accessed only by the attribute token.
r=jar
sr=scc


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82333 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 06:03:34 +00:00
waterson%netscape.com
e5f389b6bf Bug 59102. Continue to loop so long as either 1) the current enumerator mCurrent is still valid, or 2) there are more indices to try; r=rjc, sr=jar; rtm++.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82331 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 04:53:51 +00:00
rjc%netscape.com
5a758c474e Fix bug # 53989 for tajima@eng.sun.com. r=erik sr=brendan approval=jar
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82309 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-04 03:32:40 +00:00
rjc%netscape.com
f1de3622b6 Fix bug # 52492 for ruslan. r=gagan sr=mscott approval=jar
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82308 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-04 03:30:57 +00:00
rjc%netscape.com
20e18ec81a Fix bug # 57849 for buster. r=karnaze a=waterson approval=jar
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82307 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-04 03:29:04 +00:00
bryner%uiuc.edu
81343a79a3 Patch from jrgm for bug 58437 - force tree rows to have a min height of 19px so they don't resize when the spin icon appears. r=bryner, a=hyatt.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82306 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-04 03:10:09 +00:00
disttsc%bart.nl
d42508b2d5 Make http-equiv=refresh work for urls with a ',', branch-only. bug=58453, r=valeski, a=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82304 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-04 02:33:36 +00:00
(no author)
74d000f595 This commit was manufactured by cvs2svn to create branch
'Netscape_20000922_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82294 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-04 00:42:33 +00:00
bnesse%netscape.com
33b9f2ebab Fix for Mac plugins receiving double mouse events. Bug 58814. r=av, sr=waterson, rtm++.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82288 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-04 00:01:35 +00:00
mscott%netscape.com
76c04cee0b Bug #58669 --> don't let the helper app dialog be modal, this prevents
the external handler from properly processing incoming OnDataAvailable events
while the helper app dialog is up.
sr=alecf
r=law,sspitzer
a=jar,phil,lchiang


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82270 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-03 06:23:29 +00:00
karnaze%netscape.com
32b8771af0 backing out the fix for another bug that I accidently checked in during the checkin for bug 53690.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82267 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-03 04:23:23 +00:00
karnaze%netscape.com
74031ead7d bug 53690 - don't allow a split row to reflow its cells unconstrained. a=buster, r=dcone.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82266 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-03 04:17:11 +00:00
jband%netscape.com
ced1fba4a9 backing out the fix for bug 56716 because it causes bug 58946 which is worse. The fix was to run finally clauses when returning from try or catch. The regression this caused was returns from catch clauses executed in the wrong scope. This made 'catch(e){return e}' an error. rtm++ approved by jar. Ship it!
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82265 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-03 03:58:05 +00:00
mstoltz%netscape.com
8a5b4332dd Bug 55237, adding security check on open-in-new-window. r=beard sr=jband, brendan.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82261 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-03 03:16:18 +00:00
bienvenu%netscape.com
b8b14cc726 whoops, backing out fix 46375 meant that for the trunk
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82209 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 02:21:19 +00:00
mstoltz%netscape.com
1f48f9aacb Backing out LiveConnect fix again because of security problem (bugscape 3109).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82208 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 02:05:54 +00:00
sgehani%netscape.com
865918da8d Make license agreement show up on ja_JP locale systems.
b=58604
r=dbragg,dveditz
a=brendan

(Dan Veditz will watch the tree for me.  Thanks Dan!)


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82207 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 02:01:18 +00:00
bienvenu%netscape.com
534666e92a fix 46375 (or part of it, anyway) reading large imap messages in too small chunks r=jefft, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82206 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:57:55 +00:00
warren%netscape.com
0aaf773003 Bug 47263 - added null check for file transport top crasher (workaround -- don't know the real problem yet).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82205 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:56:06 +00:00
beard%netscape.com
0c717d77bb fix for bug 53853, r=edburns, sr=sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82204 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:53:08 +00:00
jst%netscape.com
a90ecbce1e Fixing rtm++ limbo bug 58256. Removing the strong PresShell reference from nsComputedDOMStyle so that nsComputedDOMStyle's in the JS GC don't interfere with the lifetime of the presshell. sr=vidur, r=heikki
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82203 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:48:13 +00:00
hyatt%netscape.com
d32bbf2580 Fixes for 53280 and 57733.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82202 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:40:29 +00:00
waterson%netscape.com
c85fc5fb47 Bug 58252. Balance RegisterDataSource() calls in nsLocalStore and nsInternetSearchService. r=rjc,scc; sr=alecf; rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82200 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:33:16 +00:00
rhp%netscape.com
bbf48e8e1c crash deleting mail - Bug #: 50239
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82199 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:32:25 +00:00
putterman%netscape.com
9c86024eb8 Fix for 58748, prevent crash when deleting a subfolder and there's no trash folder. r=jefft, sr=mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82197 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:30:14 +00:00
sspitzer%netscape.com
13fba10d4b fix for #56002. add a level of indirection (a directory name <8 random chars>.slt) under
the profile directory.  this is to prevent people from automatically knowing where
prefs.js, cookies, etc live for a profile, especially the default profile.
r=racham, sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82195 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:22:42 +00:00
beard%netscape.com
90278479ae fix for 56390, r=jst, a=waterson. approved for limbo 2.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82192 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:06:50 +00:00
sspitzer%netscape.com
d95cc29960 fix for #58337 r=tonyr, sr=alecf
make sure we remove the temporary identity after eudora or outlook import.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82190 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:00:40 +00:00
dveditz%netscape.com
47cd0cf8ee Give sterner warning, locale installs are not safe and can be abused (bug 58584)
r=mstoltz,sgehani; sr=syd; pdt approved "Limbo 2"


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82189 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 00:51:04 +00:00
ben%netscape.com
a985969e6d checking in a workaround for 58551, crash on startup due to event listener issues.
This patch r=jrgm, blake, a=alecf, hyatt


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82186 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 00:39:50 +00:00
harishd%netscape.com
51c321c323 27006 - Do not reload documents with, meta charset, POST form data.
r=rpotts,pollmann
sr=vidur


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82185 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 00:39:36 +00:00
mstoltz%netscape.com
d0a157499e Bug 58021, Disallowing privileged code insertion using sidebar. r=mccabe, sr=hyatt.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82184 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 00:39:02 +00:00
nisheeth%netscape.com
1dc87625d7 Fix for rtm++ bug 40121. sr=vidur. r=jst. A null check for a crasher. Thanks to ftang for the patch.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82183 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 00:13:51 +00:00
javi%netscape.com
00074ab511 We implement 5 interfaces in PSMComponent, not just 4.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82181 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 23:51:24 +00:00
ducarroz%netscape.com
8444db9072 Fix for bug 58532. Need to catch error throw by the function unescape. R=sspitzer, SR=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82179 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 23:16:49 +00:00
gordon%netscape.com
2ee602b628 Fix for Bugscape 3003. Modified SendReceiveStream to differentiate OrderlyDisconnects from Endpoint destruction due to sleep or tcp setting changes.
r=sdagley, wtc,  sr=sfraser.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82178 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:45:55 +00:00
matt%netscape.com
e5e88bb01b adding fix for what's related not updating.
r=ben
sr=alecf
http://bugzilla.mozilla.org/show_bug.cgi?id=58094


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82177 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:42:36 +00:00
javi%netscape.com
0461cc4394 Fix for rtm++ Bug 57095\n Have the PSM component be the entropy collector
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82176 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:37:01 +00:00
brendan%mozilla.org
0e97a0d304 Checking in 56716 for shaver, pdt-approved.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82175 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:28:14 +00:00
javi%netscape.com
dfe8a9a26e Fix for rtm++ Bug 57985\n use mouse down events as a source of entropy
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82173 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:24:21 +00:00
sfraser%netscape.com
f8b51b6d71 Fix for bug 57835; increase the 'Preferred size' in both debug and opt targets to 20480 K. sr=hangas, r=brade. limbo checkin a=selmer
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82171 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:21:00 +00:00
rjc%netscape.com
ef2466a40c Fix RTM++ bug # 58428: first time search file sync issue. r=gagan sr=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82170 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:19:00 +00:00
morse%netscape.com
c6a879b370 bug 57395, lock icon bad after a skin switch, r=dougt, sr=hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82169 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:18:52 +00:00
morse%netscape.com
7d8d034c8b bug 55731, don't default to html for local files, r=gagan, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82168 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:16:06 +00:00
hewitt%netscape.com
65c336dd8d #57711 - [Modern] new lock images, r=marlon, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82167 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:15:27 +00:00
mscott%netscape.com
f119dc4621 re-landing Bug #53849 which we backed out by accident yesterday
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82166 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:14:12 +00:00
jefft%netscape.com
8cce332cfd fixed bug 57614 -- copy to the Sent folder failed after the message sent successfully; r=bienvenu, sr=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82165 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:07:27 +00:00
erik%netscape.com
2446edc107 bug 57462; r=buster; sr=waterson; need to set "HasMultibyte" flag in
nsTextTransformer when we convert 0x5C to Yen Sign and Won Sign because
those chars are greater than 127; this fixes the problem where the Yen Sign
was not being displayed properly on Win95/98/ME because we have the 8-bit
rendering hint set on those platforms (see nsTextFrame's PaintAsciiText,
etc)


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82164 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 21:46:19 +00:00
mscott%netscape.com
d8514ca266 Backing out Bug #53849 which is causing a crash (Bug 58551)
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82104 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 20:32:14 +00:00
hyatt%netscape.com
bde2e250e8 Fix for 57139. r=bryner, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82094 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 08:15:26 +00:00
akkana%netscape.com
2970a53a03 48064: fix firing of onChange events. r=sfraser,brendan, sr=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82079 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 00:27:12 +00:00
gagan%netscape.com
12f85840f6 Fixing Solaris bustage
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82078 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 00:17:54 +00:00
brendan%mozilla.org
8a1d26c869 Fix 57826 on N6 branch, pdt approved and already in trunk per checkin rules.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82077 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 00:17:22 +00:00
mscott%netscape.com
076696c432 ACK!!! This was supposed to be getting checked into the tip. I checked in from the wrong tree.
my bad.

backing out my checkin.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82075 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 00:03:15 +00:00
mscott%netscape.com
b69747198a ACCK I meant to be checking this into the tip NOT the branch. Backing this out.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82074 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 00:00:25 +00:00
mscott%netscape.com
00c529fcaa Bug #56938 --> Implement stand alone method for setting up a refresh URI in the docshell given just
a channel.
sr=rpotts
r=sspitzer


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82073 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:56:10 +00:00
mscott%netscape.com
cb2b770b67 Bug #56938 --> add a method for setting up a refresh uri given just a channel.
sr=rpotts
r=sspitzer


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82072 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:55:16 +00:00
locka%iol.ie
649c85f4c3 Fix for crash when closing main window while print dialog is open (checked in for Frank Tang). b=35896, sr=vidur, r=adamlock
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82070 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:36:50 +00:00
dcone%netscape.com
38ca14b452 bug = 57704. SR = buster r = kmcclusk. Don't create scrollpars for paginated output.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82069 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:36:15 +00:00
(no author)
b9a41a96bd This commit was manufactured by cvs2svn to create branch
'Netscape_20000922_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82065 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:33:35 +00:00
alecf%netscape.com
3815e46313 back out changes to #52519 - they didn't really fix the problem, and they caused a regression
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82062 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:27:57 +00:00
rickg%netscape.com
3541735fab Landing RTM++Limbo bugs
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82060 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:21:49 +00:00
evaughan%netscape.com
878ca0d94d Fix for bug #55899
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82059 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:08:52 +00:00
dcone%netscape.com
2b7df50261 Bug = 58127 r = kmcclusk sr = buster. Use palette contants for palette devices. Fixes printing crash
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82057 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:07:47 +00:00
pinkerton%netscape.com
a371f85229 If we're being minimized, don't tell Gecko. This allows us to remember the
scroll position when we're un-minimized. bug#56156, r=rods/a=hyatt.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82056 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 23:06:12 +00:00
racham%netscape.com
3497135b8e Fixing bugs 56041 and 57361. These fixes allow the information stored inthe registry is always in persistent format so that Mac users are not affected by the operations they do on their folders. If the parent folder of a profile is deleted a profile withe name of that profile is created in the default user location. Landing on the branch. r=ccarlen,nhotta sr=alecf,mscott,waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82054 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 22:47:35 +00:00
radha%netscape.com
cf35aedd10 Fix for rtm bug 53922 r=ducarroz,hyatt a=waterson,alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82044 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 22:04:42 +00:00
sspitzer%netscape.com
f13698a9a3 fix for #57151. get addressbook migration to work with non-ascii entries.
r=bienvenu, sr=mscott.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82042 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:57:09 +00:00
peterlubczynski%netscape.com
5d3bf4a2ea fix for context menus for plugins on the Mac, bug 55822 a=buster r=karnaze
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82040 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:56:03 +00:00
rjc%netscape.com
c33bdfa81b Fix RTM++ bug # 57017: loop on re-selecting PT folder. r=ben sr=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82039 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:52:07 +00:00
jj%netscape.com
bb7e97ed28 bugzilla 58153: optimized target now generates a symbol file
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82037 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:48:29 +00:00
waterson%netscape.com
0b3a963d66 Bugscape 2856. Use NS_ConvertUTF8toUCS2() when inflating URIs (landing on branch, rtm++). r=rjc,jelwell sr=hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82036 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:48:21 +00:00
gagan%netscape.com
7f055e75cd Fixes for bug 53580. Not sending username/passwd with referer headers. r=gagan,mkaply,darin, sr=scc
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82035 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:41:24 +00:00
mstoltz%netscape.com
910d32021c Bug 57937, signed frames not able to access unsigned frames. Fixed return code. r=mccabe, sr=brendan
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82034 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:41:16 +00:00
waqar%netscape.com
d027afc37a #=34706
r=dcone@netscape.com
a=buster@netscape.com
d=crash when printing to a file in a directory where I dont have write
permission, or printing to directory, or printing to a non existing printer.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82033 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:37:17 +00:00
peterlubczynski%netscape.com
b73bf8266b Prevent call into plugin if plugin is stopped. Fixes crash in plugin while reload/navigate while plugin is streaming. bug 54186, r=av, sr=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82032 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:31:15 +00:00
buster%netscape.com
685d1a9833 bug 54850
r=peterl, av
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82031 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:30:53 +00:00
buster%netscape.com
8ce08a6dda bug 57596
r=rickg
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82030 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:30:08 +00:00
buster%netscape.com
0ace14f1e5 bug 56704
r=erik
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82029 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:29:19 +00:00
buster%netscape.com
14a61344d2 bug 57054
r=rickg, ianh
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82028 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:28:35 +00:00
buster%netscape.com
02ec062b36 bug 53690
r=karnaze
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82027 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:27:57 +00:00
mscott%netscape.com
3997d55f76 Bug #54725 --> landing fix on behalf of rpots.
java does not shutdown correctly at exiting netscape or switching pages in frameset.
sr=brendan
r=kmcclusk


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82026 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:26:23 +00:00
jst%netscape.com
2f2d24e6fe Fixing rtm++ limbo bug 57495. Making element.getElementsByTagName() case insensitive if element is an HTML element for compatibility with the DOM spec. r=pollmann, sr=vidur
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82025 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:18:43 +00:00
rhp%netscape.com
5e7618a696 Fix for crashing when sending later fails - Bug #57851
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82024 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:18:04 +00:00
darin%netscape.com
82b82fd8f5 Fixes bug 56785. HTTP ignoring 303 response. r=gagan, sr=mscott, a=PDT.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82022 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:00:47 +00:00
jeff.dyer%compilercompany.com
df79cfca3a b=53849, sr=brendan, r=edburns,mstoltz, [rtm++]
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82021 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 20:53:57 +00:00
bienvenu%netscape.com
64244d32b2 fix 55003 make nsOutputStream check for null stream on close r=kandrot,sr=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82018 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 20:14:45 +00:00
bienvenu%netscape.com
cdd856d200 fix problem with interrupted connections ending up in news cache r=sspitzer,sr=alecf 57665
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82017 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 20:13:16 +00:00
bienvenu%netscape.com
518bd01637 fix 58323 unable to read msgs after shift delete of local mail r=sspitzer, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82016 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 20:11:45 +00:00
morse%netscape.com
7bc957756d back out last change -- it was meant for trunk and got here by accident
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81974 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-29 01:42:21 +00:00
morse%netscape.com
e6460747c7 bug 55731, files on disk need explicit html suffix, r=valeski, a=gagan, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81971 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-29 01:22:13 +00:00
mscott%netscape.com
4f549d61e3 Back out setting the status code on the http channel on the branch. This was checked in earlier today so marketing
could get a CD with this fix. We then checked in a revised patch for the following but that had lower risk and made this
change superfluous.

this is for 56934 sr=rpotts, r=sspitzer, gagan


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81853 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 04:17:00 +00:00
mscott%netscape.com
0c5937a398 Bug #56934 --> properly determine the status for on end document load. We used to
use the status of the last request processed in loading the document to determine
success or failure. That's incorrect. Instead, test to see if the load group is being
canceled. If it is, use that as the status for the entire document. Otherwise, ignore
the status for the last request and instead use the status for the main document
(the default load channel).
sr=rpotts, r=sspitzer

on the branch only, only execute this new code path if we received a NS_ABORT_BINDING.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81851 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 04:06:29 +00:00
danm%netscape.com
a456263679 add null check for docshell in LoadContentAreas. bug 57514 r=hyatt,pinkerton
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81845 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 02:31:51 +00:00
ccarlen%netscape.com
ae9579066f File Removed.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81830 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 21:37:15 +00:00
pchen%netscape.com
0f2a9b101a bugzilla 56564, r=matt, sr=alecf, add a "l" to ".htm" on other search URL
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81824 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 20:28:49 +00:00
neeti%netscape.com
a13d0c32b8 fix for rtm++ bug 57746, crashes [@ nsDBAccessor::EnumEntry], r=gagan, sr=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81823 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 20:09:27 +00:00
mscott%netscape.com
53956406de Bug #56934 --> properly determine the status for on end document load. We used to
use the status of the last request processed in loading the document to determine
success or failure. That's incorrect. Instead, test to see if the load group is being
canceled. If it is, use that as the status for the entire document. Otherwise, ignore
the status for the last request and instead use the status for the main document
(the default load channel).

(Make sure the http channel sets mStatus based on the status it gets before it calls OnStopRequest (r=gagan)

sr=rpotts, r=sspitzer


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81818 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 19:40:08 +00:00
mscott%netscape.com
ab9fffefd5 Bug #56934 --> properly determine the status for on end document load. We used to
use the status of the last request processed in loading the document to determine
success or failure. That's incorrect. Instead, test to see if the load group is being
canceled. If it is, use that as the status for the entire document. Otherwise, ignore
the status for the last request and instead use the status for the main document
(the default load channel).
sr=rpotts, r=sspitzer


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81817 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 19:39:13 +00:00
jband%netscape.com
31a4432a0f fix rtm++ bug 57962. Same fix as in the trunk. r=mccabe@netscape.com sr=brendan@mozilla.org a=pdt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81802 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 07:33:50 +00:00
waterson%netscape.com
5a9a8b0f61 Bug 57246. Ampersand-escape when serializing members, too. r=rjc, sr=scc
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81776 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 00:48:27 +00:00
bienvenu%netscape.com
b2b4009095 fix for 56643 topcrash in morkRowObject:CloseRowObject r=putterman,sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81775 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 00:36:56 +00:00
ccarlen%netscape.com
d2a8374217 Bug 57056 - search.rdf needed to be copied from defaults if it didn't exist.
r=racham, r=rjc, sr=waterson.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81763 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 23:09:10 +00:00
morse%netscape.com
058014e0e9 bug 57840, tre blocker, r=gagan,don
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81744 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 18:14:23 +00:00
neeti%netscape.com
6ad2d95935 fix for rtm++ bug 57326, Crash trying to use the save link as context menu, r=gagan, sr=mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81734 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 13:28:39 +00:00
mscott%netscape.com
b5709df8c8 Bug #56934 --> propogate the error returned by
OnDataAvailable so nsAsyncStreamListener can properly
cancel the load. This fixes the zdnet benchmark
problem. r=gagan, sr=rpotts


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81728 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 06:36:05 +00:00
pierre%netscape.com
275a44a30e 56950 "SeaMonkey crash in css code" (Netscape_20000922_BRANCH). Check error codes when constructing a DocElementTableFrame. r=attinasi, sr=buster, a=phil.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81726 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 04:33:07 +00:00
blizzard%redhat.com
646b738a33 Fix for bug #57046. Flush the X connection before returning the xid of the plug
in port window.  This is part of the fix to get the java plugin working on linux
 again. r=akkana a=brendan


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81721 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 03:41:05 +00:00
pinkerton%netscape.com
da97f1dc59 Don't use SetAnimatedThemeCursor() at interrupt time. Doh! Instead just back down to using the normal watch cursor. Not as pretty, but doesn't wipe out the machine at random. r=pchen/a=sfraser, bug#52565.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81710 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 01:43:53 +00:00
blakeross%telocity.com
35dd540fa7 Fix 57825: search button broken for single-click searches. r=pchen sr=alecf, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81707 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 00:51:16 +00:00
disttsc%bart.nl
ba93e0c1d9 Fix lurking segfault on linux/solaris, bug=54694, r=akkana, a=shaver, rtm++.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81702 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 23:53:09 +00:00
andreww%netscape.com
4704b90921 r=ben, sr=hangas, bug=55838 (plus others). Changes html element to box element to fix mac classic dialog sizing problems
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81701 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 23:32:30 +00:00
bienvenu%netscape.com
3e555715f5 fix top crasher in nsPop3Protocol::SendRetr 57865 r=jefft,sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81699 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 23:22:52 +00:00
dr%netscape.com
4712796926 patch for 53047, for jrgm who doesn't have cvs access. (rtm++, r=evaughan, a=ben)
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81695 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 22:50:31 +00:00
pavlov%netscape.com
101d97901f fix for bug 56010 r=brendan,akkana sr=blizzard,erik
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81691 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 22:37:32 +00:00
mscott%netscape.com
3a2031e4a3 Bug #57207 --> initialze elapsed time to 0 because we may use the variable before we
intialize it later on...
r=sspitzer, sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81686 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 22:16:33 +00:00
mscott%netscape.com
d751ee619f Bug #35956, 57619 --> be sure to disable auto conversion if we are handling the content
via an external app. sr=rpotts, r=gagan

Bug #57207 --> When we bring up the progress dialog, if we've already received a on stop request,
then go ahead and make the progress dialog go away again. r=sspitzer, sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81685 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 22:15:17 +00:00
ccarlen%netscape.com
4b743e1a18 Part of Bug 54097 r=a=hyatt@netscape.com
Make user chrome dir lower case.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81679 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 21:34:39 +00:00
ccarlen%netscape.com
abfc95f7a4 Bug 54097 r=a=hyatt@netscape.com
Build file URLs with nsIStdURL instead of nsFileURL.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81678 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 21:33:08 +00:00
bienvenu%netscape.com
9bff29d2c9 fix for 55983 pop filters mis-applied r=jefft, sr=alecf, a=jar
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81667 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 14:17:02 +00:00
bienvenu%netscape.com
4c72c1f8f5 fix for 55983 pop filters mis-applied r=jefft, sr=alecf, a=jar
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81666 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 14:06:41 +00:00
waterson%netscape.com
3d01449cb1 Bug 42001. Implement 'remove all pages from global history'. r=ben,bienvenu,alecf,brendan a=brendan,shaver
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81665 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 08:01:21 +00:00
hyatt%netscape.com
9d16ea7b4a Fix for 56599. r=everybody. sr=sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81663 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 05:57:00 +00:00
mscott%netscape.com
4d49403d3e Bug #56763 --> checking this into the branch for Michael Kaply.
avoid a race condition in the socket which can occurr on multi-processor machines where aCurrentTime is less than
mLastActiveTime.
r=gagan
sr=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81661 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 05:52:36 +00:00
pollmann%netscape.com
a3d4b03175 Bug 13871: Frameset spoofing - don't allow frames to target frames from another host/domain. r=mstoltz, rpotts sr=mscott Excess DOM interface removal r=jst sr=vidur
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81658 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 04:34:43 +00:00
blakeross%telocity.com
4ea083bf1a Fix 56193, can't delete mail attachments from mail compose window in Classic theme. already in the trunk. r=jag sr=ben, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81653 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 03:47:38 +00:00
pollmann%netscape.com
828a438554 Bug 57333: Remove search portion of form action - fixes Yahoo form post failure. r=rods, harishd, sr=vidur
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81651 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 02:57:38 +00:00
bryner%uiuc.edu
81d127eb45 Bug 56779 - dangling symlinks cause remainder of directory to not show up in filepicker. r=rjc, sr=shaver.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81649 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 02:47:53 +00:00
jst%netscape.com
ac8ca37fdf Fixing rtm++ bug 56529. URL escaping is fun! :-) Necko is unescaping the content of URL's if a segment of the URL is requested (but not if the whole URL is requested), the DOM code used this unescaped string as is and that caused backwards compatibility problems. a=gagan&brendan, r=andreas.otte@primus-online.de
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81647 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 02:39:39 +00:00
darin%netscape.com
7fc998451b Fixes bug 54081. Uploading large files. r=warren, sr=mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81646 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 02:38:10 +00:00
pollmann%netscape.com
0b7caee896 Bugscape 2369: Don't hold onto frame reference / type across mInner::HandleDOMEvent, fixes crashes. r=rods,jst sr=vidur
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81644 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 02:30:45 +00:00
attinasi%netscape.com
a17f3f36c6 Fixes regression where link colors and link underlines were lost in composer / mail compose. Added style rules to make links underliend and blue. b=57621, r=don@netscape.com sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81637 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 01:40:38 +00:00
matt%netscape.com
d00981ba72 http://bugscape.netscape.com/show_bug.cgi?id=2792
r=rjc
sr=ben
marketing wants pr2 related back


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81636 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 01:40:00 +00:00
matt%netscape.com
3a351eafe5 Checking in what's related panel from
PR2 because marketing says so...
http://bugscape.netscape.com/show_bug.cgi?id=2792
r=ben@netscape.com
r=rjc


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81635 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 01:37:32 +00:00
mscott%netscape.com
35501f3d43 Bug #48403 --> don't allow JS running in a mailnews sand box to change the name of it's containing iframe.
this code was contributed by mstoltz.
r=beard, sr=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81630 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 00:44:13 +00:00
sspitzer%netscape.com
e4e0103715 landing tonyr@fbdesigns.com fix for #54091 on the branch. (already landed on the trunk.)
r=sspitzer@netscape.com, sr=alecf@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81618 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 21:02:32 +00:00
brade%netscape.com
296541cfb4 bug #2979; fix string that had "untitled=untitled" at the end by removing that; r=rchen; sr=sfraser; l10n=montse
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81600 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 13:27:51 +00:00
hyatt%netscape.com
88ca808674 Fix for RTM+ bug 56916.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81595 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 08:17:54 +00:00
karnaze%netscape.com
3c271039f2 bug 54542 - avoid resolving style context (patch provided by Hyatt), a=buster, r=karnaze
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81593 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 03:32:42 +00:00
pchen%netscape.com
fb8ed05e3d bugzilla 56564, r=matt, sr=alecf, ooops, found type in fix, fixing type
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81591 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 02:48:05 +00:00
nisheeth%netscape.com
ce3e6f6552 Fix for rtm++ bug 54868. sr=buster, r=heikki. Fix for crash on sending webmail. Also fixes crash on clicking cancel in the "plugin not found" dialog that pops up on www.cbsnews.com when you try to see a video clip and the RealVideo plugin is not installed.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81590 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 01:35:11 +00:00
av%netscape.com
49a42df4bf Bug 57210, sr=waterson, r=edburns, r=serge, fixing crash in case when on start up scan plugins report no matching number of mime types and file extensions
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81587 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-22 21:55:59 +00:00
locka%iol.ie
e661f45b95 Anchor scrolling fixed for freshly loaded HTML content. b=56285, sr=vidur@netscape.com, r=heikki@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81585 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-22 14:44:27 +00:00
disttsc%bart.nl
75b32a00b4 (Checking in for timeless) fix the lingering mac issue on bug 46683: items in menus for Folders on Personal Toolbar are all underlined. patch=timeless,jrgm, r=jrgm,timeless, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81578 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-21 19:35:57 +00:00
ben%netscape.com
e272a080a9 fix for bugscape bug 2681, remove buildid from titlebar of browser.
r=don@netscape.com, a=scc@mozilla.org


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81571 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-21 04:46:17 +00:00
dcone%netscape.com
2cba2794a3 Bug 24406 sr=buster r=kmmclusk. Use history to get the content into the printing frame model.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81568 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-21 03:30:39 +00:00
matt%netscape.com
37c6e6f9c1 http://bugscape/show_bug.cgi?id=2868
a=cmcafee
sr=alecf
marketing needs links changed


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81565 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-21 01:27:53 +00:00
matt%netscape.com
557389ce42 http://bugzilla.mozilla.org/show_bug.cgi?id=56574
a=rjc
sr=alecf
fix for ie bookmarks being broken.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81564 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-21 01:21:21 +00:00
mjudge%netscape.com
17c32b5768 bug fix for 48064. rtm++ r=simon a=brendan. pdt=ok. fixes check for valid frame after callonchange. (callonchange may actually destroy the frame underneath us.) also we need to update the focusedvalue when enter/submit is hit. this will save 2 onchange from being fired. one from enter, second from blur.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81561 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-21 00:56:53 +00:00
darin%netscape.com
9ab6c5f2eb Fixes for bug 49168. Corrects HTTP authentication lookup semantics. r=gagan, sr=mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81558 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-21 00:55:02 +00:00
pchen%netscape.com
a324269214 bugzilla 52291, r=jag, sr=alecf, call sizeToContent() to make dialog layout nice and purty
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81539 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-20 22:53:32 +00:00
attinasi%netscape.com
fc5ab751d5 Part fo fix for prefs bugs: disabling forced colors and fonts for Composer shells. b=40340, r=karnaze,pierre verbal approval from k.brade, a/sr=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81520 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-20 05:31:00 +00:00
gagan%netscape.com
e200ca697a Fixing the aix bustage temporarily...
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81510 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-20 03:15:07 +00:00
gagan%netscape.com
949a81af96 Fixes for bug 56935. Thanks Nikolay. Fixes posting with SSL proxies. r=gagan, sr=mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81508 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-20 02:11:00 +00:00
gagan%netscape.com
e043f469ea Fixes for bug 53580. No longer sending user/passwd with referrers. r=mscott, sr=scc.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81507 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-20 02:05:20 +00:00
chuang%netscape.com
56c7f6dd38 Bug54530 Edit | List. Clicking OK crashes., r=putterman,sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81502 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-20 01:53:40 +00:00
attinasi%netscape.com
bfac35cec0 Fix for bug 40340: implemented prefs for text and background colors, link colors, link underlying, and forcing user's fonts and colors. r=karnaze,dbaron,erik sr=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81501 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-20 01:47:26 +00:00
pollmann%netscape.com
d57e31a092 Bug 52670: Grow session history frame list if needed when frames load out of order. r=radha@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81495 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-20 01:04:34 +00:00
kin%netscape.com
8abcc9de1f Fix for bug #57165 (Document/Message is not spellchecked if the caret is at the end of the document)
Call nsISpellChecker::SetDocument() with a PR_TRUE to tell the spellchecker to start checking
from the start of the document.
r=brade@netscape.com sr,a=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81491 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-20 00:05:41 +00:00
pchen%netscape.com
e5bcd35ebb bugzilla 56564, r=matt, sr=alecf, added string in string bundle for
"third" search URL


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81487 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 22:44:44 +00:00
pchen%netscape.com
d67ce6332d bugzilla 56564, r=matt, sr=alecf, revert code from bugscape 2666 and use
string bundle for "third" search URL


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81486 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 22:43:34 +00:00
mstoltz%netscape.com
f2e5f9090b Bug 56851, regression in XPInstall. Fixed by removing CheckLoadURI call for openDialog. r=jst, sr=vidur.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81483 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 22:27:19 +00:00
tor%cs.brown.edu
54a5f76641 Bug 19283 - blacken transparent pixels in 1-bit masks. This was
causing problems with binary alpha PNGs on Windows.  Patch from
Chris244@aol.com. r=pnunn, sr=tor


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81472 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 21:19:31 +00:00
sfraser%netscape.com
2e20a0f9a3 Fix for 20743 -- better strategy for low-memory handling when allocating image GWorlds. r=pierre, sr=dcone.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81470 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 21:17:13 +00:00
morse%netscape.com
fa40a99c8c bug 27687, can't log into yahoo mail, r=dveditz,gagan, a=gagan, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81469 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 21:15:20 +00:00
rods%netscape.com
e883ea51d2 Both fixes are checks for null pointers 57044 checks for a null toolkit pointer
50208 checks for a null window in the processing of events
Bug 50208, 57044
r=saari,kmcclusk sr=buster


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81454 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 14:31:03 +00:00
rjc%netscape.com
a83403d9fb Fix RTM++ bug # 55277: searching with multiple engines. r=danm sr=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81453 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 12:37:58 +00:00
gagan%netscape.com
4e855ffda4 Attempt to fix the HP horkage so that Jim Dunn doesn't wake me up :)
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81448 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 08:37:55 +00:00
brendan%mozilla.org
852ba8c1a2 Don't nuke the stackPool in JS_GC if it's in use by cx->stackHeaders or cx->fp (or other future users; 57096, r=shaver, a=jband).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81447 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 07:52:29 +00:00
gagan%netscape.com
5a9eb6fcb3 Fixing the tree horkage... my last checkin missed this file.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81446 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 07:41:17 +00:00
gagan%netscape.com
203613fd6e Fixing the extra addref I added. Part of last patch.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81444 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 07:07:49 +00:00
gagan%netscape.com
44e3f51896 Missed this addref in the last patch.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81442 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 07:04:27 +00:00
gagan%netscape.com
2e76b19aaf Fixes for bug 32335. Corrected the leak, switching to voidarray from nsISupportsArray, removing nsISupports as base for nsAuth. bug fix by darin, r=gagan, sr=mscott,brendan.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81441 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 06:57:49 +00:00
radha%netscape.com
4d7e056ef7 Fix for bug # 55055 r=adamlock sr=rpotts
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81440 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 06:41:24 +00:00
rickg%netscape.com
90f2735a92 fixed rtm++ bugs 56665,57173. r=attinasi, harishd; sr=buster.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81438 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 06:38:43 +00:00
radha%netscape.com
bbff47ee2c Fix for bug # 46828 sr=mscott r=rpotts
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81436 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 06:25:16 +00:00
buster%netscape.com
93857b4326 bug 57039 crash in [@ nsBlockBandData::GetBandData()]
simple bullet-proofing for possible null pointer dereferencing
r=karnaze
a=rickg, a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81434 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 05:31:11 +00:00
jefft%netscape.com
f2a3f4a11d fixed bug 57059 -- buffer overrun on message header, r=ducarroz, rhp, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81426 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 02:24:09 +00:00
jefft%netscape.com
390f318a2e fixed bug 55993 -- forward attachment corrupt; r=ducarroz, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81425 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 01:51:09 +00:00
gagan%netscape.com
03f3576501 Fix for bug 31174. SSL Proxy problems. r=gagan, sr=dougt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81419 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 00:35:53 +00:00
harishd%netscape.com
0ee1732b21 Checking in for Rickg
42525 - Make Transitional doctype greater that 4.0 with URI strict

r=me,attinasi
sr=buster


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81408 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 23:15:39 +00:00
brendan%mozilla.org
c5fb803d5c Fix cx-for-acx typo-blunder (57070, r=mccabe, a=jband).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81406 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 22:19:35 +00:00
sfraser%netscape.com
c0295149cc Fix for 56136 -- when reloading the editor page because of a charset change, call the predestroy notification, so that listeners (e.g. the UI update timer) can tear themselves down. r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81394 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 20:25:49 +00:00
heikki%netscape.com
4a5c57a358 Bug 54233, crash when quitting via keyboard. Make sure we release presshell before viewmanager so things can proceed smoothly. r=nisheeth,scc; a=hyatt.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81390 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 20:14:11 +00:00
heikki%netscape.com
e006ed62b3 Bug 53763, crash when event dialog dismissed and content changed. Make sure we release presshell before viewmanager so things can proceed smoothly. r=joki,scc; a=vidur.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81389 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 20:12:34 +00:00
hyatt%netscape.com
d7405987d6 Fix for rtm++ bug 44093.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81371 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 07:59:47 +00:00
hyatt%netscape.com
2e14d07068 Fix for 56395 rtm++ bug.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81369 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 07:49:20 +00:00
hewitt%netscape.com
afc6f5055a #56569 - [Modern] messenger threadpane correctness, r=hyatt, a=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81367 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 07:32:44 +00:00
radha%netscape.com
d7defb991e Fix for bug #55145 r=pollmann sr=rpotts
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81365 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 06:53:04 +00:00
radha%netscape.com
ec6f98e594 Fix for bug # 55145. r=pollmann sr=rpotts
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81364 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 06:52:04 +00:00
jst%netscape.com
6f1e6e3565 Checking in for rpotts. bug #56333 (r=pnunn, sr=tor@cs.brown.edu). il_containers are sometimes leaked when the image load is interrupted
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81362 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 06:46:36 +00:00
neeti%netscape.com
29030b5363 Fix for rtm++ bug 55405 SetSizeEntry(..) called during shutdown could lead to corrupted cache, r=dp,sr=rpotts
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81348 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 03:59:34 +00:00
sspitzer%netscape.com
743dafbb0a fix for #56572. r=racham, sr=mscott, a=PDT.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81346 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 02:14:02 +00:00
kmcclusk%netscape.com
53efc52ecf Prevent the flushing of pending events when painting. bug 56335 r=vidur@netscape.com a=buster@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81341 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 01:46:26 +00:00
kmcclusk%netscape.com
dce57aaec6 Added IsPainting method to determine when then the viewmanager is painting bug 56335 r=vidur@netscape.com a=buster@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81340 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 01:43:26 +00:00
sdagley%netscape.com
89c1517873 Fix #54778 - Make legacy plugins on Mac work from the "Plug-ins" folder. r=av,sr=sfraser,scc. Merging rtm++ fix from trunk.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81334 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 00:52:46 +00:00
jst%netscape.com
37e4bb8ae4 Fixing rtm++ bug 54121. Make sure to unroot the JS object before setting the script object to null to avoid referencing deleted memory later on in the GC. Thanks to sean@beatnik.com for testing and helping with the patch. a=waterson, r=brendan
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81312 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 21:20:30 +00:00
bnesse%netscape.com
a06402d2f8 Look for 'NSPL' as well as 'shlb'. Fix for bug #45697. r=av, sr=scc, a=rtm++.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81309 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 20:42:09 +00:00
bnesse%netscape.com
353a296f97 Use same define for all platforms. Fix for bug #45697 r=av, sr=scc, a=rtm++.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81308 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 20:41:39 +00:00
hyatt%netscape.com
38afcf0e34 Fix for rtm++ 56340.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81305 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 19:00:14 +00:00
harishd%netscape.com
61644a5439 56501 - NOSCRIPT in sink
r=jst
a=vidur,scc


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81304 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 18:25:19 +00:00
harishd%netscape.com
5b6afc4350 56501 - NOSCRIPT in serializer ( for jst )
r=me
a=scc


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81303 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 18:25:15 +00:00
harishd%netscape.com
dba63b0eb9 56501 - Dealing with NOSCRIPT content
r=jst
a=vidur,scc


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81302 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 18:25:04 +00:00
sspitzer%netscape.com
058be0ae29 workaround for #39655. r=putterman, sr=mscott, a=jar.
we don't have a fix for 39655, but this work around prevents the user
from "losing" the headers in the message pane when they switch folders.
the workaround is to collapse and expand the box that contains the headers
when showing the first message after re-rooting the threadpane.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81295 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 17:06:57 +00:00
hyatt%netscape.com
dc3bd2dfa2 Stray character got in there somehow. Removed it.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81287 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 08:26:17 +00:00
hyatt%netscape.com
ec4626a345 Oh boy. 56167 is finally considered a big enough deal to land on the branch.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81285 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 06:51:39 +00:00
waterson%netscape.com
5d1d7da5e7 Bug 53415. about:credits points to http://www.mozilla.org/credits/. r=brendan, a=scc
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81281 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 03:35:46 +00:00
saari%netscape.com
cbe8a01a83 amendment to fix for rtm++ bug 53869, spacebar scrolls page when on form controls. r=timeless, sr=shaver
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81280 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 03:00:28 +00:00
ssu%netscape.com
fa6917ff20 fixing bug #55253 - Browser cannot launch after update.html from Win 9x only. sr=brendan,warren r=dveditz,sgehani. not part of tinderbox builds. affects windows platforms only.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81278 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 01:30:28 +00:00
ssu%netscape.com
3695589f37 fixing bug #55253 - Browser cannot launch after update.html from Win 9x only. sr=brendan,warren r=dveditz,sgehani.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81277 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 01:26:40 +00:00
bryner%uiuc.edu
62e79c0ece Bug 56570 - tree crash doing shift-click after deleting selected item. r=brendan, sr/a=hyatt.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81275 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 01:20:16 +00:00
pierre%netscape.com
cf437f6c34 bug 55104 "Remove support for 'position:fixed' in CSS parser and DOM". Checked into the Netscape_20000322_BRANCH only. Must not be checked into the trunk. r=attinasi, sr=roc+moz@cs.cmu.edu, a=phil.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81274 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 01:11:48 +00:00
ben%netscape.com
58b0ae971c fix for 53403, dragging bookmark folder onto itself deletes folder.
This workaround is for the branch only, patch from Steve Morse (morse@netscape.com)
r=ben@netscape.com, a=scc@mozilla.org


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81272 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 00:51:18 +00:00
namachi%netscape.com
ccc33f9610 http://bugscape.netscape.com/show_bug.cgi?id=2857
r=danm, a=waterson(trunk), rtm++ by jar.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81266 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 00:07:51 +00:00
javi%netscape.com
7ac5443c28 Fix for Bug #54860 a=brendan, r=ddrinan
On non-Win32 platforms modify the input parameters to parentWindow->Open
  to not call OpenDialog and not have the modal flag set since it causes
  UNIX platforms to hang.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81265 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-16 23:43:24 +00:00
peterlubczynski%netscape.com
66a10b750d Get and send plugin MIME type, fix for bug 54205 r=sfraser a=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81263 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-16 22:42:24 +00:00
hyatt%netscape.com
a3726d245d Fix for 56235. r=saari, a=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81256 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-16 21:49:33 +00:00
hewitt%netscape.com
de24e90339 #56562 - [Modern] corrected icon heights for messenger, r=german, a=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81255 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-16 21:33:07 +00:00
kin%netscape.com
d7f40a2b0f Fix for bug #56159 (Crash when sending after copy/paste with Spell Check enabled)
mozilla/editor/base/nsEditorShell.cpp
      - Make sure mSpellChecker is zeroed in Shutdown() just in case something went wrong.

    mozilla/editor/txtsvc/src/nsTextServicesDocument.cpp
      - Added checks to prevent iterating over a collapsed selection in FistSelectedBlock() and LastSelectedBlock().

r=brade@netscape.com sr,a=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81245 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-16 14:31:48 +00:00
mscott%netscape.com
569d4d3aaf Bug #54329 --> create an instance of PSM on the UI thread to ensure that PSM is always
running on the correct thread.
Landing this change for rpotts.
r=dougt
sr=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81243 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-16 06:45:12 +00:00
danm%netscape.com
89ff2b3ec3 drop timeouts without a JS context by using the runtime. bug 50705 r=brendan,jst
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81242 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-15 23:33:19 +00:00
bienvenu%netscape.com
ba9047ac7f fix 55993 problem forwarding imap messages with attachments r=jefft,sr=mscott a=jar
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81237 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-15 20:41:36 +00:00
mscott%netscape.com
9f3366b744 Bug #2729 --> disable empty trash on exit for aol servers as this causes a nasty
hang. This is a short term fix for this problem.
r=jefft
sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81228 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-15 05:05:43 +00:00
mstoltz%netscape.com
d785b0dd69 Bug 56009, exploit allowing remote XPConnect access. Blocking load of chrome URLs by remore content and restricting use of window.openDialog. r,a=hyatt, sr=scc.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81227 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-15 02:44:27 +00:00
bienvenu%netscape.com
c275eb6018 fix 56450 top crasher in nsPop3Protocol::SentRetr r=jefft,sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81216 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 14:25:40 +00:00
brendan%mozilla.org
2a6294b518 Rename window.options to be window._options, quick and dirty restoration of backward compatibility (37886, r=jst, a=vidur).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81215 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 07:49:28 +00:00
rogerl%netscape.com
e92df3367e Bug #55114, r=mccabe, a=brendan, rtm++=jar. Fix failure to enumerate java
strings.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81214 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 06:52:36 +00:00
morse%netscape.com
866efd5764 bug 56048, can't dismiss privacy tutorial on the mac, r=dveditz, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81213 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 06:30:13 +00:00
law%netscape.com
49271213d2 rtm++ bug 27187; add code to make Mozilla the 'default browser'; r=ssu@netscape.com; sr=scc@mozill.org
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81212 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 06:00:57 +00:00
law%netscape.com
6f70c1b82f rtm++ bug 27187; add code to make Mozilla the 'default browser'; r=ssu@netscape.com; sr=scc@mozill.org
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81211 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 05:46:17 +00:00
law%netscape.com
9c3fec92ee rtm++ bug 27187; add code to make Mozilla the 'default browser'; r=ssu@netscape.com; sr=scc@mozill.org
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81210 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 05:32:30 +00:00
buster%netscape.com
7b77c4af88 bug 55703
r=jst
a=buster
checked in for rick potts (that's why I'm listed as sr)


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81208 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 05:15:50 +00:00
buster%netscape.com
d9de75b42b bug=53974 (Text nodes are getting :after pseudo-elements)
r=attinasi
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81207 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 05:14:00 +00:00
blakeross%telocity.com
05365a7071 rtm++ bug 40617, patch by law@netscape.com; move globals to parent so Ok works after switching to another panel; r=blakeross@telocity.com; sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81206 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 05:07:42 +00:00
sspitzer%netscape.com
b009019b5f r=putterman,sr=mscott
fix for rtm++ bug #55449.

we over-localized 4.5+ JA mac,
and localized the folder names "Mail" and "News" when we weren't supposed to.
this fix makes it so we do this when we migrate

1) try the pref first
2) if the pref is not set, try "4.x profile dir"/"Localized-Word-For-Mail"
3) if "4.x profile dir"/"Localized-Word-For-Mail" doesn't exist, try "4.x profile dir"/"Mail"


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81205 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 04:48:25 +00:00
alecf%netscape.com
bdfc6f94a7 second part of fix for #52519 - unescape text/x-moz-url URLs when they are dropped into bookmarks and history
r=law@netscape.com
a=ben@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81204 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 04:47:19 +00:00
alecf%netscape.com
b565b1b95f first part of fix for #52519 - escape text/x-moz-url URLs when they are dragged from the content area
r=law@netscape.com (LOTS of review!)
a=ben@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81203 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 04:46:10 +00:00
mscott%netscape.com
acac519bc0 Bug #55732 --> add profile\defaults\mimeTypes.rdf to packages.
r=alecf
sr=mscott
(this is sspitzer's patch)


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81202 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 04:23:03 +00:00
ben%netscape.com
c35f161738 Fix for rtm++ bug 52086, non functional mail import wizard.
r=sspitzer, a=alecf, scc@mozilla.org


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81198 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 03:59:06 +00:00
ducarroz%netscape.com
6ab03a24e1 Fix for bug 55179. Use the activeChild to retrieve the current user selection in the popup menu. Thanks jwbaker@acm.org for providing the patch.
R=radha,ducarroz SR=alecf.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81197 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 03:51:44 +00:00
mscott%netscape.com
8a75d5880a Bug #56459 --> mock imap channel needs to support nsIRequest in it's QI method.
this makes the progress dialog start working for opening imap mail attachments.
sr=alecf, r=jefft


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81196 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 03:48:21 +00:00
law%netscape.com
749c5d66e0 rtm++ bug 27187; add code to make Mozilla the 'default browser'; r=ssu@netscape.com; sr=scc@mozill.org
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81194 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 03:36:44 +00:00
sgehani%netscape.com
41725f6c15 Launch mozilla -installer at the endof installation on Linux.
b=55419
r=ssu
a=dveditz


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81189 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 02:12:53 +00:00
sfraser%netscape.com
a9c202774a Fix bug 52548, sidebar links open in composer window and nuke composer content. sr=mscott, r=vishy.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81186 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 01:44:31 +00:00
sfraser%netscape.com
4f71422971 Fix for 53310; implement IsLowMemory() on Mac, and turn on the low memory detection thread. r=waterson, sr=scc.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81175 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 00:39:16 +00:00
akkana%netscape.com
05f3434e7a 54449: Re-adding workaround for bug in delete-to-end, which was accidentally overwritten in XIF landing. r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81169 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 23:54:17 +00:00
dveditz%netscape.com
91eceb5e9e Account for null terminator, fixing Mozilla self-upgrade on Windows (bug 55254)
r=dbragg and ssu, sr=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81167 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 23:46:06 +00:00
dbragg%netscape.com
28533754d9 Fix for rtm++ bug 55259. Now only getting the seed for the unique key once and storing it in a static variable. r=dveditz, sr=mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81163 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 23:09:49 +00:00
waterson%netscape.com
24c12a217e Bug 56155. Be sure to determine if CanContinueTextRun() while walking *down* as well as across. r=buster, a=sfraser, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81156 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 22:52:32 +00:00
sfraser%netscape.com
74ace436b1 Fix for 56157 -- don't try to reuse browser windows for composer's preview, otherwise it crashes. r=brade, sr=kin. Branch only; bug will stay open for a real fix on the trunk.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81149 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 22:11:02 +00:00
saari%netscape.com
24ce7b556c fix for rtm++ bug 53869, spacebar scrolls page when on form controls. r=blake, a=hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81147 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 21:39:03 +00:00
gordon%netscape.com
b36910c9ad Fix for Bug 56170 "After mac goes to sleep, getting IMAP mail locks up machine". Changed case kOTOutStateErr, so that it returns an error. This enables us to detect when a connection is closed out from under us.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81144 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 21:16:30 +00:00
gordon%netscape.com
b6671db494 Fix for Bug 41433 "Crash clicking offline icon in browser window" rtm++, r=gagan, sr=sfraser, a=jar. Protected calls to OTCloseProvider() so we only call it when mServiceRef is not null. Also set gNeedLateInitialization so we reallocate mServiceRef next time we're online and make a dns request.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81143 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 21:05:11 +00:00
peterlubczynski%netscape.com
b604261079 fix for plugin positioning and clipping, isolated to Mac. b=54962; r=dcone,kmcclusk; a=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81138 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 19:44:11 +00:00
ddrinan%netscape.com
2e8e9b67c9 Fix for bug 53198. r=javi@netscape.com, sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81137 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 19:04:42 +00:00
kin%netscape.com
71c4dd5522 Fix for bugscape bug #2698 (Need to wire up Spellchecker language prefs)
mozilla/odules/libpref/src/init/all.js
      - Added "spellchecker.dictionary" default pref and removed old 4.x spellchecker prefs.

    mozilla/editor/base/nsEditorShell.cpp
      - Added code to InitSpellChecker() and UninitSpellChecker() to get and
        set the "spellchecker.dictionary" pref.

r=brade@netscape.com sr,a=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81131 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 13:36:22 +00:00
jst%netscape.com
e646a15e16 (Checking in for jefft@netscape.com). Fixing rtm++ bug 56129. The file input stream wasn't always setting the EOF state correctly, this caused problems with saving mail messages to the sent folder and also problems with 'Save As Draft'. r=ducarroz, r=sspitzer, sr=mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81130 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 11:15:36 +00:00
jst%netscape.com
80f11a02b3 Fixing rtm++ bug 56212. The new serializers were a bit too eager about what characters to encode as entities, this caused bad things when sending email that contained double quotes and also when writing a message containing quotes in AIM. sr=vidur, r=nisheeth.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81129 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 11:06:05 +00:00
pavlov%netscape.com
9f8c5e40a8 fix for typing not working when the mouse is not over the window bug 52414 r=brendan,sr=blizzard
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81128 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 09:24:06 +00:00
sgehani%netscape.com
0d312824ef Part of checkin for Linux installer should pick up system locale's string
bundle.

b=2470
r=dbragg,ssu
a=erik


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81126 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 08:46:43 +00:00
sgehani%netscape.com
f94ff1cf12 Remove obsolete file. Part of last checkin.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81125 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 08:42:53 +00:00
sgehani%netscape.com
41d40bf1f3 Linux installer should pick up system's locale string bundle.
b=2470
r=dbragg,ssu
a=erik


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81124 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 08:42:23 +00:00
sgehani%netscape.com
f91593d32b Clean up zippies in the root of the System volume's "Temporary Items" folder. [b=2741; r=dougt; sr=sfraser]
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81123 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 08:29:23 +00:00
alecf%netscape.com
2d2c817516 fix for rtm++ bug #55424 r=nhotta@netscape.com, sr=mscott@netscape.com
use GetUnicodeResource instead of GetResource in order to get the properly decoded Unicode string


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81121 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 08:05:33 +00:00
brendan%mozilla.org
847ad8c717 Restore long-missing obj = NULL to JSOP_OBJECT, so you can call a regexp without crashing (53614, r=mccabe, a=me; checking in branch version of rogerl's patch).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81120 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 07:18:45 +00:00
anthonyd%netscape.com
90f24fe711 fix for bug # 55750
Crash opening "new composer window" to bogus location, after "this type of page can't be edited" dialog
r=sfraser
sr=kin
sr=rpotts


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81114 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 05:06:02 +00:00
ben%netscape.com
0bc7559b35 Fix for rtm++ bug 53605, editing colour defaults for Composer writes bad data
to user preferences. patch from Steve Morse (morse@netscape.com), r=ben@netscape.com, a=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81112 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 05:05:04 +00:00
ducarroz%netscape.com
70e5f6f29e Fix for bug 54481. If nsMsgDisplayMessageByID failed likely because we don't have astring for the error, try again with NS_ERROR_SEND_FAILED. R=putterman, SR=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81111 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 04:50:50 +00:00
ducarroz%netscape.com
2bf93b731f Fix for bug 54481. We need to escape any comma in web page url or file name. R=putterman, SR=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81110 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 04:47:56 +00:00
ducarroz%netscape.com
28a0e92f00 Fix for bug 54481. Mac file name cannot have more than 31 characters. R=putterman, SR=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81109 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 04:47:13 +00:00
ducarroz%netscape.com
49809a79b7 Fix for bug 54481. We need to escape any comma in the web page url. R=putterman, SR=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81108 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 04:46:05 +00:00
law%netscape.com
bc14bc85f5 rtm++ bug 53842; move mork to browser so history window (global history) works; r=ssu@netscape.com; sr=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81106 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 03:54:51 +00:00
law%netscape.com
d7066a26de rtm++ bug 56122; fix typo to get nsIUrlWidget accessible to Navigator.js; r=dveditz@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81105 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 03:46:36 +00:00
neeti%netscape.com
adba5ed4e3 fix for rtm++ bug 54630 - Disk cache not writing files after 512 files reached. r=dp, sr=rpotts
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81103 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 03:01:10 +00:00
rhp%netscape.com
e36065d2c4 Fix for bug #55074 - sr: mscott - Crash recurising in CountTotalMimeAttachments
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81102 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 02:46:22 +00:00
karnaze%netscape.com
631ba7c5b9 bug 56024 - if there is no desired content width for a col, don't include the min content in totals. a=buster, r=attinasi.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81098 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:40:06 +00:00
rickg%netscape.com
e5608e2d30 fixed RTM++56085; r=attinasi, sr=buster.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81096 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:17:48 +00:00
matt%netscape.com
4492921404 oops. Put in change that was reject by pdt
since it was no important enough.   Was in
same directory as an appoved one thus the error.
Backing out change


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81093 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:11:42 +00:00
matt%netscape.com
341eea105c http://bugzilla.mozilla.org/show_bug.cgi?id=48465
added fix for bug 48465
a=ben
r=rjc
added function so in mail bookmarks sidebar
opens in top window


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81091 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:05:21 +00:00
matt%netscape.com
eeaf20a80f http://bugzilla.mozilla.org/show_bug.cgi?id=48465
r=rjc
a=ben
Adding function to load bookmarks sidebar
into topwindow.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81090 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:03:08 +00:00
pavlov%netscape.com
c26d8c2e65 fix for bug 45162 new plugins shouldn't use GdkSuperWin's, but instead should use XIDs. sr=blizzard r=valeski
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81089 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:03:01 +00:00
matt%netscape.com
7fe41ac92c http://bugzilla.mozilla.org/show_bug.cgi?id=55413
r=law
a=ben
r=rjc
Fix for repeated search coming up.
http://bugzilla.mozilla.org/show_bug.cgi?id=55414


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81087 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:59:01 +00:00
andreww%netscape.com
93b1433fb6 bugzilla 55188
r=hewitt,
sr=hangas,
dropdown arrow is stretched.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81082 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:38:47 +00:00
hewitt%netscape.com
c3bfe3431c #54751 - [Modern] main window cleanup, r=hangas, sr=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81081 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:38:46 +00:00
tao%netscape.com
1d5e32e35a 55156: localizable values are cached in the HTTP header.
r=gagan,racham,sr=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81075 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:26:48 +00:00
hewitt%netscape.com
7e30407fa9 #52271 - [Modern] more icon stuff, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81072 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:12:04 +00:00
hewitt%netscape.com
6bbb81582e #54751 - [Modern] new progress meter, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81071 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:08:47 +00:00
jfrancis%netscape.com
ceed146cd7 fix for rtm++ dogfood+ 55748; r=sfraser; sr=kin
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81067 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 23:55:09 +00:00
radha%netscape.com
a5e752c3a4 Fix for bugscape bug 1644. recommiting the fix from the trunk. r=valeski a=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81066 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 23:20:57 +00:00
jst%netscape.com
023e4eacbd Fixing rtm++ bug 54825. The form element cleanup code in the HTML sink was incorrectly adding the form element itself to it's parent event if it had already been added, this caused the content iterator to lock up when doing 'Find on this page'. sr=vidur, r=pollmann
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81065 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 22:59:29 +00:00
nhotta%netscape.com
649515759b Added an error handling in ConvertToUnicode() to use ISO-8859-1 if charset is invalid, bug 56059, r=bienvenu, sr=alecf,mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81063 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 22:42:19 +00:00
javi%netscape.com
8841a0feb1 Fix for bug 45892 r=ddrinan a=brendan
Wait for a non-NULL response when doing a
 KEYGEN when the user has just
 initialized the key database.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81060 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 22:34:28 +00:00
hyatt%netscape.com
fd6100a7c9 Fixing bustage. Took some changes along for the ride from the trunk unintentionally.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81055 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 21:41:08 +00:00
gordon%netscape.com
ca72cef42c Fix for bug 49990 "Networking fails after sleep/wake cycle" on Mac. rtm++, r=pinkerton, sr =sfraser. Added support for provide will/has closed OT events.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81051 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 21:12:36 +00:00
gordon%netscape.com
be4e72ba95 Fix for bug 49990 "Networking fails after sleep/wake cycle" on Mac. rtm+, r=pinkerton, sr =sfraser. Added support for provide will/has closed OT events.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81050 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 21:12:10 +00:00
hyatt%netscape.com
21eb0d3558 Remaining fix for 44437 that I forgot to check in earlier. r=a= same people
who reviewed it originally.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81049 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 21:11:51 +00:00
hyatt%netscape.com
b606c80925 Remaining file for tab fix #55290. I forgot to check this in when I did
the original landing.  r=a= same people who reviewed it the first time
around.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81046 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 20:56:59 +00:00
hyatt%netscape.com
7604ab6579 Fix for 50846. a=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81044 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 20:53:56 +00:00
rogerl%netscape.com
2383d67553 Bug #52479, r=mccabe,a=brendan. Typo in \uXXXX format could cause crash.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81042 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 20:45:34 +00:00
blakeross%telocity.com
2b80186af6 Fix for 49759, warn the user before switching themes to prevent dataloss. r=brendan a=ben (w=verah), rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81040 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 20:42:45 +00:00
buster%netscape.com
ad27d9a729 rtm ++ bug 55250 (crash dynamically changing "align" attribute of img, object, or table)
r=karnaze
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81038 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 20:33:39 +00:00
rickg%netscape.com
ee2e3e93f2 update to repair regression; a=leaf, sr=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81035 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 18:39:14 +00:00
locka%iol.ie
c3b0bc56f4 Fix for anchor scrolling regression with new standards compliance goodness. b=55244, a=waterson@netscape.com, r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81022 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 14:52:13 +00:00
waqar%netscape.com
3f2161defe #=53502
r=rods@netscape.com
a=buster@netscape.com
d=Fixes the problem of list box not responding to the meta and alt
modifier keys.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81017 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 14:17:51 +00:00
bienvenu%netscape.com
83885d4d2f fix filter to inbox for pop case 56007 r=sspitzer,alecf, etc
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81016 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 14:17:28 +00:00
rjc%netscape.com
7a83236eb6 Fix RTM++ bug # 51446: FTP issue with date/time strings containing dots. r=gagan sr=ftang
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81015 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 08:11:56 +00:00
hewitt%netscape.com
ab6e8f3d5d #52271 - [Modern] new secondary icons, r=german, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81011 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 07:55:20 +00:00
hewitt%netscape.com
f5bdb5e9b2 #52271 - [Modern] new secondary icons, r=german, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81009 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 07:49:05 +00:00
hewitt%netscape.com
4ce9de0b5e #52271 - [Modern] new secondary icons, r=german, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81007 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 06:56:27 +00:00
pollmann%netscape.com
53121a3cd0 Bug 53708: Prune session history tree at frame being replaced to prevent wrong pages from being loaded into subframes. r=radha sr=rpotts a=adamlock
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81005 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 06:27:38 +00:00
mscott%netscape.com
5193f074b1 Bug #47636 --> add methods to convert back and forth between a nsIDocShellLoadTypeInfo
and a docshell load tye. Unify nsIURILoadCommand and nsIDocShellLoadType enums so they
can be treated as the same type.
r=radha
sr=rpotts


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81004 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 05:41:27 +00:00
mscott%netscape.com
ae26d6faa6 Bug #47636 --> add methods to convert back and forth between a nsIDocShellLoadTypeInfo
and a docshell load tye. Unify nsIURILoadCommand and nsIDocShellLoadType enums so they
can be treated as the same type. This allows the uriloader to pass the correct load info
from the docshell that originates the load over to the docshell that actually
ends up loading the url.
r=radha
sr=rpotts


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81003 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 05:40:38 +00:00
pollmann%netscape.com
0d698d0b86 Fix Un*x bustage (typo in last patch, oops, sorry!)
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81000 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 04:50:35 +00:00
evaughan%netscape.com
157db8290a fix for #55899
a=hyatt r=ben


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80999 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 04:41:31 +00:00
pollmann%netscape.com
5952b9b508 Fix AIX build bustage - these are already defined in sys/inttypes.h
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80998 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 04:10:18 +00:00
mscott%netscape.com
9e9f2789bc Bug #2775 --> only force a delete model if the server is a AOL server.
only show deleted messages if the server is a AOL server.
r=bienvenu sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80995 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 02:40:02 +00:00
pollmann%netscape.com
406418ea90 Bug 48483: Fix HPUX bustage for Unix default plugin, fix thanks to wtc, r=jdunn,pollmann,wtc sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80989 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 01:17:13 +00:00
evaughan%netscape.com
2e7e724a2c Fix for bugs #46877 and #54049
a=hyatt r=bryner, pinkerton


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80987 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 00:41:10 +00:00
blakeross%telocity.com
263c5cd3a5 Fix 55832: css "width: 100%" rendering incorrectly for button elements. patch by djoham@criadvantage.com. r=ianh a=ben, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80981 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 00:00:11 +00:00
pollmann%netscape.com
aabe830d40 Bug 55906, 54845, 54966: Prevent psm-glue from accidentally cancelling form submit for file: urls, javascript: urls, and submits to 127.0.0.1 r=javi,jst sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80978 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:47:06 +00:00
rickg%netscape.com
3b39da1f4d fixing RTM++ compatibility issues: bugs 53011, 54117, 54651, 54834, 54840, 55095. sr=buster, a=harish, attinasi, simon for portions
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80975 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:37:20 +00:00
rickg%netscape.com
ab3e20892b WIP fix for bug 55095; r=buster, a=attinasi, simon
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80974 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:36:43 +00:00
sfraser%netscape.com
3d47575d3f Fix bug 53999 -- ensure that non-jar builds use the same override rules as jar builds. r=warren, sr=scc.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:32:15 +00:00
jst%netscape.com
369871d605 Fixing rtm++ bug 52998. Form controls inside <noscript> were incorrectly added to the form even if javascript was enabled. sr=vidur, r=pollmann
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80966 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:23:21 +00:00
jst%netscape.com
17c4945944 Fixing rtm++ bug 54892. The .offsetParent property on the BODY element was incorreclty returning its real parent in stead of null. sr=vidur, r=pierre
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80963 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:11:28 +00:00
mscott%netscape.com
72e6a34271 Bug #54381 --> if we are loading an http url that ends in .dll and the server didn't
give us a content type, then assume it is an unknown content type instead of
looking it up in the OS. This fixes the case were sites use ISAPI.dll and don't
specify content types.
r=gagan, sr=rpotts


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80962 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 22:54:19 +00:00
mscott%netscape.com
961afbe929 Bug #54381 --> add <BODY> tag to the unknown decoder's attempt to figure out
if content is html or not.
r=gagan, sr=rpotts


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80961 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 22:53:18 +00:00
karnaze%netscape.com
cb9e0cb7a7 bug 55789 - the col group frame increments its num cols before inserting the col into the table. a=buster, r=dcone.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80951 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 22:03:55 +00:00
yokoyama%netscape.com
6a5ed7bb3d Fix Bug#: 53528 : ALT+HANKAKU/ZENKAKU key often activates menu bar
r=shanjian, sr=ftang


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80947 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 21:47:49 +00:00
brade%netscape.com
3f5fe15fa0 add missing () for "toLowerCase()"; apply header change if only one cell is selected; r/sr=kin/sfraser; bug #54899
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80934 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 13:18:08 +00:00
jst%netscape.com
d589dab4ad Putting back a change that was accidentally backed out.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80932 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 11:22:01 +00:00
hewitt%netscape.com
49f7d24978 #52271 - [Modern] new secondary icons, r=german, sr=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80930 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 10:11:52 +00:00
jfrancis%netscape.com
bed23b29ba noxif landing continued; see jst's prior checkin comments
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80929 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 10:11:36 +00:00
jfrancis%netscape.com
e529247e19 noxif branch landing: see jst's comments in prior checkin
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80928 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 10:08:59 +00:00
jst%netscape.com
2b192c78f9 Landing the NOXIF changes on the Netscape6 branch, this includes all the changes that went into the trunk a few days ago plus the fixes for the bugs the NOXIF changes introduced or exposed on the trunk.
This fixes bugs 50742, 47014, 50568 46554, 55806, 56000, 55669 and partly (at least) fixes bug 53188

sr=kin, waterson, scc, vidur, r=kandrot, pinkerton, testers=jst, jfrancis, akkana, kin, and everyone who used the trunk since saturday...


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80926 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 10:05:08 +00:00
hewitt%netscape.com
66509242f8 #52271 - [Modern] new secondary icons, r=german, sr=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80925 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 09:56:29 +00:00
dveditz%netscape.com
5d10ee91b4 Use correct type of event queue in xpinstall, bug 54871 r=dougt, sr=brendan/blizzard
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80923 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 08:47:49 +00:00
waterson%netscape.com
80039ad5d8 Bug 53627. Minimize attributes in threadpane; r=scottip, a=ben, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80908 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 06:26:22 +00:00
waterson%netscape.com
75dd33796e Bug 53627. Use nsAutoString to get around bug with nsPromiseFlatString; don't clobber positive result in IsVarInSet(). r=rjc, sr=hyatt, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80907 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 06:19:30 +00:00
waterson%netscape.com
4e8a8466a4 Bug 54005. Test if frame CanContinueTextRun() before advancing to its sibling. r=karnazy, a=buster, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80906 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 06:15:34 +00:00
waterson%netscape.com
5061e7d329 Bug 53969. Store nsIAnonymousContentCreator-generated content in the PresShell, not the binding manager. r=dbaron, a=hyatt, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80905 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 06:08:58 +00:00
radha%netscape.com
622d433817 More fixes for MAC. r=pinkerton a=ben bug=52215
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80904 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 05:44:53 +00:00
(no author)
5d4ebb7015 This commit was manufactured by cvs2svn to create branch
'Netscape_20000922_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80903 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 05:40:52 +00:00
blakeross%telocity.com
4d35b3fd51 Fix 52059, comment out Print Preview in all places where it appears since we won't support it in this release. r=matt a=ben, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80900 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 04:29:59 +00:00
blakeross%telocity.com
08ccae9005 Fix 46645, Internet search pref for opening sidebar search panel has no effect. r=rjc sr=scc, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80899 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 04:21:59 +00:00
blakeross%telocity.com
f040038c6f argh...wrong tree, sorry..backing out.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80897 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 03:38:11 +00:00
dougt%netscape.com
f5380038d7 Fix for 55200. written by jband, r=dougt, a=phil/brendan.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80896 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 03:35:25 +00:00
blakeross%telocity.com
1ed6ade709 Fix for 53896, spacebar scrolls page when HTML buttons/checkboxes/radiobuttons have focus. patch by saari. r=danm a=hyatt, rtm+
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80895 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 03:28:36 +00:00
law%netscape.com
0093524b97 rtm++ bug 50656; r=matt@netscape.com; sr=ben@netscape.com; Don't let window.status override window.defaultStatus forever, and don't put auxilliary messages into overLink
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80894 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 03:26:22 +00:00
neeti%netscape.com
05800ef210 fix for crasher bug 54072,r=dp, sr=rpotts/mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80890 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 02:52:32 +00:00
racham%netscape.com
dcd8d783e3 Fixing bug 50914. Migrated profiles were missing mimetypes.rdf file. Added code to copy default mimeTypes.rdf file into the migrated profile directory. r,sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80886 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 02:39:45 +00:00
law%netscape.com
9d18f0560d rtm++ bug 55627; make Downloading dialog modal to avoid orphaning it; r=jrgm@netscape.com; sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80884 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 02:25:53 +00:00
law%netscape.com
4a67050d4f rtm++ bug 55627; handle case where base window closes out from under Downloading dialog; patch submitted by jrgm@netscape.com; r=law@netscape.com sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80883 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 02:21:34 +00:00
sspitzer%netscape.com
22605097de fixes for rtm++ bugs #55955 and #55444. on mac, migrate if the MagicCookies files doesn't exist. on mac, migrate if the "Mail" or "News" directories don't
exist.  r=putterman,sr=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80882 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 02:12:11 +00:00
heikki%netscape.com
6c26914663 Backing out some of pollmann's changes that broke HP-UX.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80881 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 02:06:56 +00:00
disttsc%bart.nl
88037c4164 Turn View > Text Size menu back on (bug=53207), except on Macs (bug=52969). r=pinkerton, a=ben,rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80880 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 01:33:59 +00:00
heikki%netscape.com
03594db143 Bug 55377, fixed a couple of Purify FMMs. delete[] was used when free should have been used instead. r=akkana, a=waterson.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80879 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 01:29:32 +00:00
jefft%netscape.com
633758d315 fixed bug55351 - Unable to enter a password for a SMTP server; always send EHLO command first instead of parsing the greeting to decide whether the server is an SMTP or ESMTP server; r=bienvenu, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80877 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 01:14:19 +00:00
jfrancis%netscape.com
a59e3b75df fixes bug 54895: certain editor operations (like align) crashed when applied to mulit-cell table cell selections; r=kin; sr=sfraser; a=jar
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80872 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 00:27:33 +00:00
andreww%netscape.com
208d869244 bugzilla bug = 54574;
r=hewitt;
sr=ben;
Back, forward, print, etc. buttons were stretched in mac classic skin


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80869 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 23:47:08 +00:00
blakeross%telocity.com
7fc9f06dc7 Fix 55030, set the default for sending user's email addr. as anon. FTP password to false. patch by mozilla@bucksch.org r=mstoltz a=brendan, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80868 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 23:37:17 +00:00
pollmann%netscape.com
475d13e646 Bug 48483: Unix default plugin - checkin on behalf of smak@sun.com, r=pollmann@netscape.com,av@netscape.com sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80866 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 22:55:46 +00:00
tao%netscape.com
1af7141151 54784: Chrome registry should flush stringbundle and XUL caching after
profile selection. (r=hyatt,sr=alecf)


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80865 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 22:37:46 +00:00
pinkerton%netscape.com
da6e8ab357 Give folder pane transparant border when it is not in focus to avoid resizing when it gets focus. r=pchen,a=ben, bug 54713
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80861 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 22:01:16 +00:00
blakeross%telocity.com
21aa434968 Fix 42404, change tooltip wording for browser URL bar. r=jag a=ben, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80856 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 21:42:47 +00:00
kin%netscape.com
e64f513a51 Fix for bug #52858 (Case where crash happens involving save to draft warning...)
mozilla/editor/ui/dialogs/content/EdSpellCheck.js
      - Make onClose() return true.

    mozilla/editor/ui/dialogs/content/EdSpellCheck.xul
      - Add onclose="onClose()" attribute to window tag.

r=brade@netscape.com sr,a=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80854 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 21:40:39 +00:00
blakeross%telocity.com
0cc83bb0eb Fix for 51151, prefs label has wrong accesskey. r=gemal a=brendan, rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80853 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 21:40:04 +00:00
chuang%netscape.com
af19dd1f95 bug50584 Lists in Personal Address Book not migrating as lists, r=bienvenu+putterman, sr=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80852 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 21:38:26 +00:00
pinkerton%netscape.com
912357cef1 Fixing COM refcounting problems by removing |mDataObject| from the drag target. Also removing the
cached drag session. r=pchen/a=hyatt. bug# 54803


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80850 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 21:03:46 +00:00
(no author)
20e733ceec This commit was manufactured by cvs2svn to create branch
'Netscape_20000922_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80849 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 21:01:15 +00:00
hyatt%netscape.com
b49a30d194 Fix for 43248. r=ben,a=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80846 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 20:54:08 +00:00
hyatt%netscape.com
b686a50a31 Fix for 5693. r=saari, a=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80844 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 20:49:32 +00:00
brade%netscape.com
0931868624 remove debug menu; Netscape branch *ONLY*; r/sr=kin/sfraser; submitted by rcassin@supernova.org; bug #53994
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80832 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 13:24:20 +00:00
brade%netscape.com
302cdaad46 fix remove image map button (typo); bug #55383; r/sr=kin/sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80831 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 13:19:36 +00:00
brendan%mozilla.org
2dfc9516d9 Don't store iter_state before checking for OBJ_ENUMERATE errors; avoid setting parent slot twice (55201, r=shaver, a=jband).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80826 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 06:40:06 +00:00
mscott%netscape.com
93fe54d613 Bug #55628 --> MoveTo won't delete the file if it already exists. When moving the temp
file to the user specified location, delete the specified location if it currently exists.
r=sspitzer, sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80825 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 05:20:09 +00:00
hewitt%netscape.com
cda6b3d7f3 #54750 - messengercompose addressingWidget cleanup, r=ducarroz, sr=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80821 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 04:56:01 +00:00
hewitt%netscape.com
1f856f607c #54750 - messengercompose addressingWidget cleanup, r=ducarroz, sr=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80817 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 04:48:42 +00:00
hewitt%netscape.com
5f1426c655 #52544 - fixed color picker in mailnews prefs, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80814 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 04:40:56 +00:00
hewitt%netscape.com
284071ddc4 #2813(bugscape) - [Modern] new button images for keyword menubutton r=marlon, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80807 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 04:32:29 +00:00
hewitt%netscape.com
70ca5532dd #54750 - messengercompose addressingWidget cleanup, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80803 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 04:16:12 +00:00
hewitt%netscape.com
be6bd16aec #54750 - messengercompose addressingWidget cleanup, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80801 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 03:43:38 +00:00
hewitt%netscape.com
08b5aa6368 #52544 - fixed color picker in mailnews prefs, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80800 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 03:15:43 +00:00
hewitt%netscape.com
18c5aaa347 #55442 - [Modern] de-bolding button, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80797 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 03:05:12 +00:00
hewitt%netscape.com
622939dc21 #54758 - [Modern] repairing hosed Edit Categories dialog, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80796 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 03:04:39 +00:00
andreww%netscape.com
286ad9e5e3 bugzilla 53388
r=varada
sr=hangas

hard to see arrows in some classic editor buttons


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80785 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 01:27:54 +00:00
bienvenu%netscape.com
f3538376c6 fix problem with missing all hdr tables in msg db making it impossible to get new headers r=scottip sr=mscott 55432
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80784 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 01:22:44 +00:00
hewitt%netscape.com
fcc72060cd #54105 - [Modern] menulist correctness, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80778 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 00:51:08 +00:00
andreww%netscape.com
a89534a713 bugzilla 51085
keyverb button wierdness
r=hewitt
sr=hangas


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80776 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 00:39:41 +00:00
sfraser%netscape.com
8898c532e7 Fix for 52808 -- standardized nsEditorShell creation and destruction across components, to fix editor observer notification timing. r=kin,ducarroz,jelwell, sr=hyatt.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80767 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 23:55:23 +00:00
karnaze%netscape.com
ed62737322 bug 55192 (2nd part) - During a table reflow, consider row groups that may have been deleted because they were next flows and placed in the sibling chain. a=buster, r=55192.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80766 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 23:51:20 +00:00
hewitt%netscape.com
3f214a51af #54751 - [Modern] window cleanup, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80764 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 23:43:00 +00:00
hewitt%netscape.com
718fd02bac #54105 - button/menulist correctness, r=andreww, sr=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80762 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 23:39:56 +00:00
racham%netscape.com
5a96111454 Fixing migration problems for japanese and european profiles. Used unicode perssitent descriptor strings to get and set profile data. Removed all those prefs that had native characters in their values, from the list of prefs to be conversted to utf8 format during migration. r=nhotta,alecf,sspitzer,ftang sr=alecf,ftang a=pdt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80759 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 23:26:57 +00:00
sspitzer%netscape.com
8645fe78b5 fix for #2617. add an overlay to the commercial tree so that upon
finishing account creation, we call the FinishAccountHook().
in the commercial tree, this sets the "mail.is_a_franklin_user" pref
so that ab sync will work. r=putterman, sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80758 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 23:03:03 +00:00
granrose%netscape.com
aa86e5f27b stop branch builds from logging extra data for macsbug crashes. bug # 4830. r=sfraser, a=scc.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80745 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 21:10:11 +00:00
dbragg%netscape.com
4c1ba2d327 Fix for rtm++ bug 50625. Added #pragma optimization level 1 if it's a non-debug Mac build only. r=sfraser, sr=mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80742 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 20:53:46 +00:00
harishd%netscape.com
5b3571edac 53489 - FMR fix ( r=jst, a=vidur ).
54448 - Allow param to be a kid of BODY for compatibility ( r=jst, a=vidur ).
53935 - Failed to reinitialize a variable "theIndex" that provoked a crash ( r=jst, a=buster)
53695 - Keep a reference to the first misplaced token for later use ( r=jst, a=buster ).


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80741 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 20:48:27 +00:00
karnaze%netscape.com
6cf119f253 bug 53891 - strategy correctly calculates preferred width of a fixed width table. a=buster, r=dcone.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80728 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 14:52:38 +00:00
brade%netscape.com
b842639f3f changes submitted by cmanske; modifications by brade. Make Format submenus and View menu items properly radio. Also, make format submenus show appropriate checkmarks when the selection has changed since the last time the menu was opened. r=kin; sr=sfraser; bug #54317
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80726 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 13:30:21 +00:00
pierre%netscape.com
a86d78eef8 bug 47846 (Netscape_20000922_BRANCH): Crash opening mail message. r=attinasi+brendan, a=phil
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80725 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 08:54:27 +00:00
pierre%netscape.com
9f195d97ed bug 1046 (Netscape_20000922_BRANCH): letter-spacing should apply on space characters too. r=erik+buster, a=michaell.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80723 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 08:44:29 +00:00
buster%netscape.com
487785553b bug 29276 (text inside <label> tags within a table cell breaks out of table cell)
bug 54119 (percentage (%) image (img) heights do nothing)
bug 1164 (ALIGN=MIDDLE and ALIGN=ABSMIDDLE values are not being supported)
r=rods, attinasi, karnaze
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80721 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 08:00:30 +00:00
locka%iol.ie
113e5328e3 Added webbrwsr.dll to browser package. b=54345, a=scc, r=scc
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80715 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-08 20:00:00 +00:00
anthonyd%netscape.com
8de0472f79 fix for bug#54253
Summary: D&D causes data loss
sr=kin
r=sfraser
a=kin


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80709 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-08 06:32:40 +00:00
anthonyd%netscape.com
913f3e4398 fix for bug #54222
summary: The "noshade" attribute on Horizontal rule not set at all
sr=kin
r=mjudge
a=mjudge


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80706 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-08 06:05:32 +00:00
rjc%netscape.com
8468a8bf6c Fix RTM++ bug # 54320: copy "Search Plugins" folder into $DIST. r=warren sr=sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80692 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 21:43:20 +00:00
sspitzer%netscape.com
8daaea1d24 fix for bug #55193. get addressbook.css to package up in the classic jar. r=andreww, sr=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80691 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 20:28:31 +00:00
bienvenu%netscape.com
dc4c6c3399 fix crash sending mail when sent mail folder doesn't exist r=putterman,sr=mscott 54444
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80690 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 16:04:39 +00:00
dcone%netscape.com
18bb919bf6 bug = 50795 r/sr=buster a=mcklusky r=erik [rtm++]
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80689 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 14:30:08 +00:00
dveditz%netscape.com
53de366e9c Bug 48155 use relative resource: urls when registering chrome; r=sgehani, r/sr=scc, a=pdt [rtm++]
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80680 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 10:30:46 +00:00
hewitt%netscape.com
9d830199d6 on behalf of jglick, #54522 - mnemonics stuff, r=mcarlson, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80663 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 06:17:33 +00:00
hewitt%netscape.com
70b773d7f5 on behalf of jglick, #54933 - mnemonics stuff, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80662 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 06:12:34 +00:00
hewitt%netscape.com
4fcbddf38c on behalf of jglick, #54543 - mnemonics stuff, r=scottip, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80661 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 06:09:24 +00:00
hewitt%netscape.com
9ff12c6e7d on behalf of jglick, #54543 - mnemonics stuff, r=scottip, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80660 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 06:05:52 +00:00
hewitt%netscape.com
90c7f8d5ec on behalf of jglick, #54543 - mnemonics stuff, r=scottip, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80659 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 05:58:37 +00:00
hewitt%netscape.com
1bea8fb9da on behalf of jglick, #54568 - mnemonics stuff, r=scottip, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80658 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 05:50:09 +00:00
pollmann%netscape.com
cd6f6ccc11 Bug 16346: Implement overflow:hidden support from frames and iframes. Fix by peterlubczynski, r=pollmann, sr=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80657 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 05:37:27 +00:00
radha%netscape.com
fd18c88c9b Another typo fix to the previous checkin. r=ben a=ben b=53869
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80656 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 05:29:56 +00:00
sspitzer%netscape.com
fb62e96721 bulletproofing to prevent crash in #55273. r=putterman, sr=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80655 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 04:24:24 +00:00
jst%netscape.com
8e0bfccfe9 Fixing rtm++ bug 53317 that caused a crash in nsFrameImageLoader::NotifyFrames() due to references to pointers that are invalidated during a callback. Patch done by bienvenu@netscape.com. r=attinasi@netscape.com and me, sr@a=buster@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80650 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 03:18:39 +00:00
law%netscape.com
810e86a7c9 Bug 6119; r=radha@netscape.com;sr=waterson@netscape.com;Use nsIChannel::VALIDATE_NEVER when loading a page for view-source
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80646 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 02:52:53 +00:00
ssu%netscape.com
23c6ab0bbe fixing bug #2778 - Win32 Nscp6 installer is misscalculating required space. sr=mscott, r=sgehani. affects only windows platforms. this file is not part of tinderbox builds.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80644 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 02:32:06 +00:00
ssu%netscape.com
42df7b39da fixing bug #2778 - Win32 Nscp6 installer is misscalculating required space. sr=mscott, r=sgehani. affects only windows platforms
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80643 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 02:30:02 +00:00
saari%netscape.com
9404d30f8e Fix for 53771, Mac only key event fix. r=sfraser, a=hyatt rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80642 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 02:26:23 +00:00
jst%netscape.com
9be7eddf8b Fixing rtm++ bug 55587. nsAReadableString::FindChar() was returning the index from the offset to the character if found in stead of the index from the beginning of the string. r=kin, sr&a=scc
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80637 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 01:53:56 +00:00
danm%netscape.com
7b9c9dce56 don't rebuild content if we're being closed. bug 53953 r=brendan,hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80635 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 01:37:38 +00:00
varada%netscape.com
06b90d8336 fix for bug 1552;helpmenu alteration;r=putterman;sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80633 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 00:58:05 +00:00
ftang%netscape.com
af41e4ea52 fix bug 54841. r=sr=erik . zero out the first 128 bits for Big5NoAscii converter
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80621 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:56:44 +00:00
ftang%netscape.com
05fa1211c1 fix bug 54468. r=sr=erik . better error handling.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80620 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:56:05 +00:00
pchen%netscape.com
c46fcb8cfe bugscape 2666, set fallbackDefaultSearchURL to "http://home.netscape.com/bookmark/6_0/tsearch.htm" because I just clobbered matt's checking
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80619 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:45:17 +00:00
pchen%netscape.com
90026e7539 bugscape 2666, r=matt, sr=scc, removed code to check to see if defaultSearchURL equals fallback URL, set fallback URL to hard coded value, should be functionally equivalent and we can internationalize the URLs
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80618 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:45:13 +00:00
pchen%netscape.com
286d938261 bugscape 2666, r=matt, sr=scc, set fallbackDefaultSearchURL to "http://search.netscape.com/" because navigator.js was overriding the old URL with this
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80616 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:39:58 +00:00
jband%netscape.com
9bc2a26a97 rtm++ bug fix onto the branch. Has been on the trunk for a few days. bug 55139. r=shaver a=brendan.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80614 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:28:22 +00:00
matt%netscape.com
6c15c2d0ef changing search url for bug 2282
sr=ben
r=putterman
r=rjc


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80608 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:14:18 +00:00
matt%netscape.com
ffd01de5db changing search url for search
sr=ben
r=putterman
r=rjc


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80607 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:10:31 +00:00
andreww%netscape.com
9650f2db40 bugzilla 55189, r=hewitt, sr=hangas, splitter grippy misaligned when horizontal.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80606 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:01:22 +00:00
ducarroz%netscape.com
5b986a744e Fix for bug 54774 & bug 54997. After deleting a row, we must resync the id's of them. Also, do not delete rows on autorepeat. R=varada, SR=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80604 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 22:59:51 +00:00
bratell%lysator.liu.se
f0e9910ce0 Fix for bug 54016 - crash when indentation wider then wrap width. The fix was to check for that condition. r=akkana@netscape.com, a=vidur@netscape.com. Checked in on trunk a week ago.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80571 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 11:14:04 +00:00
gayatrib%netscape.com
fe72f7bf6a Fix for bug 43321. File|New|Folder should default to current account if applicable, otherwise to the default account. r=putterman sr=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80565 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 07:39:11 +00:00
radha%netscape.com
5400a21319 Fix for bug # 52457. rechecking in fix to branch r=ben a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80564 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 06:55:06 +00:00
radha%netscape.com
349f6ca01b Fixing typo in the previous checkin. r=matt/a=ben b=53869
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80563 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 06:48:05 +00:00
nhotta%netscape.com
e5fd247694 Moved "mailnews.start_page.url" from .js to .property, bug 55011, r=tao, sr=alecf.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80562 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 05:51:57 +00:00
sgehani%netscape.com
69ab679b21 Make linux installer understand intl charsets.
b=43057
r=ssu
a=syd,blizzard


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80561 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 05:24:25 +00:00
sgehani%netscape.com
bbbc0e2d3b Remove blue.jar from mac and linux installer packaging manifests to bring them
in line with win32.

b=54706
r=ssu
a=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80558 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 05:17:10 +00:00
nhotta%netscape.com
f255abfbfd Added getDefaultLocalizedUnicharPref, bug 55011, r=tao, sr=alecf.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80553 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 03:49:15 +00:00
nhotta%netscape.com
632dcc271e Extended the case mapping table for characters>127, bug 54195, r=wtc, sr=brendan.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80552 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 03:30:50 +00:00
nhotta%netscape.com
278d0701f9 Change for multipart/mixed, use only a charset of the first attachment, r=sr=mscott, bug 54051.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80551 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 03:29:34 +00:00
ben%netscape.com
a9000acfcd fix for 49908, fix wording for Classic-Win and Classic-Mac. New text from
vera, r=tpringle@netscape.com, a=myself


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80550 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 03:00:28 +00:00
ssu%netscape.com
14415bbdcd fixing bug #54067 - Clean up purify errors in Xpinstall engine. r=dveditz, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80548 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 02:40:13 +00:00
rhp%netscape.com
c48c490595 Fix for permission problem on temp files - SECURITY - r: jefft
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80547 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 01:41:22 +00:00
sfraser%netscape.com
933a0198e4 Fix for 55080 -- missing return value. r=brade, sr=saari.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80546 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 01:17:22 +00:00
ben%netscape.com
f087ddc6f0 fix for 54574, menubutton feedback and button stretching problems for the
back/fwd/print buttons. r=blakeross@telocity.com, a=hyatt


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80543 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 01:10:25 +00:00
mscott%netscape.com
9bf9eb37c0 Bug #54009 --> fix crash when literal is null. This can happen because of
some bad debugging code that was left in mimetypes.rdf for pdf back in beta2
for now, return an error. This will make use ignore this entry in the data source
when performing mime lookups....which is good 'cause that will have a side
effect of making application/pdf content work again.
r=sspitzer, a=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80540 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:58:05 +00:00
hyatt%netscape.com
4224f8cadc Fix for 44437. r=danm, a=hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80538 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:56:09 +00:00
hyatt%netscape.com
f23bfd9ce7 Fix for 44437. r=danm, a=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80537 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:54:42 +00:00
hyatt%netscape.com
2edeabea06 Fix for 44437. r=danm,a=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80536 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:53:50 +00:00
pinkerton%netscape.com
07fc23257f turn off watch cursor before going into native code. make the cursor not turn on when library loads so embedding clients don't get screwed. r=pchen/a=hyatt, bug# 53121.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80535 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:48:34 +00:00
danm%netscape.com
a11227c847 reverted line in SetVisibleByFlag; an odd casualty of the brace and indentation uglification that comprised most of rev 1.6. bug 54235 r=jst,waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80534 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:47:36 +00:00
edburns%acm.org
f7e6a212ab bug=55109
a=brendan
r=rogerl
pdt++? yes

This bug fix brings the library name of the liveconnect shared
object being used to load the library into synch with how the shared
library is actually named on disk.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80533 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:39:00 +00:00
mcafee%netscape.com
5a2bee48c7 Adding ctrl-e accelerator for File|Edit page (53773). r=akkana, sr=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80532 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:37:23 +00:00
edburns%acm.org
51d1b42a0a bug=55076
a=brendan
r=av
pdt++? yes

This bug fix makes nsPluginHostImpl::FindProxyForURL() inspect the
ProxyAutoConfig service for proxy values before trying to inspect the
prefs.  This bug fix makes the following assumptions:

    // ASSUMPTION: the only time where it's appropriate to NOT look at
    // the prefs is a successful return from PAC.

That is, prefs will be consulted unless PAC returns successfiully
returns a valid value.

This bug fix also replaces const char *s with nsXPIDLCStrings, and uses
nsCOMPtr where possible.  It also addresses a remote corner case where a host in the noProxyList could by mis-interpreted.

files in this fix:

modules/plugin/nglsrc/nsPluginHostImpl.cpp


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80531 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:36:33 +00:00
danm%netscape.com
1a0c5db29e don't set status in SetNewDocument if window is partially destroyed. bug 49615 r=jst,waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80529 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:26:18 +00:00
alecf%netscape.com
a8c998fd85 fix for #35803 - make sure to clear out the old stale page information when a page is re-loaded from prefs
r=sspitzer sr=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80528 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:08:44 +00:00
karnaze%netscape.com
586b2395e4 bug 49490 - turn off collapsing borders, rules. Fix reflow state to not account for vertical borders or padding on rows. a=buster, r=dcone.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80524 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 23:43:26 +00:00
hewitt%netscape.com
b87e77c9eb #54073 - [Modern] splitter polish, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80522 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 23:35:09 +00:00
harishd%netscape.com
a64b191790 50965 - Fixing data loss ( skipped-content nodes ) in editor.
r=jst,a=waterson.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80518 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 23:11:25 +00:00
erik%netscape.com
99f4f3a3af bugs 46974 and 53469; written by bstell; r=erik; sr=blizzard;
convert single-byte ASCII to double-byte for *-iso10646-1 fonts;
use substitute font's GdkFont properly


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80516 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 23:05:10 +00:00
karnaze%netscape.com
39433ab4b4 bug 55192 - use the strategy of the first in flow when (incorrectly) getting an incremental reflow during printing. a=buster, r=peterl.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80513 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:39:39 +00:00
karnaze%netscape.com
a9c6cd3a5c bug 51392 - use nothing changed flag when deciding whether to rebalance table during row incremental reflow. a=buster, r=peterl.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80512 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:38:42 +00:00
karnaze%netscape.com
9c86e9bc1b bug 19961 - in standard mode, honor fixed width col and give remaining space to auto cols if there are any. a=buster, r=dcone.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80511 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:37:40 +00:00
mccabe%netscape.com
bf4ba4d8e5 /u/mccabe/cimsg
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80510 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:37:07 +00:00
karnaze%netscape.com
087b82e2ba bug 54829 - process child frames with table specific code when repeating a row group for printing. a=buster, r=peterl.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80508 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:36:14 +00:00
dbragg%netscape.com
9533789490 Fix for rtm++ bug 52181. r=sspitzer sr=mscott. Removed return upon unsuccessful migration. Now it drops through and deletes the progress window as it should.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80507 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:33:24 +00:00
hewitt%netscape.com
e8b94440db #51645 - theme preview images for all platforms, r=law, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80506 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:32:48 +00:00
heikki%netscape.com
a1cfff11b3 Bug 51211. Image load event caused havoc in chrome, stop the event from getting into chrome. r=vidur, a=hyatt.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80505 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:31:55 +00:00
kin%netscape.com
cb109f0315 Fix for bug #50570 ([MLK] Leaking PRUnichar buffer in nsHTMLEditor::InsertFromTransferable())
Added calls to nsMemory::Free() to free text in PasteAsPlainTextQuotation() and InsertFromTransferable().
r=brade@netscape.com sr=sfraser@netscape.com

Fix is already checked into the trunk.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80504 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:31:37 +00:00
bryner%uiuc.edu
a435e2f9c1 bug 54789 - linux crash on Save All Attachments. r=jag,pavlov. sr/a=ben.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80500 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:20:36 +00:00
(no author)
cba923c9bd This commit was manufactured by cvs2svn to create branch
'Netscape_20000922_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80496 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:11:33 +00:00
disttsc%bart.nl
4745e04cf5 Change Text Size enlarge/reduce accelerators to accel +/-, part 2, bug=51597, r=mcafee, a=rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80494 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:11:31 +00:00
disttsc%bart.nl
29479d8a4f Change Text Size enlarge/reduce accelerators to accel +/-, bug=51597, r=mcafee, a=rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80490 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 22:00:22 +00:00
brade%netscape.com
2fd00a681e bug #54897; make strings localizable (pull them from the stringbundle) rather than hard-coding them in JS; submitted by briano9@yahoo.com and dan6992@hotmail.com; r=brade, sr=kin
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80444 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 14:46:08 +00:00
rhp%netscape.com
96370faede Fix for crashing when cancelling print requests - Bug #54417
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80442 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 13:00:08 +00:00
scc%mozilla.org
37dcb9c0ed bug #53417: corresponding mac work to hyatt's new file change (see his checkin for r=/a=)
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80438 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 07:56:43 +00:00
hyatt%netscape.com
de0b6628b1 53417.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80435 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 07:14:33 +00:00
hyatt%netscape.com
d987105ae0 53417.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80434 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 07:06:26 +00:00
hyatt%netscape.com
455fb4eb53 Fix for 53417. Been in trunk for a while, just now going over to branch.
a=brendan


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80433 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 07:06:09 +00:00
bryner%uiuc.edu
79857294c5 Bug 54798 - Don't append "(Not Downloaded)" to saved filenames when using Save All Attachments. r=jefft, sr/a=mscott.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80430 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 05:05:44 +00:00
sfraser%netscape.com
f234564c68 Fix for bug 55140, r=brade, sr=ftang. Fix a stale pointer bug in unicode font mapping routines, by not using a global (which got stale), but using an inline getter instead.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80421 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 04:06:53 +00:00
putterman%netscape.com
a0002de063 Fix for 54545. r=chuang, sr=mscott. You can now turn off the collected address book through preferences.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80416 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 03:49:39 +00:00
danm%netscape.com
7f19247bda add null check in Destroy. bug 53827. code=jefft r=me,shaver
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80412 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 02:59:11 +00:00
timeless%mac.com
18b6a27a94 fix rtm++ bug 44895
Fixing the "Mail/News Account Settings" mnemonic to consistently use 'M'.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80407 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 01:53:34 +00:00
ssu%netscape.com
fcb85574f2 fixing bug # 54063 - cleaning up purify errors in win32 installer. r=dveditz, sr=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80403 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 01:38:33 +00:00
scc%mozilla.org
6b6ecbb13f bug #54601: r=waterson, a=brendan. Fix string allocation policy -- allocate exact size, double on fault ... thanks to everybody who helped me test this patch.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80401 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 01:22:00 +00:00
bryner%uiuc.edu
f22df60178 bug 54306 - fix extending the current selection using shift-click. sr/a=hyatt.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80399 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 01:11:36 +00:00
bryner%uiuc.edu
53a7e170c0 bug 53697 - add filepicker.css to jar.mn file. r=disttsc@bart.nl, axel@pike.org. sr/a=ben.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80394 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 01:04:41 +00:00
bienvenu%netscape.com
29ae831f7b fix crash in folder cache upon startup 55184 r=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80390 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 00:38:37 +00:00
bienvenu%netscape.com
ead3108a53 fix 54854 crash in nsImapMailFolder::NormalEndHeaderParseStream r=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80389 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 00:37:42 +00:00
sfraser%netscape.com
033dcdcb9c Fix for 53742 -- Open Location dialog, opened from Compser, should have titlebar. r=brade, sr=kin.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80388 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 00:34:07 +00:00
morse%netscape.com
89ec41dc34 bug 2544, image blocking not working, r=dveditz,hyatt, a=morse
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80385 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 00:28:45 +00:00
rjc%netscape.com
7074621805 Secon attempt to fix RTM++ bug # 54626: ftp dir resolution. r=waterson sr=gagan
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80381 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 22:58:54 +00:00
attinasi%netscape.com
b6c07222af Fixed null content in frame, causing assertion in ReResolveStyleContext. b=54454, r=karnaze@netscape.com, a=buster@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80376 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 22:15:47 +00:00
attinasi%netscape.com
4e01423868 Fixed CSS cursor inheritance. b=51113, r=pierre@netscape.com, a=buster@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80375 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 22:14:04 +00:00
erik%netscape.com
32074b9583 bug 54507; r=ftang; a=buster; complete the charset -> lang group table to
get the right fonts in layout (and to solve the assertion problem)


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80374 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 22:10:13 +00:00
dougt%netscape.com
4ad64a127c Replaces check for processingEvents. r=hyatt/danm. a=phil@netscape.com b=54371
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80372 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 21:43:36 +00:00
radha%netscape.com
26d22645f4 Fix for bug # 53869. Checking in fixes to branch. Fixes already checked in to trunk.
r=matt a=ben


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80371 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 21:40:09 +00:00
rjc%netscape.com
172405b776 Fix RTM++ bug # 52789: history window sorting on URL fix. r=waterson sr=scc
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80367 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 20:31:49 +00:00
chuang%netscape.com
274f79fb2a Bug52368 Deleted entries in PAB shows up in mailing list. r=putterman, sr=alecf.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80363 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 20:10:30 +00:00
dbragg%netscape.com
b26de02be9 Fix for rtm++ bug 54529. Calling window.focus() in the Onload handler. r=sspitzer,brendan, a=brendan
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80362 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 19:59:34 +00:00
ducarroz%netscape.com
e66ee63bcf Fix for bug 54026: We need to always parse the message to extract the headers during a reply even if the pref auto_quote is turn off. R=rhp, SR=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80360 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 19:54:12 +00:00
rods%netscape.com
572ada8c25 renamed MatchName to MatchId and now it only looks at the id instead of the id and then the name
Bug 54136, r=jst, a=buster


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80352 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 14:08:21 +00:00
kin%netscape.com
a264c78b7d cmanske@netscape.com's fix for bug #54426 (Infinite loop when using Join Table Cells)
This fix is already checked into the trunk.
r=brade sr,a=sfraser


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80350 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 13:54:47 +00:00
kin%netscape.com
b031b190c0 cmanske@netscape.com's fix for bug #53733 (Can't nest tables easily (in editor))
This fix is already checked into the trunk.

    mozilla/editor/ui/composer/content/editorOverlay.xul
    mozilla/editor/ui/dialogs/content/EdInsertTable.js

r=brade@netscape.com sr,a=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80346 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 13:23:05 +00:00
rods%netscape.com
982eff7b57 Focus rect is now drawn and erased directly via C++ code. Focus comes from "SetFocus" being set
on the content node which calls the frame. The frame is notified of Blur via thecontent node
watching for NS_CONTENT_BLUR events.
The rule we are removing from html.css is responsible for drawing in the focus,
but it causes the combobox, the dropdown and all the options to have their style reresolved.
Bug 32920, r=attinasi, b=buster


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80345 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 13:18:39 +00:00
kin%netscape.com
b24c44128a Fix for bug #54731 (Spellchecker stops working after you close the Edit Personal Dictionary dialog)
Removed call to editorShell.UninitSpellChecker() inside Close().
sr,a=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80344 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 13:17:34 +00:00
kin%netscape.com
240ec9e7b6 Fix for bug #53326 (can't select paragraph headers)
Modified HandlePress() to check for presence of
href value for anchors before bailing early.
r=pinkerton@netscape.com sr,a=buster@netscape.com


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80343 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 13:17:06 +00:00
rods%netscape.com
1baf9ccade Focus rect is now drawn and erased directly via C++ code. Focus comes from "SetFocus" being set
on the content node which calls the frame. The frame is notified of Blur via thecontent node
watching for NS_CONTENT_BLUR events.
Bug 32920, r=attinasi, b=buster


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80342 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 13:16:20 +00:00
brade%netscape.com
50dabd8978 bug #54781; checkin for cmanske; r=brade; sr=kin & sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80341 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 12:35:19 +00:00
brade%netscape.com
3d2b5c0029 properly enable editfields for col/row span; bug #54296; sr/r=kin/sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80340 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 12:31:41 +00:00
brade%netscape.com
adec46df28 bug #53557; move handlers to iframe (from html body tag); sr=kin/sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80339 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 12:29:19 +00:00
brade%netscape.com
1d7fea737e bug #53557; move handlers to iframe (from html body tag); submitted by bking@xmlw.ie and dan6992@hotmail.com; sr=kin/sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80338 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 12:28:38 +00:00
hewitt%netscape.com
e6329eac6a #51645 - theme preview images for all platforms, r=law, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80337 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 11:12:08 +00:00
timeless%mac.com
82292d6859 fix rtm++ bug 46683 r=ben a=syd
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80336 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 08:05:42 +00:00
ben%netscape.com
f34663e2b7 fix for rtm++ bug 53537, middle mouse click on scrollbar attempts to load the
contents of the clipboard as a URL (unix). code from jrgm@netscape.com, r=alecf,
a=myself. fix already in on trunk, checking into branch


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80329 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 06:03:21 +00:00
ducarroz%netscape.com
24bc3ee6d6 Fix for bug 54326. Import the right css file. R=sspitzer, SR=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80328 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 05:59:51 +00:00
ducarroz%netscape.com
636db35c7f Fix for bug 54396. Do not auto complete in the text field while deleting characters.r=Bienvenu & sspitzer, SR=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80327 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 05:22:04 +00:00
hewitt%netscape.com
ac44042e65 fix for redness, extra files were in jar.mn
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80326 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 05:19:25 +00:00
ben%netscape.com
fceff147f3 fix for rtm++ 49908, fix text descriptions for classic skin. text from vera, r=don, a=myself.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80325 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 05:16:14 +00:00
alecf%netscape.com
ccc04984f2 fix for #54367 - speed up the focusring stuff more by optimizing loops, etc.
r=putterman,andreww sr=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80324 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 05:02:39 +00:00
hewitt%netscape.com
8e32c62caa #54073, #54105 - [Modern] image additions and removals, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80323 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:54:58 +00:00
ducarroz%netscape.com
8f679b5d99 Fix for bug 54562. Remove dot in save as file menu name. R=sspitzer, SR=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80322 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:54:20 +00:00
(no author)
edee1f02cc This commit was manufactured by cvs2svn to create branch
'Netscape_20000922_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80321 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:53:15 +00:00
hewitt%netscape.com
bb5ac7e7a6 #54751 - [Modern] main window cleanup, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80319 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:52:31 +00:00
ducarroz%netscape.com
9d4bc4cf21 Fix for bug 54604. In case of template or draft, mdd->url_name != mdd->options->url. R=sspitzer, SR=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80318 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:51:11 +00:00
hewitt%netscape.com
559414b200 #54105 - [Modern] focus issues, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80317 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:50:27 +00:00
ducarroz%netscape.com
f2d50fce9a Fix for bug 54501. Need to decode mime headers before using them. R=rhp, SR=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80314 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:39:44 +00:00
hewitt%netscape.com
5195aa8697 #54751 - [Modern] main window cleanup, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80313 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:34:37 +00:00
rjc%netscape.com
41573bb19b Backing out previous checkin while I investigate orange.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80312 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:28:57 +00:00
hewitt%netscape.com
425fb6a5cd #54073 - splitter, grippy, toolbar polish, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80311 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:26:39 +00:00
hewitt%netscape.com
4a0a352512 #54751 - [Modern] main window cleanup, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80309 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:07:18 +00:00
hewitt%netscape.com
b37db149d5 #54754 - [Modern] border for sidebar tabs, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80308 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:03:46 +00:00
hewitt%netscape.com
23a8e1cc1b #54105 - [Modern] focus issues, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80307 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:02:36 +00:00
buster%netscape.com
21048eb791 bug 50480 (list-item marker of link list overlaps)
r=karnaze
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80306 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:01:35 +00:00
hewitt%netscape.com
f700c28f17 #54753 - [Modern] dialog cleanup issues, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80305 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 04:01:07 +00:00
hewitt%netscape.com
71b6412e74 #54105 - [Modern] focus issues, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80304 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 03:56:47 +00:00
buster%netscape.com
adeb7c6279 bug 54980 (some HRs rendering too tall)
r=karnaze
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80303 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 03:46:21 +00:00
hewitt%netscape.com
910237be01 #54073 - splitter, grippy, toolbar polish, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80302 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 03:41:31 +00:00
hewitt%netscape.com
581e4b2d66 #54073 - splitter, grippy, toolbar polish, r=andreww, a=ben
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80301 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 03:18:28 +00:00
morse%netscape.com
66b22d5077 bug 52674, changing url for privacy tutorial, r=dveditz,ben, a=verah,ben,dveditz,mcarlson,matt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80300 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:57:25 +00:00
morse%netscape.com
7a6903f144 bug 52674, changing url for privacy tutorial, r=dveditz,ben, a=verah,ben,dveditz,mcarlson,matt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80299 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:46:55 +00:00
mscott%netscape.com
2a5e662c99 Bug #51018, #44176 implement load group retargeting and stand alone progress window
after we show the helper app dialog. So progress and load information is
now retargeted to a stand alone window instead of re-using the underlying
browser / mail window...In order to do
this, the external app handler needed to implement nsIURIContentListener.
sr=r=rpotts, alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80298 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:35:36 +00:00
mscott%netscape.com
acb5c733d2 Bug #44176 --> support a ShowProgress method to launch a standalone
progress dialog. r=law, sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80297 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:34:43 +00:00
mscott%netscape.com
933cf57105 Bug #44176 --> implement a stand alone progress window after we show
the helper app dialog.
sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80296 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:32:40 +00:00
mscott%netscape.com
d9cf2c88dc Bug #44176 --> support a ShowProgress method to launch a standalone
progress dialog. most of this dialog was ripped from downloadProgress.js/.xul. after RTM,
we are going to properly merge the two files togther. This version implements
nsIWebProgressListener...
r=law, sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80295 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:31:56 +00:00
waterson%netscape.com
c0a26a869b Bug 54475. Apply r1.214 to the branch as well; don't mark leaf nodes as 'requiring more work'. r=rjc, sr=hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80294 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:31:47 +00:00
mscott%netscape.com
8a02d47b5f Bug #47203 --> force more code to use the helper app dialog.
sr=alecf


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80293 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:30:14 +00:00
mscott%netscape.com
2c05d325b1 Bug #47203 --> force more code to use the helper app dialog.
sr=alecf,rpotts


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80292 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:29:21 +00:00
pavlov%netscape.com
9938684ace patch from tor@cs.brown.edu to fix 52275 (has been on the trunk since 9/22) r=me,scc a=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80291 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:28:33 +00:00
rods%netscape.com
6d74c348e2 subtract off 2 point sizes for fonts for List and Button on Windows and make sure
it is zero or greater
r=attinasi, sr=buster


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80289 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:16:27 +00:00
rjc%netscape.com
ca4c0c301e Fix RTM++ bug # 54626: ftp dir resolution. r=waterson sr=gagan
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80288 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:06:54 +00:00
disttsc%bart.nl
48f2b0003b Bringing branch and trunk a bit closer. bug=52891 (xbl argument -> parameter, fixes arrow navigation in radio button groups), r=hyatt, a=rtm++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80287 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 02:05:53 +00:00
bienvenu%netscape.com
fd2a244a70 fix 54465 crash in libimg with null ic r=pnunn, sr=tor@cs.brown.edu
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80284 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 01:16:21 +00:00
bryner%uiuc.edu
6ab0ff4e6c Fix for bug 53723 (gray form controls on Linux). r=pierre, ianh, pavlov. sr/a=ben.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80283 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 00:42:28 +00:00
dp%netscape.com
623c125ae5 bug 54470 Deleting orphaned entries (no record associated with them)
rather than holding them forever in memory on evict.
r=neeti sr=rpotts


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80274 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-03 21:58:59 +00:00
locka%iol.ie
dcc32ca5b4 Fixes window.title property so that the frame window's titlebar is changed when the property changes. b=50682, r=mscott, a=mscott
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80265 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-03 14:34:40 +00:00
waterson%netscape.com
a9ee78bb30 Bug 46143, round three. Land r1.215 through r1.219 on the branch: factor funky attribute parsing logic into separate routine. Original patch r=rjc, sr=hyatt; this patch has additional platform fixes from self for gcc-2.7.2.3 and mkaply%us.ibm.com for OS/2
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80241 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-03 02:21:43 +00:00
brendan%mozilla.org
16334e26d6 Fix 51954, fixed on trunk already (a=jband, r=mccabe).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80238 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-03 01:55:13 +00:00
vishy%netscape.com
05fa8f8b39 I made a terrible mistake checking in a diff to the Seamonkey branch instead of Shrimp branch - fixing that right now
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80229 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-03 00:27:46 +00:00
vishy%netscape.com
2643b381fe Change branch variables to Shrimp branch
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80226 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-03 00:14:27 +00:00
attinasi%netscape.com
563b042bab Fix for rtm++ bug 51285: display set to block correctly now for floaters. r=karnaze@netscape.com, a=buster@netscape.com
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80225 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-02 23:55:00 +00:00
akkana%netscape.com
2a77fbe227 54449: disable delete-to-end on blank lines, because of bug 54452. r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80220 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-02 22:32:15 +00:00
mkaply%us.ibm.com
151a57c52c #54535
r=mkaply, a=phil@netscape.com
While this is in XP code, it is in an OS/2 only #ifdef
Code from jpedemonte to fix profile creation


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80144 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 13:51:11 +00:00
vidur%netscape.com
7387f8e396 Fix for bugscape bug 2533. onload event firing now happens *after* the last reflow command has been processed. a=waterson, r=nisheeth, pollmann, jst
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80138 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 06:22:09 +00:00
jst%netscape.com
c14b3cd843 This is av checking in from jst machine. Fix for 53451, adding return failure when plugin returns zero on NPP_WriteReady, r=waterson, a=av, r=jst
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80111 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 00:38:11 +00:00
brendan%mozilla.org
9bfee575bb Don't leave fp->sp above fp->spbase when returning, js_Invoke may GC on the way out (53123, r=mccabe, a=jband).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80109 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 00:13:25 +00:00
ben%netscape.com
dc23c855e1 fix for nsbeta3++ 52890, remove green boxes from HTML/titledbuttons, etc. r=dr, sr=alecf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80106 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 23:58:55 +00:00
mkaply%us.ibm.com
065c0187e3 #45474
r=mkaply, a=phil@netscape.com
This affects NO XP code - OS/2 only
Code from jkobal to fix OS/2 keyboard


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80102 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 23:22:26 +00:00
mkaply%us.ibm.com
0e687ff280 #53402
r=mkaply, a=phil@netscape.com
This affects NO XP code - OS/2 only
We had a really bad os2pref.js from 4.61


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80101 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 23:21:07 +00:00
hyatt%netscape.com
a6c2aa3926 fix for 53838, r,a=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80098 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 23:18:14 +00:00
waterson%netscape.com
d2df943d08 Bug 53353. Factor nsMemoryImpl create/destroy from flusher thread startup/shutdown. Avoids creation of second memory flusher thread after XPCOM shutdown. r=scc, sr=warren
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80097 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 23:17:49 +00:00
peterlubczynski%netscape.com
cecb3421b7 Deactivate double buffering for plugins plus fix up position and clip. bug 32327, bug 51787, bug 19931 bug 37126 r=sfraser,pchen a=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80096 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 23:04:54 +00:00
peterlubczynski%netscape.com
c4bc46f0ff Adds ability to turn off double buffering in view manager. bug 32327 r=kmcclusk a=roc+moz@cs.cmu.edu
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80087 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 22:20:51 +00:00
joki%netscape.com
5e11466ae5 Fix for bug 52212. Move current focused content pointer into a temp poiner before dispatching blur event so that reentrant events don't retrigger the blur. r: saari, vidur
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80086 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 22:06:24 +00:00
sgehani%netscape.com
5ec1f4ed4c Rename "Plugins" -> "Plug-ins"
b=53976
r=ssu
a=sfraser


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80083 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 21:56:15 +00:00
buster%netscape.com
29c90dc05d bug 53568 (HR's not given correct height, and height less than 2 causes very bad rendering on linux)
this fixes the horrible painting problems on linux on pages that have HR's
corrects some XP sizing mistakes with HR's
r=karnaze
a=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80082 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 21:45:26 +00:00
pnunn%netscape.com
fe5006aee1 bug#52390: chrome disappearance. r:hewitt(via 2 wks testing), a:gagan, r^:hyatt, a:pdt
Did I forget anyone?


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80081 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 21:45:00 +00:00
sgehani%netscape.com
251387bd2c Part of fix for "Plugins" -> "Plug-ins" for backward compatibility.
b=53976
r=ssu
a=sfraser,granrose


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80069 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 17:30:36 +00:00
ssu%netscape.com
62240fcaec fixing bug #53906 - updated Java 2 installer bits. sr=vishy, r=dveditz,sgehani. affects only windows platforms
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80064 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 11:01:41 +00:00
sgehani%netscape.com
6968c46cd5 Part of fix for "Plugins" -> "Plug-ins" for backward compatibility.
b=53976
r=ssu
a=sfraser


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80060 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 07:12:10 +00:00
bienvenu%netscape.com
e73babad8d turn off aol mailbox view on netcenter mail r=alecf 2366
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80057 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 06:23:38 +00:00
nisheeth%netscape.com
b9f1fe3740 r=pollmann. Fix for nsbeta3++ bug 48382. Fix for infinite loop on pages that set location.href in their onload handler.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80054 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 05:26:33 +00:00
matt%netscape.com
edda137a1a a/r/sr=ben
r=law
fix to bug 1827 taking debug category out or prefs
using hidden attr.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80052 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 05:08:37 +00:00
dveditz%netscape.com
95a85e0cc2 Bug 53845 make InstallTrigger.getVersion() work for SmartUpdate site. r=ssu,sr=mscott,a=pdt nsbeta3++
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80051 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 04:14:15 +00:00
saari%netscape.com
03924b6656 fix for 53760, xbl double firing key events. r=hyatt, a=hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80045 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 01:05:26 +00:00
hewitt%netscape.com
8d8217f2f4 #54107 - [Modern] stop menulists from being too small initially, r=andreww, a=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80043 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 00:38:05 +00:00
sfraser%netscape.com
4dd5dbd466 Fix for 52150; show caret in new composer/mail composer/AIM windows. If the editor is focussed on creation, show the caret instead of relying on a focus event. r, sr = kin,saari, hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80040 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 00:26:05 +00:00
sfraser%netscape.com
f237a60235 Fix for 52150; show caret in new composer/mail composer/AIM windows. Uncomment a line that supresses focus, because we can get window activation calls after editor sets up the caret, and these need to be suppressed. r, sr = saari, hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80039 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 00:24:57 +00:00
sgehani%netscape.com
dfc9755434 Fix display of selected directory in setup type dlg.
b=52739
r=ssu
a=vishy


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80037 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 23:55:24 +00:00
sfraser%netscape.com
e0a8c7639c (Whitespace checkin to correct last checkin comment).
Fix for bugzilla bug 54079, bugscape bug 2331. builtinURLs.js: renamed vars to avoid conflicts, fixed it not to rely on the SinkObserver being called each time (this was only called for the first window), and to throw rather than returning "".

utilityOverlay.js: fixes in openTopWin() to ensure that we always call xlateURL on URNs, and load about:blank if the url is still "" (should never happen).
r=ben,tao. sr=waterson.

Checked into trunk and branch.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80032 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 23:19:41 +00:00
sfraser%netscape.com
706c0b8a92 Fix for bug 54079: don't crash when loading XUL into the composer content area. Simple null check a=akkana, sr=brendan.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80027 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 23:02:25 +00:00
sfraser%netscape.com
f4f08a2f43 Fix for bugzilla bug 54079, bugscape bug 2331. builtinURLs.js only ever worked for the first window, because the XMLSinkObserver only got callbacks the first time. Fixed that by testing to see if the RDF data source is already loaded. Also protect against multiple sink observer registrations, and throw a JS exception rather than returning an empty string. Finally, renamed variables to avoid name conflicts.
utilityOverlay.js: fixes in openTopWin() to ensure that we always call xlateURL on URNs, and load about:blank if we somehow end up with an empty string (this should never happen). r=ben,tao. sr=waterson


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80026 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 23:00:10 +00:00
cls%seawood.org
bf82ae0a72 Unlink file before rename() ing it. Fixes OS/2 bustage. r=mkaply Bug 52476.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80025 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 22:51:54 +00:00
rhp%netscape.com
5cbde791d4 Fixing Crash bug 53258 - crash with inline image viewing - r: sspitzer - PDT approval
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80013 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 21:09:47 +00:00
neeti%netscape.com
0c005a204a fix for crasher nsbeta3++ bug 52818, r=dp,r/a=rpotts
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@80012 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 21:03:23 +00:00
nisheeth%netscape.com
ab08656612 r=joki. Switching off the "nglayout.events.showHierarchicalHover" pref by default. This was enabled late in the beta 3 cycle and is causing performance problems with mousing over chrome. No code change is required.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79996 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 06:21:35 +00:00
nisheeth%netscape.com
62649e7dbe Fix for nsbeta3++ bug 53219. Checking in for joki because he is away for a DOM face to face meeting today and tomorrow.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79995 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 05:57:35 +00:00
cls%seawood.org
94027bd902 Make build ids work on unix again. Bug #53559 r=jag a=jar && Make jar packaging obey posix cmdline limits bug #53881 r=daa@distributed.net
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79993 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 02:06:43 +00:00
akhil.arora%sun.com
89ab807257 fixes for making auto proxies work again (phase1) b=53080 r=gagan@netscape.com a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79991 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 01:51:49 +00:00
cmanske%netscape.com
c40bc595f4 Repairing code accidentally remove by subsequent checkin: b=53377, r=mjudge, a=sfraser
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79989 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 01:09:49 +00:00
(no author)
e8f9855ffb This commit was manufactured by cvs2svn to create branch
'Netscape_20000922_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79988 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 00:38:39 +00:00
andreww%netscape.com
29916b2694 bugzilla=53813, r=hewitt, a=hangas, fixing bad ref for prefpanels.css
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79985 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 00:11:14 +00:00
sspitzer%netscape.com
2cb76b9836 fix for nsbeta3++ bug #2203.
the problem was we were calling CreateIncomingServer() before the accounts were
loaded.  To solve this, I put a safe call to LoadAccounts() at the start of
CreateIncomingServer().

looking at the checkin logs, mscott made the same fix a while ago, but it got
overwritten by another change.

r/a=mscott


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79982 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 22:37:13 +00:00
nhotta%netscape.com
1dd1d6bdf6 Changed to delay unescaping URI so it's only applied to a folder path portsion, bug 52165, r=putterman, a=alecf.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79977 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 21:43:32 +00:00
attinasi%netscape.com
9d25eacbdd Checking for null-ptr before deref. b=53358 r=a=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79975 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 20:46:42 +00:00
jband%netscape.com
faf47ecc4d NOT PART OF BUILD. fixing tools bustage
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79970 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 10:24:36 +00:00
rjc%netscape.com
178fd37e1a Fix bug # 53835: use appropriate namespace. r=waterson sr=brendan
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79969 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 09:57:21 +00:00
hewitt%netscape.com
3f20a477c9 #53735 - [Modern] preventing toolbar buttons from stealing focus, r=andreww, a=hangas
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79965 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 06:22:46 +00:00
ssu%netscape.com
f3f1af7f45 fixing bugscape #2469 - setuprsc.dll contains windows extended dialogs. sr=vishy r=dveditz affects only windows platforms
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79963 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 05:23:00 +00:00
warren%netscape.com
1e758bb84b Bug 52111. Fix for race condition between file transport and async stream listener -- mStatus was temporarily getting set to WOULD_BLOCK. code=alex@cendio.se, r=warren
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79959 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 05:03:47 +00:00
waterson%netscape.com
d8596dcac2 Bug 53608. Avoid creating atoms in nsXULContentUtils. r,a=hyatt
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79956 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 03:54:44 +00:00
bienvenu%netscape.com
1bcbac076a check in fix for 52722 for Peter Lubczynski, r=buster
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79955 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 03:03:48 +00:00
warren%netscape.com
9cecbc05a2 Fixed REGCHROME to work when MOZ_DISABLE_JAR_PACKAGING is defined. r=waterson
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79953 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 02:21:41 +00:00
sfraser%netscape.com
5130f71356 Fix branch build scripts to not fail when pulling a clean tree, and to correctly generate installed-chome.txt when not using jar files.
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79952 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 02:20:57 +00:00
nhotta%netscape.com
67663cf00c Changed to escape folder name to prevent 8 bit data from bad conversions,
also changed to apply correct conversions (UTF-8 for RDF, OS native charset for file name),
bug 52165, r=putterman,ftang, a=alecf.


git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79951 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 00:16:54 +00:00
cls%seawood.org
67c762c7dd Turn off MONOLITHIC_TOOLKIT for Irix. Thanks to Robert Low <rob@adacel.com.au> for the patch. Bug #53471 r=cls a=brendan
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79932 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-24 02:25:20 +00:00
brendan%mozilla.org
93f03fabc4 Fix two distinct bugs with similar symptoms (53123, r=law, a=jband).
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79925 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-23 01:26:03 +00:00
leaf%mozilla.org
cf1c57c01d fixing erroneous tag name, r=granrose
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79924 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-23 00:39:29 +00:00
leaf%mozilla.org
89ea4aa412 mac gets to pull by the branch tag, too, even the security parts!
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79918 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 23:57:59 +00:00
mcafee%netscape.com
8c26cce4e8 Adding branch tags for Netscape_20000922_BRANCH. r=granrose,leaf
git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79917 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 23:55:14 +00:00
(no author)
b156cd8b9b This commit was manufactured by cvs2svn to create branch
'Netscape_20000922_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@79911 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 19:03:40 +00:00
20342 changed files with 3923913 additions and 104275 deletions

166
mozilla/Makefile.in Normal file
View File

@@ -0,0 +1,166 @@
#
# 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)
ifdef USE_ELF_DYNSTR_GC
DIRS += tools/elf-dynstr-gc
endif
else
DIRS = config build
ifdef USE_ELF_DYNSTR_GC
DIRS += tools/elf-dynstr-gc
endif
ifdef MOZ_L10N
DIRS += l10n
endif
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 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_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/appfilelocprovider \
modules/mpfilelocprovider \
security \
uriloader \
intl \
modules/libpref \
modules/libimg \
modules/oji \
modules/libjar \
caps \
expat \
htmlparser \
gfx \
modules/plugin \
dom \
view \
widget \
layout \
db \
rdf \
docshell \
webshell \
embedding \
editor \
sun-java \
profile \
themes \
$(NULL)
# This must preceed xpfe
ifdef MOZ_JPROF
DIRS += tools/jprof
endif
ifdef MOZ_BUILD_XPFE
DIRS += xpfe
endif
DIRS += xpinstall
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
endif # BUILD_MODULES == all
STATIC_MAKEFILES := $(NSPRPUB_DIR)
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 \
$(shell cat unallmakefiles) unallmakefiles \
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
include $(topsrcdir)/config/rules.mk

View File

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

12
mozilla/aclocal.m4 vendored Normal file
View File

@@ -0,0 +1,12 @@
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/libIDL.m4)dnl
dnl
define(MOZ_TOPSRCDIR,.)dnl MOZ_TOPSRCDIR is used in altoptions.m4
builtin(include, build/autoconf/altoptions.m4)dnl

1004
mozilla/allmakefiles.sh Executable file

File diff suppressed because it is too large Load Diff

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

@@ -0,0 +1,39 @@
#
# 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 ($(OS_ARCH),OS2)
DIRS = unix
endif
include $(topsrcdir)/config/rules.mk
# Install bloaturls.txt file for tinderbox Bloaty test.
install:: $(srcdir)/bloaturls.txt
$(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%^/%) {
$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,107 @@
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_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 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

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

File diff suppressed because it is too large Load Diff

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

File diff suppressed because it is too large Load Diff

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,279 @@
#! /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/";
$source_subdir =~ s|^$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%^/%) {
$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/;
s/\@top_srcdir\@/$top_srcdir/;
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,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,6 @@
http://www.mozilla.org
ftp://ftp.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 @@
0000000000

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,212 @@
#!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):
#
#
# build script (optimized)
#
use Mac::Processes;
use NGLayoutBuildList;
use Cwd;
use Moz;
#-----------------------------------------------
# configuration variables that globally affect what is built
#-----------------------------------------------
$DEBUG = 0;
$CARBON = 0; # turn on to build with TARGET_CARBON
$PROFILE = 0;
$GC_LEAK_DETECTOR = 0; # turn on to use GC leak detection
$INCLUDE_CLASSIC_SKIN = 1;
$pull{all} = 0;
$pull{moz} = 0;
$pull{runtime} = 0;
$build{all} = 1; # turn off to do individual builds, or to do "most"
$build{most} = 0; # turn off to do individual builds
$build{dist} = 0;
$build{dist_runtime} = 0; # implied by $build{dist}
$build{xpidl} = 0;
$build{idl} = 0;
$build{stubs} = 0;
$build{runtime} = 0;
$build{common} = 0;
$build{imglib} = 0;
$build{necko} = 0;
$build{security} = 0;
$build{browserutils} = 0;
$build{intl} = 0;
$build{nglayout} = 0;
$build{editor} = 0;
$build{viewer} = 0;
$build{xpapp} = 0;
$build{extensions} = 1;
$build{plugins} = 0;
$build{mailnews} = 0;
$build{apprunner} = 0;
$build{resources} = 1;
$build{xptlink} = 0;
$options{transformiix} = 0;
$options{mathml} = 0;
$options{svg} = 0;
$options{mng} = 1;
$options{ldap} = 0;
$options{xmlextras} = 0;
# -------------------------- Chrome and jar-related options -----------------------------------------
$options{jar_manifests} = 1; # use jar.mn files for resources, not MANIFESTs. This must be ON,
# unless you want to use the obsolete (and probably bitrotted)
# MANIFEST files to install resources.
# These two options determine whether you get jar files, or loose files in chrome.
# Either one or both option must be turned on.
$options{chrome_jars} = 1; # build jar files
$options{chrome_files} = 0; # install regular files in chrome
$options{use_jars} = 1; # This option determines whether chrome comes out of jars
# or regular files at runtime (by affecting installed-chrome.txt).
# If 1, $options{chrome_jars} must be 1.
# ------------------------ End chrome and jar-related options ----------------------------------------
# Don't change these (where should they go?)
$optiondefines{mathml}{MOZ_MATHML} = 1;
$optiondefines{svg}{MOZ_SVG} = 1;
#-----------------------------------------------
# configuration variables that affect the manner
# of building, but possibly affecting
# the outcome.
#-----------------------------------------------
$ALIAS_SYM_FILES = $DEBUG;
$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 $build{dist} turned on),
# but leave the directory structure intact.
$CLOBBER_DIST_ALL = 1; # turn on to clobber all aliases/files inside dist (headers/xsym/libs)
$CLOBBER_DIST_LIBS = 0; # turn on to clobber only aliases/files for libraries/sym files in dist
$CLOBBER_IDL_PROJECTS = 0; # turn on to clobber all IDL projects.
#-----------------------------------------------
# configuration variables that are preferences for the build style,
# and do not affect what is built.
#-----------------------------------------------
$CodeWarriorLib::CLOSE_PROJECTS_FIRST
= 0;
# 1 = close then make (for development),
# 0 = make then close (for tinderbox).
$USE_TIMESTAMPED_LOGS = 0;
#-----------------------------------------------
# END OF CONFIG SWITCHES
#-----------------------------------------------
if ($pull{all})
{
foreach $k (keys(%pull))
{
$pull{$k} = 1;
}
}
if ($build{all})
{
foreach $k (keys(%build))
{
$build{$k} = 1;
}
}
if ($build{most})
{
### Just uncomment/comment to get the ones you want (if "most" is selected).
# $build{dist} = 0;
# $build{dist_runtime} = 0; # Implied by $build{dist}
# $build{xpidl} = 0;
# $build{idl} = 0;
# $build{stubs} = 0;
# $build{runtime} = 1;
# $build{common} = 1;
# $build{imglib} = 1;
# $build{necko} = 1;
# $build{security} = 1;
# $build{browserutils} = 1;
# $build{intl} = 1;
# $build{nglayout} = 1;
# $build{editor} = 1;
# $build{viewer} = 1;
# $build{xpapp} = 1;
# $build{extensions} = 1;
# $build{plugins} = 1;
# $build{mailnews} = 1;
# $build{apprunner} = 1;
# $build{resources} = 0;
}
# do the work
# you should not have to edit anything below
chdir("::::");
$MOZ_SRC = cwd();
if ($USE_TIMESTAMPED_LOGS)
{
#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
my $logdir = ":Build Logs:";
if (!stat($logdir))
{
print "Creating directory $logdir\n";
mkdir $logdir, 0777 || die "Couldn't create directory $logdir";
}
OpenErrorLog("$logdir$now");
}
else
{
OpenErrorLog("NGLayoutBuildLog"); # Release build requires that name
#OpenErrorLog("Mozilla.BuildLog"); # Tinderbox requires that name
}
Moz::StopForErrors();
#Moz::DontStopForErrors();
Checkout();
ConfigureBuildSystem();
my(@gen_files) = (
":mozilla:xpfe:appshell:public:nsBuildID.h",
":mozilla:xpfe:browser:resources:locale:en-US:navigator.dtd"
);
SetBuildNumber(":mozilla:config:build_number", ":mozilla:config:aboutime.pl", \@gen_files);
chdir($MOZ_SRC);
BuildDist();
chdir($MOZ_SRC);
BuildProjects();
print "Build complete\n";

View File

@@ -0,0 +1,203 @@
#!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):
#
#
# build script (debug)
#
use Mac::Processes;
use NGLayoutBuildList;
use Cwd;
use Moz;
$DEBUG = 1;
$CARBON = 0; # Turn on to build with TARGET_CARBON
$PROFILE = 0;
$GC_LEAK_DETECTOR = 0; # turn on to use GC leak detection
$INCLUDE_CLASSIC_SKIN = 1;
$pull{all} = 0;
$pull{moz} = 0;
$pull{runtime} = 0;
$build{all} = 1; # Turn off to do individual builds, or to do "most"
$build{most} = 0; # Turn off to do individual builds
$build{dist} = 0;
$build{dist_runtime} = 0; # Implied by $build{dist}
$build{xpidl} = 0;
$build{idl} = 0;
$build{stubs} = 0;
$build{runtime} = 0;
$build{common} = 0;
$build{imglib} = 0;
$build{necko} = 0;
$build{security} = 0;
$build{browserutils} = 0;
$build{intl} = 0;
$build{nglayout} = 0;
$build{editor} = 0;
$build{viewer} = 0;
$build{xpapp} = 0;
$build{extensions} = 1;
$build{plugins} = 0;
$build{mailnews} = 0;
$build{apprunner} = 0;
$build{resources} = 1;
$build{xptlink} = 0;
$options{transformiix} = 0;
$options{mathml} = 0;
$options{svg} = 0;
$options{mng} = 1;
$options{ldap} = 0;
$options{xmlextras} = 0;
# -------------------------- Chrome and jar-related options -----------------------------------------
$options{jar_manifests} = 1; # use jar.mn files for resources, not MANIFESTs. This must be ON,
# unless you want to use the obsolete (and probably bitrotted)
# MANIFEST files to install resources.
# These two options determine whether you get jar files, or loose files in chrome.
# Either one or both option must be turned on.
$options{chrome_jars} = 1; # build jar files
$options{chrome_files} = 0; # install regular files in chrome
$options{use_jars} = 1; # This option determines whether chrome comes out of jars
# or regular files at runtime (by affecting installed-chrome.txt).
# If 1, $options{chrome_jars} must be 1.
# ------------------------ End chrome and jar-related options ----------------------------------------
# Don't change these (where should they go?)
$optiondefines{mathml}{MOZ_MATHML} = 1;
$optiondefines{svg}{MOZ_SVG} = 1;
#-----------------------------------------------
# configuration variables that affect the manner
# of building, but possibly affecting
# the outcome.
#-----------------------------------------------
$ALIAS_SYM_FILES = $DEBUG;
$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 $build{dist} turned on),
# but leave the directory structure intact.
$CLOBBER_DIST_ALL = 1; # turn on to clobber all aliases/files inside dist (headers/xsym/libs)
$CLOBBER_DIST_LIBS = 0; # turn on to clobber only aliases/files for libraries/sym files in dist
$CLOBBER_IDL_PROJECTS = 0; # turn on to clobber all IDL projects.
#-----------------------------------------------
# configuration variables that are preferences for the build style,
# and do not affect what is built.
#-----------------------------------------------
$CodeWarriorLib::CLOSE_PROJECTS_FIRST
= 1;
# 1 = close then make (for development),
# 0 = make then close (for tinderbox).
$USE_TIMESTAMPED_LOGS = 1;
#-----------------------------------------------
# END OF CONFIG SWITCHES
#-----------------------------------------------
if ($pull{all})
{
foreach $k (keys(%pull))
{
$pull{$k} = 1;
}
}
if ($build{all})
{
foreach $k (keys(%build))
{
$build{$k} = 1;
}
}
if ($build{most})
{
### Just uncomment/comment to get the ones you want (if "most" is selected).
# $build{dist} = 1;
# $build{dist_runtime}= 1;
$build{xpidl} = 1; # build idl compiler
$build{idl} = 1;
$build{stubs} = 1;
$build{runtime} = 1;
$build{common} = 1;
$build{imglib} = 1;
$build{necko} = 1;
$build{security} = 1;
$build{browserutils} = 1;
$build{intl} = 1;
$build{nglayout} = 1;
$build{editor} = 1;
$build{viewer} = 1;
$build{xpapp} = 1;
$build{extensions} = 1;
$build{plugins} = 1;
$build{mailnews} = 1;
$build{apprunner} = 1;
$build{resources} = 1;
}
# do the work
# you should not have to edit anything below
chdir("::::");
$MOZ_SRC = cwd();
if ($USE_TIMESTAMPED_LOGS)
{
#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
my $logdir = ":Build Logs:";
if (!stat($logdir))
{
print "Creating directory $logdir\n";
mkdir $logdir, 0777 || die "Couldn't create directory $logdir";
}
OpenErrorLog("$logdir$now");
}
else
{
OpenErrorLog("NGLayoutBuildLog"); # Release build
#OpenErrorLog("Mozilla.BuildLog"); # Tinderbox requires that name
}
Moz::StopForErrors();
#Moz::DontStopForErrors();
Checkout();
ConfigureBuildSystem();
chdir($MOZ_SRC);
BuildDist();
chdir($MOZ_SRC);
BuildProjects();
print "Build complete\n";

View File

@@ -0,0 +1,476 @@
#!perl
package 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();
# 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;
# 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 activate()
Launches CodeWarrior and brings it to the front.
Once found, path will be saved in ':idepath.txt' 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 () {
local(*F);
my($filepath, $appath, $psi) = (':idepath.txt');
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;
}
#call WNE to allow launch/switch to happen
WaitNextEvent();
WaitNextEvent();
WaitNextEvent();
}
=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 _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
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 "";
}
open(F, $filepath);
my($appath) = <F>;
close(F);
chdir($cwd); # restore the cwd
return($appath);
}
sub _test ($) {
activate();
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

BIN
mozilla/build/mac/GenToc Normal file

Binary file not shown.

View File

@@ -0,0 +1,264 @@
(*
*
* 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):
*)
(*
GenToc - Generates a .toc file from the current contents of a project.
by Patrick C. Beard <beard@netscape.com>
*)
on swapDelimiters(newDelimiters)
set oldDelimiters to get AppleScript's text item delimiters
set AppleScript's text item delimiters to newDelimiters
return oldDelimiters
end swapDelimiters
on setDelimiters(newDelimiters)
set AppleScript's text item delimiters to newDelimiters
end setDelimiters
on setExtension(fileName, newExtension)
set oldDelimiters to swapDelimiters(".")
set newFileName to (text item 1 of fileName) & newExtension
setDelimiters(oldDelimiters)
return newFileName
end setExtension
on folderFromPath(filePath)
set folderPath to ((filePath's text items 1 thru ((count of filePath's text items) - 1)) as string) & ":"
return folderPath
end folderFromPath
on fileFromPath(filePath)
return last text item of filePath
end fileFromPath
on openProject(aProjectFile)
tell application "CodeWarrior IDE 3.3"
open aProjectFile
end tell
end openProject
on selectProject(aProjectFile)
set projectName to fileFromPath(aProjectFile as text)
tell application "CodeWarrior IDE 3.3"
if (name of window 1 is not projectName) then
select window projectName
end if
end tell
end selectProject
on getTargets()
set targetList to {}
set nameList to {}
tell application "CodeWarrior IDE 3.3"
set currentProject to project document 1
repeat with targetIndex from 1 to (count of targets of currentProject)
set currentTarget to (target targetIndex of currentProject)
set targetList to targetList & {currentTarget}
set nameList to nameList & {name of currentTarget}
end repeat
return {target:targetList, names:nameList}
end tell
end getTargets
(* uses "sort" scripting addition to sort a list of strings. *)
on sortList(aList)
if (aList ­ {}) then
return sort aList
else
return {}
end if
end sortList
(* uses "info for" scripting addition, to return the file type of a path. *)
on getFileType(aFilePath)
return file type of (info for alias aFilePath)
end getFileType
(* returns all "TEXT" files of the named target. *)
on getTargetFiles(targetKey)
set targetFiles to {}
tell application "CodeWarrior IDE 3.3"
set currentProject to project document 1
set currentTarget to (target targetKey of currentProject)
try
-- workaround for CW IDE 3.X bug, loop until error encountered.
set fileIndex to 1
repeat until false
set targetFile to (target file fileIndex of currentTarget)
-- only consider text files, since other platforms won't be managing binaries.
-- also, only consider if target file is directly linked.
if (linked of targetFile) then
set targetFilePath to (Access Paths of targetFile)
tell me
if (getFileType(targetFilePath) = "TEXT") then
set targetFiles to targetFiles & {targetFilePath}
end if
end tell
end if
set fileIndex to (fileIndex + 1)
end repeat
on error msg
-- display dialog msg & " file count = " & fileIndex
end try
end tell
return sortList(targetFiles)
end getTargetFiles
on addTargetFile(targetFile, targetName)
tell application "CodeWarrior IDE 3.3"
add (project document 1) new target file with data {targetFile} to targets {targetName}
end tell
end addTargetFile
on setCurrentTarget(currentTargetName)
tell application "CodeWarrior IDE 3.3"
Set Current Target currentTargetName
end tell
end setCurrentTarget
on removeTargetFile(targetFile)
tell application "CodeWarrior IDE 3.3"
Remove Files {targetFile}
end tell
end removeTargetFile
on quote(aString)
return "'" & aString & "'"
end quote
on listContains(aList, anItem)
repeat with listItem in aList
if (listItem contains anItem) then
return true
end if
end repeat
return false
end listContains
on showList(listToShow)
choose from list listToShow with prompt "List:" with empty selection allowed
end showList
on replace(aString, oldChar, newChar)
set newString to ""
repeat with aChar in (every character of aString)
if (contents of aChar = oldChar) then
set newString to newString & newChar
else
set newString to newString & aChar
end if
end repeat
return newString
end replace
on substring(aString, anOffset)
set aSubString to ""
repeat with charIndex from anOffset to (count aString)
set aSubString to aSubString & (character charIndex of aString)
end repeat
return aSubString
end substring
on setFileInfo(aFile, aCreator, aType)
tell application "Finder"
set creator type of aFile to aCreator
set file type of aFile to aType
end tell
end setFileInfo
on closeFile(fileRef)
try
-- make sure it's not currently open.
close access fileRef
on error
-- ignore error closing.
end try
end closeFile
on mroFile(aFile)
try
-- make sure it's modifiable.
mro aFile
on error
-- ignore error MROing.
end try
end mroFile
on run
-- so we can easily strip off file names from paths.
set oldDelimiters to swapDelimiters(":")
set theProjectFile to (choose file with prompt "Choose a CW Project file." of type {"MMPr"})
set theManifestFile to (new file with prompt "Create MANIFEST where?" default name setExtension(fileFromPath(theProjectFile as text), ".toc"))
set manifestRef to false
try
-- make sure the file is closed & is modifiable.
closeFile(theManifestFile)
mroFile(theManifestFile)
-- open the new MANIFEST file.
set manifestRef to (open for access theManifestFile with write permission)
set eof manifestRef to 0
-- give it CodeWarrior look and feel.
setFileInfo(theManifestFile, "CWIE", "TEXT")
openProject(theProjectFile)
selectProject(theProjectFile)
set targetsList to getTargets()
set targetNames to names of targetsList
set targetCount to count items of targetNames
set mozillaTreePathOffset to (offset of "mozilla" in (theManifestFile as text))
-- dump all targets into the new MANIFEST file.
repeat with targetName in targetNames
write ("# target: " & targetName & return) to manifestRef
setCurrentTarget(targetName)
set targetFiles to getTargetFiles(contents of targetName)
repeat with targetFile in targetFiles
-- only store the path name relative to the source tree itself.
set targetFilePath to substring(contents of targetFile, mozillaTreePathOffset)
write (replace(targetFilePath, ":", "/") & return) to manifestRef
end repeat
end repeat
on error msg
display dialog msg
end try
if (manifestRef is not false) then
closeFile(manifestRef)
end if
-- shut the project down, and display the result.
tell application "CodeWarrior IDE 3.3"
activate
Close Project
open theManifestFile
end tell
setDelimiters(oldDelimiters)
end run

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 off /* 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,222 @@
#!perl -w
package MANIFESTO;
require 5.004;
require Exporter;
#use strict;
use vars qw($VERSION @ISA @EXPORT $MANIFESTOLib);
use Mac::StandardFile;
use Moz;
use Cwd;
use Exporter;
use File::Basename;
@ISA = qw(Exporter);
@EXPORT = qw(ReconcileProject);
$VERSION = "1.00";
=head1 NAME
MANIFESTO - drives the Mac Project Reconciliation tool.
=head1 SYNOPSIS
You want to use this script. It will make your life easier.
=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
#
# globals
# $MANIFESTOLib - location of MANIFESTO applescript library
#
#
# utility routines
#
sub current_directory()
{
my $current_directory = cwd();
chop($current_directory) if ( $current_directory =~ m/:$/ );
return $current_directory;
}
# Uses the "compile script" extension to compile a script.
sub compile_script($;$) {
my($scriptPath, $outputPath) = @_;
#// generate a script to compile a script file.
my $script = <<END_OF_APPLESCRIPT;
store script (compile script (alias "$scriptPath")) in (file "$outputPath") replacing yes
END_OF_APPLESCRIPT
#// run the script.
MacPerl::DoAppleScript($script);
}
# _useMANIFESTOLib()
# returns 1 on success
# Search the include path for the file called MANIFESTOLib
sub _useMANIFESTOLib()
{
unless ( defined($MANIFESTOLib) )
{
my($scriptName) = "MANIFESTOLib.script";
my($libName) = "MANIFESTOLib";
# try the directory we were run from
my($scriptPath) = dirname($0) . ":" . $scriptName;
my($libPath) = dirname($0) . ":" . $libName;
# make sure that the compiled script is up to date with the textual script.
unless (-e $libPath && getModificationDate($libPath) >= getModificationDate($scriptPath)) {
print "# Recompiling MANIFESTOLib.script.\n";
compile_script($scriptPath, $libPath);
}
if ( -e $libPath) {
$MANIFESTOLib = $libPath;
} else {
# now search the include directories
foreach (@INC)
{
unless ( m/^Dev:Pseudo/ ) # This is some bizarre MacPerl special-case directory
{
$libPath = $_ . $libName;
if (-e $libPath)
{
$MANIFESTOLib = $libPath;
last;
}
}
}
}
if (! (-e $MANIFESTOLib)) {
print STDERR "MANIFESTOLib lib could not be found! $MANIFESTOLib";
return 0;
}
}
return 1;
}
sub getModificationDate($) {
my($filePath)=@_;
my($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks) = stat($filePath);
return $mtime;
}
sub setExtension($;$;$) {
my($filePath, $oldExtension, $newExtension)=@_;
my($name, $dir, $type) = fileparse($filePath, $oldExtension);
return "$dir$name$newExtension";
}
#
# ReconcileProject(projectPath, manifestoPath)
#
# Uses MANIFESTOLib AppleScript to reconcile the contents (toc?) of a
# CodeWarrior project with an external MANIFEST file.
#
sub ReconcileProject($;$) {
#// turn this feature on by removing the following line.
return 1;
my($projectPath, $manifestoPath) = @_;
my($sourceTree) = current_directory();
my($logPath) = setExtension($manifestoPath, ".toc", ".log");
print STDERR "# Reconciling Project: $projectPath with $manifestoPath\n";
#// compare the modification dates of the .toc and .log files. If .log is newer, do nothing.
if (-e $logPath && getModificationDate($logPath) >= getModificationDate($manifestoPath)) {
print "# Project is up to date.\n";
return 1;
}
_useMANIFESTOLib() || die "Could not load MANIFESTOLib\n";
my $script = <<END_OF_APPLESCRIPT;
tell (load script file "$MANIFESTOLib") to ReconcileProject("$sourceTree:", "$sourceTree$projectPath", "$sourceTree$manifestoPath")
END_OF_APPLESCRIPT
#// run the script, and store the results in a file called "$manifestoPath.log"
my $asresult = substr(MacPerl::DoAppleScript($script), 1, -1); #// chops off leading, trailing quotes.
#// print out to STDOUT to show progress.
print $asresult;
#// store the results in "$manifestoPath.log", which will act as a cache for later checks.
open(OUTPUT, ">$logPath") || die "can't open log file $logPath.";
print OUTPUT $asresult;
close(OUTPUT);
return 1;
}
1;
=pod
=head1 NAME
MANIFESTO - Scripts to process source .toc files.
=head1 SYNOPSIS
use MANIFESTO;
ReconcileProject(<path to Mac project file>, <path to table of contents file>) || die "cannot reconcile project";
=head1 DESCRIPTION
This is a PERL interface for talking to MANIFESTOLib AppleScripts.
=item ReconcileProject
ReconcileProject(<path to Mac project file>, <path to table of contents file>);
Reconciles the contents of a project with an external .toc file.
=cut
=head1 SEE ALSO
=over
=item MacCVS Home Page
http://www.maccvs.org/
=back
=head1 AUTHORS
Patrick Beard beard@netscape.com
based on work by
Aleks Totic atotic@netscape.com
=cut
__END__

Binary file not shown.

View File

@@ -0,0 +1,376 @@
(*
*
* 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):
*)
(*
MANIFESTOLib - Reconciles a CW Project file with an external table of contents file.
Uses merge sort, one pass per target.
by Patrick C. Beard <beard@netscape.com>
*)
(* Global Configuration Properties *)
property pShowReport : true
-- property pSourceTree : "Homeward:Work:Raptor:src:"
property pSourceTree : "Morbeus:Projects:Raptor:src:"
on swapDelimiters(newDelimiters)
set oldDelimiters to get AppleScript's text item delimiters
set AppleScript's text item delimiters to newDelimiters
return oldDelimiters
end swapDelimiters
on setDelimiters(newDelimiters)
set AppleScript's text item delimiters to newDelimiters
end setDelimiters
-- replaces oldChar with newChar in a string.
on replace(aString, oldChar, newChar)
set newString to ""
repeat with aChar in (every character of aString)
if (contents of aChar = oldChar) then
set newString to newString & newChar
else
set newString to newString & aChar
end if
end repeat
return newString
end replace
(* uses "sort" scripting addition to sort a list of strings. *)
on sortList(aList)
if (aList ­ {}) then
return sort aList
else
return {}
end if
end sortList
-- reads .toc file into a list.
on readManifestFile(sourceTree, manifestFile)
set oldDelimiters to swapDelimiters(return)
set fileRef to false
set fileLines to {}
try
set fileRef to (open for access manifestFile without write permission)
-- read entire file into memory, use text items to delimit lines.
set fileContents to (read fileRef)
repeat with lineRef in (every text item of fileContents)
-- ignore lines that start with "#" or are empty.
set fileLine to (contents of lineRef)
if (fileLine ­ "") and not (fileLine starts with "#") then
set fileLines to fileLines & (sourceTree & replace(fileLine, "/", ":"))
end if
end repeat
on error
-- ignore errors.
end try
if (fileRef is not false) then close access fileRef
setDelimiters(oldDelimiters)
return sortList(fileLines)
end readManifestFile
(* both of the following depend on ":" as the delimiter character. *)
on folderFromPath(filePath)
return ((filePath's text items 1 thru ((count of filePath's text items) - 1)) as string) & ":"
end folderFromPath
on fileFromPath(filePath)
return last text item of filePath
end fileFromPath
(* CW Pro IDE Interface Handlers. *)
on openProject(aProjectFile)
tell application "CodeWarrior IDE 3.3"
-- activate
open aProjectFile
end tell
end openProject
(* forces the named project file to be the front window. *)
on selectProject(aProjectFile)
set projectName to fileFromPath(aProjectFile as text)
tell application "CodeWarrior IDE 3.3"
if (name of window 1 is not projectName) then
select window projectName
end if
end tell
end selectProject
on closeProject(aProjectFile)
tell application "CodeWarrior IDE 3.3"
Close Project
end tell
end closeProject
on getTargets()
set targetList to {}
set nameList to {}
tell application "CodeWarrior IDE 3.3"
set currentProject to project document 1
repeat with targetIndex from 1 to (count of targets of currentProject)
set currentTarget to (target targetIndex of currentProject)
set targetList to targetList & {currentTarget}
set nameList to nameList & {name of currentTarget}
end repeat
return {target:targetList, names:nameList}
end tell
end getTargets
(* uses "info for" scripting addition, to return the file type of a path. *)
on getFileType(aFilePath)
return file type of (info for alias aFilePath)
end getFileType
(* returns all "TEXT" files of the named target. *)
on getTargetFiles(targetKey)
set targetFiles to {}
tell application "CodeWarrior IDE 3.3"
set currentProject to project document 1
set currentTarget to (target targetKey of currentProject)
try
-- workaround for CW IDE 3.X bug, loop until error encountered.
set fileIndex to 1
repeat until false
set targetFile to (target file fileIndex of currentTarget)
-- only consider text files, since other platforms won't be managing binaries.
-- also, only consider if target file is directly linked.
if (linked of targetFile) then
set targetFilePath to (Access Paths of targetFile)
tell me
if (getFileType(targetFilePath) = "TEXT") then
set targetFiles to targetFiles & {targetFilePath}
end if
end tell
end if
set fileIndex to (fileIndex + 1)
end repeat
on error msg
-- display dialog msg & " file count = " & fileIndex
end try
end tell
return sortList(targetFiles)
end getTargetFiles
on addTargetFile(targetFile, targetList)
tell application "CodeWarrior IDE 3.3"
add (project document 1) new target file with data {targetFile} to targets targetList
end tell
end addTargetFile
global gCurrentTarget
on setCurrentTarget(currentTargetName)
if (gCurrentTarget ­ currentTargetName) then
set gCurrentTarget to currentTargetName
tell application "CodeWarrior IDE 3.3"
Set Current Target currentTargetName
end tell
end if
end setCurrentTarget
on removeTargetFile(targetFile)
tell application "CodeWarrior IDE 3.3"
Remove Files {targetFile}
end tell
end removeTargetFile
on quote(aString)
return "'" & aString & "'"
end quote
on listContains(aList, anItem)
repeat with listItem in aList
if (contents of listItem = anItem) then
return true
end if
end repeat
return false
end listContains
on showList(aList)
choose from list aList with prompt "List:" with empty selection allowed
end showList
global gProjectModified
on ModifyReadOnly(aProjectFile)
if (not gProjectModified) then
set gProjectModified to true
-- so CodeWarrior will notice, must close the file before MROing it.
closeProject(aProjectFile)
mro aProjectFile
openProject(aProjectFile)
selectProject(aProjectFile)
end if
end ModifyReadOnly
on makeStream(itemList)
return {streamList:itemList, streamCount:count itemList, streamIndex:0}
end makeStream
(* true is used as the end of stream value. *)
property pEOS : true
on advanceStream(stream)
set itemCount to (streamCount of stream)
set itemIndex to (streamIndex of stream)
if (itemIndex < itemCount) then
set itemIndex to (itemIndex + 1)
set (streamIndex of stream) to itemIndex
return (item itemIndex of streamList of stream)
else
return pEOS
end if
end advanceStream
-- returns true if str2 is INFINITELY great, or str1 is less than str2.
on precedes(str1, str2)
return (str2 = pEOS) or ((str1 ­ pEOS) and (str1 < str2))
end precedes
on get_current_application()
return last text item of ((path to current application) as text)
end get_current_application
on get_frontmost_application()
return last text item of ((path to frontmost application) as text)
end get_frontmost_application
on activate_application(applicationName)
tell application "Finder"
set applicationProcess to (application process applicationName)
set frontmost of applicationProcess to true
end tell
end activate_application
on ReconcileProject(sourceTree, projectPath, manifestoPath)
-- so we can easily strip off file names from paths.
set oldDelimiters to swapDelimiters(":")
-- initialize globals.
set gCurrentTarget to ""
set gProjectModified to false
-- convert paths to aliases.
set projectFile to alias projectPath
set manifestFile to alias manifestoPath
-- read the MANIFESTO file into a list of paths.
set manifestContents to readManifestFile(sourceTree, manifestFile)
-- return manifestContents
-- now, start processing the file items, ensuring that the project contains all items.
openProject(projectFile)
selectProject(projectFile)
set targetsList to getTargets()
set targetNames to names of targetsList
if (pShowReport) then
set theReport to ""
set addedFiles to ""
set removedFiles to ""
end if
-- push current application to front for speed.
-- set frontmostApplication to get_frontmost_application()
-- set currentApplication to get_current_application()
-- activate_application(currentApplication)
-- reconcile all targets with the MANIFEST file.
-- this loop should be recoded in PERL for speed.
-- IDEA: with sorted lists, can scan both lists, like a merge sort, and make one pass per target.
repeat with targetNameRef in targetNames
-- switch targets because getTargetFiles now checks to see if file is linked in current target.
set targetName to (contents of targetNameRef)
set targetFiles to getTargetFiles(targetName)
-- hopefully, this list test is fast.
if (targetFiles ­ manifestContents) then
-- return {count targetFiles, count manifestContents, targetFiles, manifestContents}
-- make sure the project file is modifiable.
ModifyReadOnly(projectFile)
setCurrentTarget(targetName)
set targetStream to makeStream(targetFiles)
set targetItem to advanceStream(targetStream)
set manifestStream to makeStream(manifestContents)
set manifestItem to advanceStream(manifestStream)
repeat until (manifestItem is pEOS) and (targetItem is pEOS)
-- display dialog "m: " & manifestItem & ", t: " & targetFileItem
if (manifestItem = targetItem) then
-- items match, advance both.
set manifestItem to advanceStream(manifestStream)
set targetItem to advanceStream(targetStream)
else
-- return {manifestItem, targetItem}
if (precedes(manifestItem, targetItem)) then
-- we have an item in manifest, not in project, so we have to add it to the targets.
-- display dialog "adding " & manifestItem
addTargetFile(manifestItem, targetNames)
if pShowReport then
set addedFiles to addedFiles & ("# " & (last text item of manifestItem) & return)
end if
set manifestItem to advanceStream(manifestStream)
else
-- we have an item not in manifest, but in project, so it must be removed from this target.
-- display dialog "removing " & targetItem
removeTargetFile(targetItem)
if pShowReport then
set removedFiles to removedFiles & ("# " & targetName & " - " & (last text item of targetItem) & return)
end if
set targetItem to advanceStream(targetStream)
end if
end if
end repeat
end if
end repeat
-- activate_application(frontmostApplication)
-- commit the project changes, and optionally display a report.
tell application "CodeWarrior IDE 3.3"
-- leave project open for compilation phase?
Close Project
if pShowReport then
if addedFiles is not "" then set theReport to ("# Added files: " & return & addedFiles)
if removedFiles is not "" then set theReport to theReport & ("# Removed files: " & return & removedFiles)
if (theReport is "") then set theReport to (" # Project is up to date." & return)
-- display dialog theReport buttons {"OK"} default button "OK"
end if
end tell
-- restore AppleScript's delimiters.
setDelimiters(oldDelimiters)
-- return 0 to indicate no error.
return theReport
end ReconcileProject
on run
-- when run interactively,
-- ask user which project/MANIFEST files to use.
set projectPath to (choose file with prompt "Choose a CW Project file." of type {"MMPr"}) as text
set manifestPath to (choose file with prompt "Choose a TOC file to process." of type {"TEXT"}) as text
ReconcileProject(pSourceTree, projectPath, manifestPath)
end run

204
mozilla/build/mac/MacCVS.pm Normal file
View File

@@ -0,0 +1,204 @@
#!perl -w
package 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 vars qw($VERSION @ISA @EXPORT $MacCVSLib);
use Mac::StandardFile;
use Moz;
use Cwd;
use Exporter;
use File::Basename;
@ISA = qw(Exporter);
@EXPORT = qw( new print checkout);
$VERSION = "1.00";
# 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
{
print STDERR "AppleScript error: $asresult\n";
print STDERR "AppleScript was: \n $script \n";
return 0;
}
}
# _useMacCVSLib
# returns 1 on success
# Search the include path for the file called MacCVSLib
sub _useMacCVSLib()
{
unless ( defined($MacCVSLib) )
{
my($libname) = "MacCVSLib";
# try the directory we were run from
my($c) = dirname($0) . ":" . $libname;
if ( -e $c)
{
$MacCVSLib = $c;
}
else
{
# 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;
last;
}
}
}
}
if (! (-e $MacCVSLib))
{
print STDERR "MacCVS lib could not be found! $MacCVSLib";
return 0;
}
}
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 failure
sub assertSessionOpen() {
my ($self) = shift;
_useMacCVSLib() || die "Could not load MacCVSLib\n";
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;
print "MacCVS:: name: ", $self->{name}, " session file: ", $self->{session_file}, "\n";
}
# checkout( self, module, revision, date)
# MacCVS checkout command
# returns 1 on failure
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 = ""; }
$self->assertSessionOpen() || return 1;
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);
}
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__

BIN
mozilla/build/mac/MacCVSLib Normal file

Binary file not shown.

View File

@@ -0,0 +1,146 @@
#!perl -w
# make-jars [-d <destPath>] < <manifest.jr>
package MozJar;
require 5.004;
use strict;
use Cwd;
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
use Moz;
use vars qw( @ISA @EXPORT );
@ISA = qw(Exporter);
@EXPORT = qw(ProcessJarManifest);
sub _addToJar($$$$$)
{
my($thing, $srcPath, $jarManDir, $zip, $compress) = @_;
#print "_addToJar($thing, $srcPath, $jarManDir, $zip, $compress)\n";
my $existingMember = $zip->memberNamed($thing);
if ($existingMember) {
my $modtime = $existingMember->lastModTime();
print "already have $thing at $modtime\n"; # XXX need to check mod time here!
return 0;
}
my $filepath = "$jarManDir:$srcPath";
$filepath =~ s|/|:|g;
if (!-e $filepath) {
$srcPath =~ /([\w\d.:\-\\\/]+)[:\\\/]([\w\d.\-]+)/;
$filepath = "$jarManDir:$2";
if (!-e $filepath) {
die "$filepath does not exist\n";
}
}
my $member = Archive::Zip::Member->newFromFile($filepath);
die "Failed to create zip file member $filepath\n" unless $member;
$member->fileName($thing);
print "Adding $filepath as $thing\n";
if ($compress) {
$member->desiredCompressionMethod(Archive::Zip::COMPRESSION_DEFLATED);
} else {
$member->desiredCompressionMethod(Archive::Zip::COMPRESSION_STORED);
}
$zip->addMember($member);
}
sub JarIt($$)
{
my ($jarfile, $zip) = @_;
#print "+++ jarring $jarfile\n";
#flush();
#system "zip -u $jarfile $args\n";
my $jarTempFile = $jarfile . ".temp";
$zip->writeToFileNamed($jarTempFile) == AZ_OK
|| die "zip writeToFileNamed $jarTempFile failed";
# set the file type/creator to something reasonable
MacPerl::SetFileInfo("ZIP ", "ZIP ", $jarTempFile);
rename($jarTempFile, $jarfile);
print "+++ finished jarring $jarfile\n";
}
sub ProcessJarManifest($$)
{
my ($jarManPath, $destPath) = @_;
$jarManPath = Moz::full_path_to($jarManPath);
$destPath = Moz::full_path_to($destPath);
#print "ProcessJarManifest($jarManPath, $destPath)\n";
print "+++ jarring $jarManPath\n";
my $jarManDir = "";
my $jarManFile = "";
if ($jarManPath =~ /([\w\d.:\-\\\/]+)[:\\\/]([\w\d.\-]+)/) {
$jarManDir = $1;
$jarManFile = $2;
}
else {
die "bad jar.mn specification";
}
open(FILE, "<$jarManPath") || die "could not open $jarManPath: $!";
while (<FILE>) {
chomp;
start:
if (/^([\w\d.\-\\\/]+)\:\s*$/) {
my $jarfile = "$destPath/$1";
$jarfile =~ s|/|:|g;
#my $args = "";
my $zip = Archive::Zip->new();
#print "new jar $jarfile\n";
if (-e $jarfile) {
#print "=====> $jarfile exists\n";
my $ok = $zip->read($jarfile);
if ($ok != AZ_OK) {
die "zip read $jarfile failed: $ok";
}
}
while (<FILE>) {
if (/^\s+([\w\d.\-\\\/]+)\s*(\([\w\d.\-\\\/]+\))?$\s*/) {
my $dest = $1;
my $srcPath = $2;
if ( $srcPath ) {
$srcPath = substr($srcPath,1,-1);
}
else {
$srcPath = ":" . $dest;
}
$srcPath =~ s|/|:|g;
_addToJar($dest, $srcPath, $jarManDir, $zip, 1);
} elsif (/^\s*$/) {
# end with blank line
last;
} else {
JarIt($jarfile, $zip);
goto start;
}
}
JarIt($jarfile, $zip);
} elsif (/^\s*\#.*$/) {
# skip comments
} elsif (/^\s*$/) {
# skip blank lines
} else {
close;
die "bad jar rule head at: $_";
}
}
close(FILE);
}

572
mozilla/build/mac/Moz.pm Normal file
View File

@@ -0,0 +1,572 @@
=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.
=cut
package Moz;
require Exporter;
use Mac::Types;
use Mac::Events;
use Mac::Processes;
use File::Copy;
@ISA = qw(Exporter);
@EXPORT = qw(LaunchCodeWarrior BuildProject BuildProjectClean GetFileModDate OpenErrorLog MakeAlias StopForErrors DontStopForErrors InstallFromManifest InstallResources SetBuildNumber SetAgentString SetTimeBomb Delay ActivateApplication);
@EXPORT_OK = qw(CloseErrorLog UseCodeWarriorLib QUIET);
use Cwd;
use File::Path;
use ExtUtils::Manifest 'maniread';
use CodeWarriorLib;
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;
}
=head2 Setup
Pretty much, everything is taken care of for you.
However, B<Moz> does use a little compiled AppleScript library (the file CodeWarriorLib) for some of its communcication with CodeWarrior.
If this library isn't in the same directory as "Moz.pm", then you need to tell B<Moz> where to find it.
Call C<UseCodeWarriorLib($path_to_CodeWarriorLib)>.
This routine is not exported by default, nor are you likely to need it.
=cut
sub UseCodeWarriorLib($)
{
# ($CodeWarriorLib) = @_;
# $CodeWarriorLib = full_path_to($CodeWarriorLib);
}
sub activate_CodeWarrior()
{
#MacPerl::DoAppleScript(<<END_OF_APPLESCRIPT);
# tell (load script file "$CodeWarriorLib") to ActivateCodeWarrior()
#END_OF_APPLESCRIPT
}
$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 "Can't open logfile, check the file path.\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 = 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);
}
=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 "$message \"$old_file\" doesn't exist.\n" unless -e $old_file;
die "$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 "$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");
}
}
}
sub SetBuildNumber($$$)
{
my($build_num_file, $build_gen_script, $files_to_touch) = @_;
open (OUTPUT, ">$build_num_file") || die "could not open buildnumber";
open (BDATE, "perl :mozilla:config:bdate.pl|");
while (<BDATE>) {
print OUTPUT $_;
}
close (BDATE);
close (OUTPUT);
my($file);
foreach $file (@$files_to_touch)
{
print "Writing build number to $file\n";
system ("perl $build_gen_script $file $build_num_file");
}
}
sub SetAgentString
{
open (BDATE, ":mozilla:config:build_number") || die "could not open buildnumber";
while (<BDATE>) {
$build_number = $_;
}
close (BDATE);
open (ORIGFILE, ":mozilla:cmd:macfe:restext:custom.r") || die "no original file";
open (OUTPUT, ">:mozilla:cmd:macfe:restext:agent.r") || die "no output file";
chop($build_number);
while (<ORIGFILE>) {
$tempstring = $_;
if ($tempstring =~ "\#define VERSION_MAJOR_STR") {
$tempstring = "\#define VERSION_MAJOR_STR \"5.0a1-" . $build_number . " Development\"\n";
}
print OUTPUT $tempstring;
}
close (ORIGFILE);
close (OUTPUT);
unlink (":mozilla:cmd:macfe:restext:custom.r");
rename (":mozilla:cmd:macfe:restext:agent.r", ":mozilla:cmd:macfe:restext:custom.r");
}
sub SetTimeBomb($$)
{
my ($warn_days, $bomb_days) = @_;
system("perl :mozilla:config:mac-set-timebomb.pl $warn_days $bomb_days");
}
sub Delay($)
{
my ($delay_seconds) = @_;
$now = time;
$exit_time = $now + $delay_seconds;
while ($exit_time > $now) {
$now = time;
}
}
sub GetFileModDate($)
{
my($filePath)=@_;
my($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks) = stat($filePath);
return $mtime;
}
sub LaunchCodeWarrior()
{
# this both launches and writes idepath.txt
CodeWarriorLib::activate();
}
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)
{
return;
}
SetFrontProcess($appPSN);
while (GetFrontProcess() != $appPSN)
{
WaitNextEvent();
}
}
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,172 @@
package MozBuildFlags;
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 MozPrefs;
use vars qw(@ISA @EXPORT);
@ISA = qw(Exporter);
@EXPORT = qw(SetupBuildParams);
#-------------------------------------------------------------------------------
# These 3 arrays are the 'master lists' to control what gets built.
# We use arrays here, instead of just intializing the hashes directly,
# so that we can start the build at a given stage using a stored key.
#
# Ordering in these arrays is important; it has to reflect the order in
# which the build occurs.
#-------------------------------------------------------------------------------
my(@pull_flags) =
(
["moz", 1], # pull everything needed for mozilla
["runtime", 0] # used to just build runtime libs, up to NSPR
);
my(@build_flags) =
(
["all", 1],
["dist", 0],
["dist_runtime", 0],
["xpidl", 0],
["idl", 0],
["stubs", 0],
["runtime", 0],
["common", 0],
["imglib", 0],
["necko", 0],
["security", 0],
["browserutils", 0],
["intl", 0],
["nglayout", 0],
["editor", 0],
["viewer", 0],
["xpapp", 0],
["extensions", 0],
["plugins", 0],
["mailnews", 0],
["apprunner", 0],
["resources", 0],
["jars", 0]
);
my(@options_flags) =
(
["transformiix", 0],
["mathml", 0],
["svg", 0],
["mng", 1],
["ldap", 0],
["xmlextras", 0],
["mailextras", 1], # mail importers
["xptlink", 0] # xpt linker codewarrior plugin
);
#-------------------------------------------------------------------------------
# End of build flags
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# 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) = @_;
my($key, $value);
while (($key, $value) = each %$hash_ref)
{
print "$key $value\n";
}
}
#-------------------------------------------------------------------------------
# SetPullFlags
#-------------------------------------------------------------------------------
sub SetPullFlags($)
{
my($pull) = @_;
flagsArrayToHash(\@pull_flags, $pull);
}
#-------------------------------------------------------------------------------
# SetBuildFlags
#-------------------------------------------------------------------------------
sub SetBuildFlags($)
{
my($build) = @_;
flagsArrayToHash(\@build_flags, $build);
}
#-------------------------------------------------------------------------------
# SetBuildOptions
#-------------------------------------------------------------------------------
sub SetBuildOptions($)
{
my($options) = @_;
flagsArrayToHash(\@options_flags, $options);
}
#-------------------------------------------------------------------------------
# SetupBuildParams
#-------------------------------------------------------------------------------
sub SetupBuildParams($$$)
{
my($pull, $build, $options) = @_;
SetPullFlags($pull);
SetBuildFlags($build);
SetBuildOptions($options);
print "Build before:\n";
printHash($build);
# read the user pref file, that can change values in the array
ReadMozUserPrefs("Mozilla build prefs", $pull, $build, $options);
print "Build after:\n";
printHash($build);
}
1;

600
mozilla/build/mac/MozJar.pm Normal file
View File

@@ -0,0 +1,600 @@
#!perl -w
package MozJar;
#
# 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;
use vars qw( @ISA @EXPORT );
@ISA = qw(Exporter);
@EXPORT = qw(CreateJarFileFromDirectory 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 "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 "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{jar_manifests})
{
print "\$options{jar_manifests} is off, which means you are using obsolete MANIFEST files to install chrome resources.\n";
return;
}
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 writing jar to temp file $temp_file_name\n";
unlink $full_dest_path;
(rename $temp_file_name, $full_dest_path) || die "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 "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 "Can't find chrome file $src\n";
}
}
if ($main::options{chrome_jars})
{
my($zip) = $jars->{$jar_id};
unless ($zip) { die "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 "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) = Moz::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 "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) = Moz::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 "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 "Failed to open $inst_chrome\n";
print(CHROMEFILE "${chrome_entry}\n");
close(CHROMEFILE) || die "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 = Moz::full_path_to($jar_man_path);
$dest_path = Moz::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 "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 "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,146 @@
package MozPrefs;
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 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;
}
#-------------------------------------------------------------------------------
#
# 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 with modify the default build settings. Examples are:
%
% pull runtime 1 % just pull runtime
% options mng 1 % turn mng on
% build jars 0 % don't build jar files
%
% Note that by default, the scripts have $build{"all"} and $pull{"all"}
% turned on, which overrides other settings. To do partial builds, turn
% these off thus:
% build all 0
%
EOS
$file_contents =~ s/%/#/g;
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);
}
#-------------------------------------------------------------------------------
#
# ReadPrefsFile
#
#-------------------------------------------------------------------------------
sub ReadPrefsFile($$$$)
{
my($file_path, $pull_hash, $build_hash, $options_hash) = @_;
if (open(PREFS_FILE, "< $file_path"))
{
print "Reading build prefs from $file_path\n";
while (<PREFS_FILE>)
{
my($line) = $_;
if ($line =~ /$\#/) { # ignore comments
next;
}
if ($line =~ /$\s*(\w+)\s+(\w+)\s+(\w+)\s*/)
{
my($array_name) = $1;
my($option_name) = $2;
my($option_value) = $3;
if ($array_name eq "pull")
{
$pull_hash->{$option_name} = $option_value;
}
elsif ($array_name eq "build")
{
$build_hash->{$option_name} = $option_value;
}
elsif ($array_name eq "options")
{
$options_hash->{$option_name} = $option_value;
}
else
{
print "Unknown pref option at $line\n";
}
}
}
close(PREFS_FILE);
}
else
{
print "No prefs file found at $file_path; using defaults\n";
WriteDefaultPrefsFile($file_path);
}
}
#-------------------------------------------------------------------------------
#
# ReadMozUserPrefs
#
#-------------------------------------------------------------------------------
sub ReadMozUserPrefs($$$$)
{
my($prefs_file_name, $pull_hash, $build_hash, $options_hash) = @_;
my($prefs_path) = GetPrefsFolder();
$prefs_path .= ":$prefs_file_name";
ReadPrefsFile($prefs_path, $pull_hash, $build_hash, $options_hash);
}
1;

File diff suppressed because it is too large Load Diff

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))

View File

@@ -0,0 +1,54 @@
#!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):
#
#
# nglayout pull script
#
use Mac::Processes;
use NGLayoutBuildList;
use Cwd;
use Moz;
# configuration variables
$pull{all} = 1;
$pull{moz} = 0;
$pull{runtime} = 0;
if ($pull{all})
{
foreach $k (keys(%pull))
{
$pull{$k} = 1;
}
}
# you should not have to edit anything bellow
chdir("::::");
Moz::StopForErrors();
#Moz::DontStopForErrors();
OpenErrorLog("NGLayoutPullLog");
Checkout();

Binary file not shown.

View File

@@ -0,0 +1,86 @@
#!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):
#
#
# build script (optimized)
#
use Mac::Processes;
use MozillaBuildList;
use Cwd;
use Moz;
#-----------------------------------------------
# hashes to hold build options
#-----------------------------------------------
my(%pull);
my(%build);
my(%options);
my(%optiondefines);
#-----------------------------------------------
# configuration variables that globally affect what is built
#-----------------------------------------------
$DEBUG = 0;
$CARBON = 0; # turn on to build with TARGET_CARBON
$PROFILE = 0;
$GC_LEAK_DETECTOR = 0; # turn on to use GC leak detection
$INCLUDE_CLASSIC_SKIN = 1;
#-----------------------------------------------
# configuration variables that affect the manner
# of building, but possibly affecting
# the outcome.
#-----------------------------------------------
$DIST_DIRECTORY = ":mozilla:dist:viewer:";
$ALIAS_SYM_FILES = $DEBUG;
$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 $build{dist} turned on),
# but leave the directory structure intact.
$CLOBBER_DIST_ALL = 1; # turn on to clobber all aliases/files inside dist (headers/xsym/libs)
$CLOBBER_DIST_LIBS = 0; # turn on to clobber only aliases/files for libraries/sym files in dist
$CLOBBER_IDL_PROJECTS = 0; # turn on to clobber all IDL projects.
#-----------------------------------------------
# configuration variables that are preferences for the build style,
# and do not affect what is built.
#-----------------------------------------------
$CodeWarriorLib::CLOSE_PROJECTS_FIRST
= 0;
# 1 = close then make (for development),
# 0 = make then close (for tinderbox).
$USE_TIMESTAMPED_LOGS = 0;
#-----------------------------------------------
# END OF CONFIG SWITCHES
#-----------------------------------------------
my($cur_dir) = cwd();
$cur_dir =~ s/:mozilla:build:mac:build_scripts$//;
chdir($cur_dir);
$MOZ_SRC = cwd();
my($do_checkout) = 0;
my($do_build) = 1;
RunBuild($do_checkout, $do_build);

View File

@@ -0,0 +1,86 @@
#!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):
#
#
# build script (debug)
#
use Mac::Processes;
use MozillaBuildList;
use Cwd;
use Moz;
#-----------------------------------------------
# hashes to hold build options
#-----------------------------------------------
my(%pull);
my(%build);
my(%options);
my(%optiondefines);
#-----------------------------------------------
# configuration variables that globally affect what is built
#-----------------------------------------------
$DEBUG = 1;
$CARBON = 0; # turn on to build with TARGET_CARBON
$PROFILE = 0;
$GC_LEAK_DETECTOR = 0; # turn on to use GC leak detection
$INCLUDE_CLASSIC_SKIN = 1;
#-----------------------------------------------
# configuration variables that affect the manner
# of building, but possibly affecting
# the outcome.
#-----------------------------------------------
$DIST_DIRECTORY = ":mozilla:dist:viewer_debug:";
$ALIAS_SYM_FILES = $DEBUG;
$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 $build{dist} turned on),
# but leave the directory structure intact.
$CLOBBER_DIST_ALL = 1; # turn on to clobber all aliases/files inside dist (headers/xsym/libs)
$CLOBBER_DIST_LIBS = 0; # turn on to clobber only aliases/files for libraries/sym files in dist
$CLOBBER_IDL_PROJECTS = 0; # turn on to clobber all IDL projects.
#-----------------------------------------------
# configuration variables that are preferences for the build style,
# and do not affect what is built.
#-----------------------------------------------
$CodeWarriorLib::CLOSE_PROJECTS_FIRST
= 1;
# 1 = close then make (for development),
# 0 = make then close (for tinderbox).
$USE_TIMESTAMPED_LOGS = 1;
#-----------------------------------------------
# END OF CONFIG SWITCHES
#-----------------------------------------------
my($cur_dir) = cwd();
$cur_dir =~ s/:mozilla:build:mac:build_scripts$//;
chdir($cur_dir);
$MOZ_SRC = cwd();
my($do_checkout) = 0;
my($do_build) = 1;
RunBuild($do_checkout, $do_build);

View File

@@ -0,0 +1,470 @@
#!perl
package 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::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();
# 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;
# 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 activate()
Launches CodeWarrior and brings it to the front.
Once found, path will be saved in ':idepath.txt' 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 () {
local(*F);
my($filepath, $appath, $psi) = (':idepath.txt');
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;
}
}
=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 _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
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 "";
}
open(F, $filepath);
my($appath) = <F>;
close(F);
chdir($cwd); # restore the cwd
return($appath);
}
sub _test ($) {
activate();
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,204 @@
#!perl -w
package 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 vars qw($VERSION @ISA @EXPORT $MacCVSLib);
use Mac::StandardFile;
use Moz;
use Cwd;
use Exporter;
use File::Basename;
@ISA = qw(Exporter);
@EXPORT = qw( new print checkout);
$VERSION = "1.00";
# 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
{
print STDERR "AppleScript error: $asresult\n";
print STDERR "AppleScript was: \n $script \n";
return 0;
}
}
# _useMacCVSLib
# returns 1 on success
# Search the include path for the file called MacCVSLib
sub _useMacCVSLib()
{
unless ( defined($MacCVSLib) )
{
my($libname) = "MacCVSLib";
# try the directory we were run from
my($c) = dirname($0) . ":" . $libname;
if ( -e $c)
{
$MacCVSLib = $c;
}
else
{
# 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;
last;
}
}
}
}
if (! (-e $MacCVSLib))
{
print STDERR "MacCVS lib could not be found! $MacCVSLib";
return 0;
}
}
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 failure
sub assertSessionOpen() {
my ($self) = shift;
_useMacCVSLib() || die "Could not load MacCVSLib\n";
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;
print "MacCVS:: name: ", $self->{name}, " session file: ", $self->{session_file}, "\n";
}
# checkout( self, module, revision, date)
# MacCVS checkout command
# returns 1 on failure
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 = ""; }
$self->assertSessionOpen() || return 1;
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);
}
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,564 @@
=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.
=cut
package Moz;
require Exporter;
use Mac::Types;
use Mac::Events;
use Mac::Processes;
use File::Copy;
@ISA = qw(Exporter);
@EXPORT = qw(current_directory full_path_to BuildProject BuildProjectClean OpenErrorLog MakeAlias StopForErrors DontStopForErrors InstallFromManifest InstallResources SetBuildNumber SetAgentString SetTimeBomb Delay ActivateApplication IsProcessRunning);
@EXPORT_OK = qw(CloseErrorLog UseCodeWarriorLib QUIET);
use Cwd;
use File::Path;
use ExtUtils::Manifest 'maniread';
use CodeWarriorLib;
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;
}
=head2 Setup
Pretty much, everything is taken care of for you.
However, B<Moz> does use a little compiled AppleScript library (the file CodeWarriorLib) for some of its communcication with CodeWarrior.
If this library isn't in the same directory as "Moz.pm", then you need to tell B<Moz> where to find it.
Call C<UseCodeWarriorLib($path_to_CodeWarriorLib)>.
This routine is not exported by default, nor are you likely to need it.
=cut
sub UseCodeWarriorLib($)
{
# ($CodeWarriorLib) = @_;
# $CodeWarriorLib = full_path_to($CodeWarriorLib);
}
$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 "Can't open logfile, check the file path.\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 = 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);
}
=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 "$message \"$old_file\" doesn't exist.\n" unless -e $old_file;
die "$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 "$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");
}
}
}
sub SetBuildNumber
{
open (OUTPUT, ">:mozilla:config:build_number") || die "could not open buildnumber";
open (BDATE, "perl :mozilla:config:bdate.pl|");
while (<BDATE>) {
print OUTPUT $_;
}
close (BDATE);
close (OUTPUT);
system ("perl :mozilla:config:aboutime.pl :mozilla:xpfe:appshell:public:nsBuildID.h :mozilla:config:build_number");
system ("perl :mozilla:config:aboutime.pl :mozilla:xpfe:browser:resources:locale:en-US:navigator.dtd :mozilla:config:build_number");
}
sub SetAgentString
{
open (BDATE, ":mozilla:config:build_number") || die "could not open buildnumber";
while (<BDATE>) {
$build_number = $_;
}
close (BDATE);
open (ORIGFILE, ":mozilla:cmd:macfe:restext:custom.r") || die "no original file";
open (OUTPUT, ">:mozilla:cmd:macfe:restext:agent.r") || die "no output file";
chop($build_number);
while (<ORIGFILE>) {
$tempstring = $_;
if ($tempstring =~ "\#define VERSION_MAJOR_STR") {
$tempstring = "\#define VERSION_MAJOR_STR \"5.0a1-" . $build_number . " Development\"\n";
}
print OUTPUT $tempstring;
}
close (ORIGFILE);
close (OUTPUT);
unlink (":mozilla:cmd:macfe:restext:custom.r");
rename (":mozilla:cmd:macfe:restext:agent.r", ":mozilla:cmd:macfe:restext:custom.r");
}
sub SetTimeBomb($$)
{
my ($warn_days, $bomb_days) = @_;
system("perl :mozilla:config:mac-set-timebomb.pl $warn_days $bomb_days");
}
sub Delay($)
{
my ($delay_seconds) = @_;
$now = time;
$exit_time = $now + $delay_seconds;
while ($exit_time > $now) {
$now = time;
}
}
#//--------------------------------------------------------------------------------------------------
#// 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)
{
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,203 @@
package MozBuildFlags;
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 MozPrefs;
use vars qw(@ISA @EXPORT);
@ISA = qw(Exporter);
@EXPORT = qw(SetupBuildParams);
#-------------------------------------------------------------------------------
# These 3 arrays are the 'master lists' to control what gets built.
# We use arrays here, instead of just intializing the hashes directly,
# so that we can start the build at a given stage using a stored key.
#
# Ordering in these arrays is important; it has to reflect the order in
# which the build occurs.
#-------------------------------------------------------------------------------
my(@pull_flags) =
(
["moz", 1], # pull everything needed for mozilla
["runtime", 0] # used to just build runtime libs, up to NSPR
);
my(@build_flags) =
(
["all", 1], # 'all' must come first!
["dist", 0],
["dist_runtime", 0],
["xpidl", 0],
["idl", 0],
["stubs", 0],
["runtime", 0],
["common", 0],
["imglib", 0],
["necko", 0],
["security", 0],
["browserutils", 0],
["intl", 0],
["nglayout", 0],
["editor", 0],
["viewer", 0],
["xpapp", 0],
["extensions", 0],
["plugins", 0],
["mailnews", 0],
["apprunner", 0],
["resources", 0]
);
my(@options_flags) =
(
["jar_manifests", 0], # use jar.mn files for resources, not MANIFESTs
["jars", 0], # build jar files
["transformiix", 0], # obsolete?
["mathml", 0],
["svg", 0],
["mng", 1],
["ldap", 0],
["xmlextras", 0],
["mailextras", 1], # mail importers
["xptlink", 0] # xpt linker codewarrior plugin
);
#-------------------------------------------------------------------------------
# End of build flags
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# 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";
}
}
#-------------------------------------------------------------------------------
# SetPullFlags
#-------------------------------------------------------------------------------
sub SetPullFlags($)
{
my($pull) = @_;
flagsArrayToHash(\@pull_flags, $pull);
}
#-------------------------------------------------------------------------------
# SetBuildFlags
#-------------------------------------------------------------------------------
sub SetBuildFlags($)
{
my($build) = @_;
flagsArrayToHash(\@build_flags, $build);
}
#-------------------------------------------------------------------------------
# SetBuildOptions
#-------------------------------------------------------------------------------
sub SetBuildOptions($)
{
my($options) = @_;
flagsArrayToHash(\@options_flags, $options);
}
#-------------------------------------------------------------------------------
# SetOptionDefines
#-------------------------------------------------------------------------------
sub SetOptionDefines($)
{
my($optiondefines) = @_;
# These should remain unchanged
$optiondefines->{"mathml"}{"MOZ_MATHML"} = 1;
$optiondefines->{"svg"}{"MOZ_SVG"} = 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 "'all' must come first in the build array\n"; }
if ($build_array->[0][1] == 1)
{
my($index);
foreach $index (@$build_array)
{
$index->[1] = 1;
}
}
}
#-------------------------------------------------------------------------------
# SetupBuildParams
#-------------------------------------------------------------------------------
sub SetupBuildParams($$$$$)
{
my($pull, $build, $options, $optiondefines, $prefs_file) = @_;
# read the user pref file, that can change values in the array
ReadMozUserPrefs($prefs_file, \@pull_flags, \@build_flags, \@options_flags);
PropagateAllFlags(\@build_flags);
SetPullFlags($pull);
SetBuildFlags($build);
SetBuildOptions($options);
SetOptionDefines($optiondefines);
#printHash($build);
}
1;

View File

@@ -0,0 +1,208 @@
package MozBuildUtils;
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 Moz;
use vars qw(@ISA @EXPORT);
@ISA = qw(Exporter);
@EXPORT = qw(GetDistDirectory BuildOneProject BuildIDLProject AskAndPersistFile DelayFor EmptyTree);
#--------------------------------------------------------------------------------------------------
# GetDistDirectory
#--------------------------------------------------------------------------------------------------
sub GetDistDirectory()
{
if ($main::DIST_DIRECTORY eq "") { die "Dist directory not set\n"; }
return $main::DIST_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\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, make shlb alias (boolean), make xSYM alias (boolean)
#//
#// 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) = @_;
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) = GetDistDirectory();
# 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$target_name"; # it's OK if these fail
unlink "$project_dir$target_name.xSYM";
}
BuildProject($project_path, $target_name);
$alias_shlb ? MakeAlias("$project_dir$target_name", "$dist_dir$component_dir") : 0;
$alias_xSYM ? MakeAlias("$project_dir$target_name.xSYM", "$dist_dir$component_dir") : 0;
}
#//--------------------------------------------------------------------------------------------------
#// 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);
my($cur_time) = time();
while ($cur_time < $end_time)
{
$cur_time = time();
if ($cur_time > $last_time)
{
print ".";
$last_time = $cur_time;
}
}
STDOUT->autoflush(0);
}
#//--------------------------------------------------------------------------------------------------
#// 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);
}
1;

View File

@@ -0,0 +1,431 @@
#!perl -w
package MozJar;
#
# 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;
use vars qw( @ISA @EXPORT );
@ISA = qw(Exporter);
@EXPORT = qw(CreateJarFileFromDirectory WriteOutJarFiles);
#-------------------------------------------------------------------------------
# Add the contents of a directory to the zip file
#
#-------------------------------------------------------------------------------
sub _addDirToJar($$$$)
{
my($dir, $jar_root, $zip, $compress) = @_;
opendir(DIR, $dir) or die "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 "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);
}
#-------------------------------------------------------------------------------
# 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, $jars) = @_;
# print "addToJarFile with:\n $jar_man_dir\n $file_src\n $jar_path\n $file_jar_path\n";
unless ($jar_path =~ m/(.+:)([^:]+)$/) { die "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 "Can't find chrome file $src\n";
}
}
if ($main::options{jars})
{
my($zip) = $jars->{$jar_id};
unless ($zip) { die "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 "Failed to create zip file member $src\n"; }
$member->fileName($file_jar_path);
my($compress) = 1;
if ($compress) {
$member->desiredCompressionMethod(Archive::Zip::COMPRESSION_DEFLATED);
} else {
$member->desiredCompressionMethod(Archive::Zip::COMPRESSION_STORED);
}
$zip->addMember($member);
}
else # copy file
{
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";
MakeAlias($src, $dst); # don't check errors, otherwise we fail on replacement
}
}
#-------------------------------------------------------------------------------
# setupJarFile
#
# setup a zip for writing
#-------------------------------------------------------------------------------
sub setupJarFile($$$)
{
my($jar_id, $jar_path, $jar_hash) = @_;
# print "Creating jar file $jar_id at $jar_path\n";
if ($main::options{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;
}
}
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{jars})
{
}
else
{
# installing files.
# nothing to do
}
}
#-------------------------------------------------------------------------------
# WriteOutJarFiles
#
# Now we dump out the jars
#-------------------------------------------------------------------------------
sub WriteOutJarFiles($$)
{
my($chrome_dir, $jars) = @_;
unless ($main::options{jars}) { return; }
my($full_chrome_path) = Moz::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/\.jar$//;
mkpath($path);
($zip->writeToFileNamed($output_path) == Archive::Zip::AZ_OK) || die "Error writing jar $rel_path\n";
MacPerl::SetFileInfo("ZIP ", "ZIP ", $output_path);
}
}
#-------------------------------------------------------------------------------
# registerChromePackage
#
# Enter a chrome package into the installed-chrome.txt file
#-------------------------------------------------------------------------------
sub registerChromePackage($$$$)
{
my($jar_file, $file_path, $chrome_dir, $jar_hash) = @_;
my($manifest_subdir) = $jar_file;
$manifest_subdir =~ s/:/\//g;
my($chrome_entry);
if ($main::options{jars}) {
$chrome_entry = ",install,url,jar:resource:/Chrome/";
$manifest_subdir.= "!/";
} else {
$chrome_entry = ",install,url,resource:/Chrome/";
$manifest_subdir =~ s/\.jar$/\//;
}
# print "Entering $chrome_entry$manifest_subdir in installed-chrome.txt\n";
# for now, regiser for content, locale and skin
# we'll get the type from the path soon
my($type) = "content";
# ensure chrome_dir exists
mkpath($chrome_dir);
my($inst_chrome) = ${chrome_dir}.":installed-chrome.txt";
open(CHROMEFILE, ">>${inst_chrome}") || die "Failed to open $inst_chrome\n";
print(CHROMEFILE "${type}${chrome_entry}${manifest_subdir}\n");
$type = "locale";
print(CHROMEFILE "${type}${chrome_entry}${manifest_subdir}\n");
$type = "skin";
print(CHROMEFILE "${type}${chrome_entry}${manifest_subdir}\n");
close(CHROMEFILE);
}
#-------------------------------------------------------------------------------
# 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{jars}) {
print "Jarring from $jar_man_path\n";
} else {
print "Installing files from $jar_man_path\n";
}
$jar_man_path = Moz::full_path_to($jar_man_path);
$dest_path = Moz::full_path_to($dest_path);
# if the jars hash is empty, nuke installed-chrome.txt
if (! scalar(%$jars))
{
print "Nuking chrome\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 "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, $full_jar_path, $jars);
}
elsif ($line =~ /^\s+([\w\d.\-\\\/]+)\s*(\([\w\d.\-\\\/]+\))?$\s*/) # jar file entry
{
my($file_dest) = $1;
my($file_src) = $2;
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 eq "manifest.rdf") # will change to contents.rdf
{
registerChromePackage($jar_file, $file_dest, $dest_path, $jars);
}
addToJarFile($jar_id, $jar_man_dir, $file_src, $full_jar_path, $file_dest, $jars);
}
else
{
die "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,220 @@
package MozPrefs;
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 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;
}
#-------------------------------------------------------------------------------
#
# 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 with modify the default build settings. Examples are:
%
% pull runtime 1 % just pull runtime
% options mng 1 % turn mng on
% build jars 0 % don't build jar files
%
EOS
$file_contents =~ s/%/#/g;
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, $pull_flags, $build_flags, $options_flags) = @_;
if (open(PREFS_FILE, "< $file_path"))
{
print "Reading build prefs from $file_path\n";
while (<PREFS_FILE>)
{
my($line) = $_;
if ($line =~ /^\#/ || $line =~ /^\s+$/) { # ignore comments and empty lines
next;
}
if ($line =~ /^\s*(\w+)\s+(\w+)\s+(\w+)\s*/)
{
my($array_name) = $1;
my($option_name) = $2;
my($option_value) = $3;
if ($array_name eq "pull")
{
HandlePrefSet($pull_flags, $option_name, $option_value, "Pull");
}
elsif ($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");
}
else
{
print "Unknown pref option at $line\n";
}
}
elsif ($line =~ /^\s*buildfrom\s+(\w+)/)
{
my($build_start) = $1;
HandleBuildFromPref($build_flags, $build_start);
}
else
{
print "Unknown pref option at $line\n";
}
}
close(PREFS_FILE);
}
else
{
print "No prefs file found at $file_path; using defaults\n";
WriteDefaultPrefsFile($file_path);
}
}
#-------------------------------------------------------------------------------
#
# ReadMozUserPrefs
#
#-------------------------------------------------------------------------------
sub ReadMozUserPrefs($$$$)
{
my($prefs_file_name, $pull_flags, $build_flags, $options_flags) = @_;
my($prefs_path) = GetPrefsFolder();
$prefs_path .= ":$prefs_file_name";
ReadPrefsFile($prefs_path, $pull_flags, $build_flags, $options_flags);
}
1;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,49 @@
#!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):
#
#
# nglayout pull script
#
use Mac::Processes;
use MozillaBuildList;
use Cwd;
use Moz;
#-----------------------------------------------
# hashes to hold build options
#-----------------------------------------------
my(%pull);
my(%build);
my(%options);
my(%optiondefines);
my($cur_dir) = cwd();
$cur_dir =~ s/:mozilla:build:mac:build_scripts$//;
chdir($cur_dir);
$MOZ_SRC = cwd();
my($do_checkout) = 1;
my($do_build) = 0;
RunBuild($do_checkout, $do_build);

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.

View File

@@ -0,0 +1 @@
// test1.cpp

View File

@@ -0,0 +1 @@
// test2.cpp

Binary file not shown.

View File

@@ -0,0 +1 @@
// test2.cpp

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,12 @@
#include <stdio.h>
#include <ConditionalMacros.h>
int main(int argc, char* argv[])
{
FILE* file = fopen("BuildSystemInfo.pm", "w");
if (file != NULL) {
fprintf(file, "$UNIVERSAL_INTERFACES_VERSION=0x%04X;\n", UNIVERSAL_INTERFACES_VERSION);
fclose(file);
}
}

View File

@@ -0,0 +1,5 @@
- Currently, we do a fairly conservative (--disable a lot) build; find
out what works already.
- More libraries could be put in separate packages, like mailnews and
editor are.

View File

@@ -0,0 +1,279 @@
mozilla (19990716.M8-3) unstable; urgency=low
* Updated with build rules for the new mozilla-provided CVS directory.
* Register as MIME-handler (Close Bug# 42206)
-- Brent A. Fulgham <bfulgham@debian.org> Tue, 3 Aug 1999 09:15:17 -0700
mozilla (19990716.M8-2) unstable; urgency=low
* Added fix for m68k in hashtable function (Res. Bug# 41267)
* More robust /usr/bin/mozilla (Res. Bug# 41912)
* Remove suggestion for obsolete x11amp (Res. Bug# 41181)
-- Brent A. Fulgham <bfulgham@debian.org> Tue, 27 Jul 1999 09:15:17 -0700
mozilla (19990716.M8-1) unstable; urgency=low
* This is SeaMonkey Milestone 8.
-- Brent A. Fulgham <bfulgham@debian.org> Thu, 22 Jul 1999 21:20:10 -0700
mozilla (19990624.M7-1) unstable; urgency=low
* This is SeaMonkey Milestone 7 !
* Removed the so-called upstream changelog (fixes #39307 #39496 #40368).
* Retried building without the static libraries. It actually worked,
after two Makefile.ins backports from M8 :)
-- Josip Rodin <jrodin@jagor.srce.hr> Sat, 3 Jul 1999 14:09:18 +0200
mozilla (19990529.M6-1) unstable; urgency=low
* This is SeaMonkey Milestone 6 !
-- Josip Rodin <jrodin@jagor.srce.hr> Mon, 31 May 1999 20:46:16 +0200
mozilla (19990527-1) unstable; urgency=low
* Another try, the previous one didn't build, stopped in xpidl/build/
* Fresh tarball from the FTP site.
* I'll give up with NO_STATIC_LIB for now, let's just make something.
* First attempt on the editor exclusion (in mozilla-editor package).
-- Josip Rodin <jrodin@jagor.srce.hr> Fri, 28 May 1999 16:08:56 +0200
mozilla (19990526-1) unstable; urgency=low
* New one, this time with .orig.tar.gz cleaned up.
-- Josip Rodin <jrodin@jagor.srce.hr> Thu, 27 May 1999 19:31:13 +0200
mozilla (19990524-1) unstable; urgency=low
* Another new tree, probably the last before M6 releases. Maybe it'll
even build, who knows? ;)
-- Josip Rodin <jrodin@jagor.srce.hr> Tue, 25 May 1999 16:11:57 +0200
mozilla (19990521-1) unstable; urgency=low
* Another try, more testing of --disable-static and some changes to
the rules file. Applied some more recent patches from CVS.
* Build NSPR with pthreads support.
* Building on pandora (fast!), but it'll depend on glibc2.1 :(
-- Josip Rodin <jrodin@jagor.srce.hr> Sun, 23 May 1999 14:10:53 +0200
mozilla (19990518-1) unstable; urgency=low
* Bypassed the dangling symlinks with a "-" :(
* Added some Conflicts/Replaces to libnspr to prevent clashes with the
previous (unreleased) versions of it, 20 and 21.
* Brent decided to split out mailnews from the main package, so it's
now in mozilla-mailnews package. Quite a lot of changes to the rules
and control file. Added appropriate Provides: because of that, so
that's one less TODO item.
-- Josip Rodin <jrodin@jagor.srce.hr> Wed, 19 May 1999 04:10:07 -0700
mozilla (19990515-1) unstable; urgency=low
* Another try. Incorporated some changes as seen in M4's spec file
that was used to build the RPM.
* Fixed debian/control NSPR entries.
-- Josip Rodin <jrodin@jagor.srce.hr> Sun, 16 May 1999 05:30:39 -0700
mozilla (19990513-1) unstable; urgency=low
* Try, try again.
-- Brent A. Fulgham <bfulgham@debian.org> Thu, 13 May 1999 09:50:20 -0700
mozilla (19990510-1) unstable; urgency=low
* A possibly working build from the FTP site, since M5 didn't manage
to build :(
* NSPR renamed to libnspr3{-dev}, as one of the upstream people advised.
-- Josip Rodin <jrodin@jagor.srce.hr> Thu, 13 May 1999 05:08:24 -0700
mozilla (19990505.M5-1) unstable; urgency=low
* This is SeaMonkey Milestone 5 !
* The previous M4 builds didn't work out. This was released on my
birthday, so it could even work ;)
-- Josip Rodin <jrodin@jagor.srce.hr> Mon, 10 May 1999 00:27:47 -0700
mozilla (19990415.M4-2) unstable; urgency=low
* Let's try once again - the previous build was kinda fscked up...
-- Josip Rodin <jrodin@jagor.srce.hr> Sun, 9 May 1999 15:08:39 -0700
mozilla (19990415.M4-1) unstable; urgency=low
* This is SeaMonkey Milestone 4 !
* Massive changes to debian/rules, now it actually works :o)
+ builds in a subdirectory (yipee!)
+ removes unneeded Makefiles
+ installs a proper copyright file
* NSPR renamed to libnspr21{-dev}, thought I'm not sure it is the
real version... we still have to hardcode the dependency :(
-- Josip Rodin <jrodin@jagor.srce.hr> Tue, 4 May 1999 01:41:22 -0700
mozilla (19990410-1) unstable; urgency=low
* Let's try this snapshot from FTP... I modified the debian/rules file
a bit.
-- Josip Rodin <jrodin@jagor.srce.hr> Sat, 10 Apr 1999 19:17:59 -0700
mozilla (19990402-1) unstable; urgency=low
* New CVS pull. First attempt at mail and editor support.
-- Brent A. Fulgham <bfulgham@debian.org> Fri, 2 Apr 1999 09:15:22 -0800
mozilla (19990331-1) unstable; urgency=low
* New build, using automated script to grab the latest stable
branch from CVS.
-- Brent A. Fulgham <bfulgham@debian.org> Wed, 31 Mar 1999 14:58:40 -0800
mozilla (19990326-1) unstable; urgency=low
* Updated to fix library so-name and shlibdepends problem.
* Current CVS pull
* Double-double check that debugging is turned off.
-- Brent A. Fulgham <bfulgham@debian.org> Fri, 26 Mar 1999 09:31:45 -0800
mozilla (19990325-1) unstable; urgency=low
* Updated for fix to (hopefully) stop segfault problem.
-- Brent A. Fulgham <bfulgham@debian.org> Thu, 25 Mar 1999 12:58:18 -0800
mozilla (19990323-1) unstable; urgency=low
* This is a test release using CVS snapshots
* Continuing to use Ray's debian/ dir (thanks again!).
* Change moz-wrapper to use "apprunner" instead of the viewer (viewer is just
a test application.
* Whoo-hoo -- it's running!
-- Brent A. Fulgham <bfulgham@debian.org> Tue, 23 Mar 1999 14:25:07 -0800
mozilla (19990317-1) unstable; urgency=low
* This is a test release done just to get things moving.
* Built on va from a snapshot, using Ray's debian/ dir (thanks!).
-- Josip Rodin <jrodin@jagor.srce.hr> Sun, 21 Mar 1999 15:37:16 -0800
mozilla (19981211-0.1) unstable; urgency=low
* UNRELEASED
* UNFINISHED. TODO:
* Check we're not compiling -DDEVELOPER_DEBUG.
* Ensure nsprpub/config/UNIX.mk doesn't get a hardwired x86 reference.
* Remove the ?widgets/src/gdk/depend.mk? as part of clean.
* Remove the autogenerated files of htmlparser/src.
* ~/.mozilla -> ~/.netscape fixes bug #?????.
* Non-maintainer upload.
* New upstream tarball:
* Includes glibc2.1 patches.
* Configuration dir is now ~/.mozilla rather than ~/.netscape.
* Default widget set has switched from Motif to Gtk. The Gtk version
needed is newer than the one in frozen, so this for unstable only.
* Moved libnspr into packages of its own (as non-mozilla software like
Japhar uses it) and made mozilla depend on the runtime library package.
* Removed YAFHintel (thanks to John Goerzen for reminding me).
* [nsprpub/config/rules.mk] Use standard naming of shared library files
and SONAMEs.
* Make sure mozilla gets linked against the system libjpeg, libpng,
libz and libxmltok1 (Fixes #30306).
-- J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl> Sun, 10 Jan 1999 20:02:19 +0100
mozilla (19981008-0.1) frozen unstable; urgency=low
* Non-maintainer upload.
* New upstream tarball.
* Adapted build process to it (nspr doesn't use autoconf and needs to be
built before the regular autoconf build).
* Built with fixed libc6 (and other fixed libs), so it works again.
* Updated Standards-Version.
* [config/Linux.mk] Added EXTRA_DSO_LDOPTS = -lc to add dependency
information to the shared libraries generated.
* [nsprlib/config/Linux.mk] Added OS_LIBS = -lc to add dependency
information to the shared libraries generated.
-- J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl> Sat, 28 Nov 1998 18:29:06 +0100
mozilla (19980904-1) unstable; urgency=low
* Non-maintainer upload: this package has been orphaned.
* Used latest snapshot tarball; as no real mozilla releases have been made
so far, we use the snapshot date for the version number.
* Previous versions were accidentally built as "Debian only" source.
* Updated Standards-Version.
* Adapted to current mozilla source organisation and build process.
* LessTif version, so mozilla can go in main.
* Improved package relationships:
* Added Provides: www-browser .
* Added Recommends: mime-support .
* Added Suggest dependency for postscript-viewer, pdf-viewer, images
formats viewers, video formats viewers and audio formats players.
* Added mozilla(1) -> unknown(7) manpage symlink.
-- J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl> Thu, 10 Sep 1998 21:58:26 +0200
mozilla (5.0b1-2) unstable; urgency=low
* Made mozilla-smotif and mozilla-dmotif conflict with and replace each
other; both now provide mozilla, so that we can cope with a lesstif
version when there is one.
* Put packages in contrib and added a README.contrib-only file to explain
why.
* Tweaked ns/cmd/xfe/Makefile to force a build of the dynamic Motif version.
My previous change to this had made both versions dynamically linked to
Motif. With no change at all, both versions were statically linked.
-- Oliver Elphick <Oliver.Elphick@lfix.co.uk> Wed, 8 Apr 1998 13:17:10 +0100
mozilla (5.0b1-1) unstable; urgency=low
* Linked with Motif 2.1 and libc6
* Modified ns/cmd/xfe/Makefile to force it to build a version dynamically
linked to Motif.
* Created -smotif and -dmotif packages.
* New Maintainer
-- Oliver Elphick <Oliver.Elphick@lfix.co.uk> Tue, 7 Apr 1998 11:25:16 +0100
mozilla (5.0b1-0.0) unstable; urgency=low
* First release.
* I don't intend to maintain this package becuase:
1. I don't have a libc6 motif (this is built with a libc5 motif, though
the package only depends on libc6 and it works ok). Ideally, the
maintainer should have libc6 motif.
2. I don't have enough disk space, cpu time, bandwidth, or free time to
maintain it.
So this is just a quickie to get the package out. Somebody else should
take it from here.
* Applied some minor fixes to make it work. In particular, cmd/xfe/foo.c
is a nasty hack to define a symbol that my motif libs needed.
-- Joey Hess <joeyh@master.debian.org> Tue, 31 Mar 1998 16:43:55 -0800
Local variables:
mode: debian-changelog
End:

View File

@@ -0,0 +1,101 @@
Source: mozilla
Section: net
Priority: optional
Maintainer: Debian Mozilla maintainers <mozilla@packages.debian.org>
Standards-Version: 2.5.1
Package: mozilla
Architecture: any
Depends: ${shlibs:Depends}, libnspr3
Recommends: mime-support
Suggests: postscript-viewer, pdf-viewer, eeyes | imagemagick | netpbm | xli | xloadimage | xv, xanim | ucbmpeg-play, freeamp | amp | splay | maplay | mpg123 | xmms
Conflicts: mozilla-dmotif, mozilla-smotif
Replaces: mozilla-dmotif, mozilla-smotif
Provides: www-browser
Description: An Open Source WWW browser for X and GTK+
Mozilla is a sophisticated graphical World-Wide-Web browser, with large
number of various browser features like support for HTML 4.0, CSS 2,
JavaScript and Java. Of course, besides the network option, it can also
be used as a standalone HTML viewer.
.
Mozilla is based on part of the codebase of the well known "netscape"
("communicator" or "navigator") browser. It was opened up to the Open
Source (TM) community by Netscape Communications under a new NPL licence.
.
See the website http://www.mozilla.org/ for more information on the
development of mozilla.
Package: mozilla-mailnews
Architecture: any
Depends: mozilla (= ${Source-Version}), libnspr3
Recommends: mime-support
Suggests: mail-transport-agent
Provides: mail-reader, imap-client, news-reader
Description: An Open Source WWW browser for X and GTK+, mail and news files
Mozilla is a sophisticated graphical World-Wide-Web browser, with large
number of various browser features like support for HTML 4.0, CSS 2,
JavaScript and Java. Of course, besides the network option, it can also
be used as a standalone HTML viewer.
.
Mozilla is based on part of the codebase of the well known "netscape"
("communicator" or "navigator") browser. It was opened up to the Open
Source (TM) community by Netscape Communications under a new NPL licence.
.
See the website http://www.mozilla.org/ for more information on the
development of mozilla.
Package: mozilla-editor
Architecture: any
Depends: mozilla (= ${Source-Version}), libnspr3
Suggests: httpd
Description: An Open Source WWW browser for X and GTK+, editor files
Mozilla is a sophisticated graphical World-Wide-Web browser, with large
number of various browser features like support for HTML 4.0, CSS 2,
JavaScript and Java. Of course, besides the network option, it can also
be used as a standalone HTML viewer.
.
Mozilla is based on part of the codebase of the well known "netscape"
("communicator" or "navigator") browser. It was opened up to the Open
Source (TM) community by Netscape Communications under a new NPL licence.
.
See the website http://www.mozilla.org/ for more information on the
development of mozilla.
Package: libnspr3
Section: libs
Architecture: any
Depends: ${shlibs:Depends}
Conflicts: libnspr20, libnspr21
Replaces: libnspr20, libnspr21
Description: Netscape Portable Runtime library
This library provides platform independent non-GUI operating system
facilities including:
* threads,
* thread synchronisation,
* normal file I/O and network I/O,
* interval timing and calender time,
* basic memory management (malloc and free),
* shared library linking.
.
See http://www.mozilla.org/docs/refList/refNSPR/ for more information.
Package: libnspr3-dev
Section: libs
Architecture: any
Depends: libc6-dev, xlib6g-dev, libnspr3 (= ${Source-Version})
Conflicts: libnspr20-dev, libnspr21-dev
Replaces: libnspr20-dev, libnspr21-dev
Description: Netscape Portable Runtime library - development files
NSPR provides platform independence for non-GUI operating system
facilities including:
* threads,
* thread synchronisation,
* normal file I/O and network I/O,
* interval timing and calender time,
* basic memory management (malloc and free),
* shared library linking.
.
See http://www.mozilla.org/docs/refList/refNSPR/ for more information.
.
You need this package to get includes and static libraries for building
programs linked to NSPR.

View File

@@ -0,0 +1,13 @@
This package was originally put together by Joey Hess <joeyh@debian.org>.
People who contributed were: Oliver Elphick, J.H.M. Dassen (Ray),
Josip Rodin, Brent Fulgham.
Today, package is maintained by the maintenance team which consists
of Josip Rodin and Brent Fulgham, at <mozilla@packages.debian.org>.
Original source can be found at:
ftp://ftp.mozilla.org/pub/mozilla/releases/
ftp://ftp.mozilla.org/pub/mozilla/nightly/
The following copyright (from ../LICENCE) applies to this package:

View File

@@ -0,0 +1,5 @@
mozilla_19990716.M8-3_i386.deb net optional
mozilla-mailnews_19990716.M8-3_i386.deb net optional
mozilla-editor_19990716.M8-3_i386.deb net optional
libnspr3_19990716.M8-3_i386.deb libs optional
libnspr3-dev_19990716.M8-3_i386.deb libs optional

View File

@@ -0,0 +1,4 @@
usr/lib
usr/include/nspr
usr/doc

View File

@@ -0,0 +1,252 @@
#!/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):
#
#
# The way this thing works:
#
# + A packages file is parsed. This file contains something
# that looks like this (note that spaces are illegal):
#
# +----------------------------------------------
# |nspr:nsprpub
# |core:build,db,xpcom,intl,js,modules/libutil,modules/security/freenav,modules/libpref,modules/libimg,modules/libjar,caps
# |network:netwerk
# |layout:htmlparser,gfx,dom,view,widget/timer,widget,layout,webshell,editor,modules/plugin
# |xpinstall:xpinstall
# |profile:profile
# |xptoolkit:xpfe,rdf
# |cookie:extensions/cookie
# |wallet:extensions/wallet
# |mailnews:mailnews
# +----------------------------------------------
#
# + For each package, a list of modules corresponding to that
# package is parsed. Each modules corresponds to a
# directory somewhere in a mozilla build tree - usually
# the toplevel ones (ie, layout, nsprpub, xpcom) but not
# always (ie, extensions/wallet)
#
# + For each module, print-module-filelist.sh is invoked.
# The output of that is parsed and converted from the
# crazy mozilla install hierarchy to something that
# makes sense on a linux box.
#
# For example:
#
# bin/components/libraptorhtml.so
#
# becomes
#
# %{prefix}/lib/mozilla/components/libraptorhtml.so
#
# + Also, this script determines which files belong in
# a devel package. For example, "include/*" and "idl/*"
name=generate-package-info.sh
if [ $# -lt 4 ]
then
echo
echo "Usage: $name package-list module-list-dir outdir mozdir"
echo
exit 1
fi
package_list=$1
module_list_dir=$2
outdir=$3
mozdir=$4
if [ ! -f $package_list ]
then
echo
echo "$name: Cant access package file $package_list."
echo
exit 1
fi
if [ ! -d $module_list_dir ]
then
echo
echo "$name: Cant access module list dir $package_list."
echo
exit 1
fi
if [ ! -d $outdir ]
then
echo
echo "$name: Cant access outdir $outdir."
echo
exit 1
fi
if [ ! -d $mozdir ]
then
echo
echo "$name: Cant access mozdir $mozdir."
echo
exit 1
fi
rm -rf $outdir/*
packages=`cat $package_list | grep -v -e "^#.*$" | grep -v -e "^[ \t]*$"`
for p in $packages
do
package=`echo $p | awk -F":" '{ print $1; }'`
modules=`echo $p | awk -F":" '{ print $2; }' | tr "," " "`
file_list=$outdir/mozilla-$package-file-list.txt
file_list_devel=$outdir/mozilla-$package-devel-file-list.txt
tmp_raw=/tmp/raw-list.$$.tmp
tmp_file_list=/tmp/file-list.$$.tmp
tmp_file_list_devel=/tmp/file-list-devel.$$.tmp
tmp_dir_list=/tmp/dir-list.$$.tmp
tmp_dir_list_devel=/tmp/dir-list-devel.$$.tmp
# echo "package=$package"
# echo "modules=$modules"
# echo "file_list=$file_list"
# echo "file_list_devel=$file_list_devel"
# echo "#################"
rm -f $tmp_raw $file_list $file_list_devel
rm -f $tmp_file_list $tmp_file_list_devel
rm -f $tmp_dir_list $tmp_dir_list_devel
touch $tmp_raw $file_list $file_list_devel
touch $tmp_file_list $tmp_file_list_devel
touch $tmp_dir_list $tmp_dir_list_devel
print_cmd=$mozdir/build/package/rpm/print-module-filelist.sh
here=`pwd`
# Write the raw file list
for m in $modules
do
cd $mozdir/$m
$print_cmd >> $tmp_raw
done
cd $here
# Munge the raw list into the file list
for i in `cat $tmp_raw`
do
prefix=`echo $i | awk -F"/" '{ print $1; }'`
case "$prefix"
in
# dirs
DIR:*)
dir=`echo $i | cut -b5-`
case "$dir"
in
include*)
echo $dir >> $tmp_dir_list_devel
;;
*)
prefix2=`echo $dir | awk -F"/" '{ print $2; }'`
case "$prefix2"
in
# Cut out the "bin/" from these
res|chrome|defaults)
echo $dir | cut -b5- >> $tmp_dir_list
;;
esac
;;
esac
;;
##
## XXX: This one needs to be smarter and catch more devel only
## stuff. For example, the gecko viewer and all its resources
## should go in the devel package. This would in turn make the
## regular package smaller.
##
# include, idl, lib
include|idl|lib)
echo $i >> $tmp_file_list_devel
;;
# bin the evil
bin)
prefix2=`echo $i | awk -F"/" '{ print $2; }'`
case "$prefix2"
in
# Cut out the "bin/" from these
components|res|chrome|defaults|netscape.cfg)
echo $i | cut -b5- >> $tmp_file_list
;;
# whatever else in "bin/"
*)
# Move special files in "bin/" around
base=`basename $i`
case "$base"
in
# Mozilla brillantly puts .so files in "bin/" bleh
*.so)
echo "lib/$base" >> $tmp_file_list
;;
*)
echo $i >> $tmp_file_list
;;
esac
;;
esac
;;
# whatever else
*)
echo $i >> $tmp_file_list
;;
esac
done
# Spit out sorted file lists
cat $tmp_dir_list | sort | uniq | awk '{ printf("%%dir %%{prefix}/lib/mozilla/%s\n" , $0); }' >> $file_list
cat $tmp_file_list | sort | uniq | awk '{ printf("%%{prefix}/lib/mozilla/%s\n" , $0); }' >> $file_list
cat $tmp_dir_list_devel | sort | uniq | awk '{ printf("%%dir %%{prefix}/lib/mozilla/%s\n" , $0); }' >> $file_list_devel
cat $tmp_file_list_devel | sort | uniq | awk '{ printf("%%{prefix}/lib/mozilla/%s\n" , $0); }' >> $file_list_devel
# Cleanup
rm -f $tmp_raw $tmp_file_list $tmp_file_list_devel $tmp_dir_list $tmp_dir_list_devel
done

View File

@@ -0,0 +1,125 @@
#!/bin/sh
# A hack to make mozilla rpms in place.
here=`pwd`
if [ ! -d ./mozilla ]
then
printf "\n\nDude, you have to be on the root of the mozilla cvs tree.\n\n"
exit 1
fi
rpm_place=$here/rpm_on_demand_dir
rm -rf $rpm_place
mkdir -p $rpm_place
mkdir -p $rpm_place/tarball
mkdir -p $rpm_place/home
mkdir -p $rpm_place/topdir
mkdir -p $rpm_place/topdir/BUILD
mkdir -p $rpm_place/topdir/RPMS
mkdir -p $rpm_place/topdir/RPMS/i386
mkdir -p $rpm_place/topdir/RPMS/noarch
mkdir -p $rpm_place/topdir/SOURCES
mkdir -p $rpm_place/topdir/SPECS
mkdir -p $rpm_place/topdir/SRPMS
_top_dir=$rpm_place/topdir
_spec_dir=$_top_dir/SPECS
_sources_dir=$_top_dir/SOURCES
_rpms_dir=$_top_dir/RPMS
_home=$rpm_place/home
_rpm_macros=$_home/.rpmmacros
_tarball_dir=$rpm_place/tarball
#_spec_file=$here/build/package/rpm/mozilla.spec
##
## Setup a phony topdir for the phony rpm macros file
##
echo "%_topdir $_top_dir" >> $_rpm_macros
##
## Make a tarball of the beast
##
cd $_tarball_dir
cvs co mozilla/client.mk
make -f mozilla/client.mk pull_all
tar vzcf mozilla-source.tar.gz mozilla
#XXXX YANK
#cp /tmp/mozilla-source.tar.gz .
#XXXX YANK
tarball=`/bin/ls -1 mozilla*.tar.gz | head -1`
if [ ! -f $tarball ]
then
printf "\n\nDude, failed to make mozilla tarball.\n\n"
exit 1
fi
# Put the tarball in the SOURCES dir
mv -f $tarball $_sources_dir
printf "\n\nMozilla tarball = %s\n\n" $_sources_dir/$tarball
# Find the spec file from the rpm
spec_in_rpm=`tar tzvf $_sources_dir/$tarball |grep -w "mozilla\.spec$" | awk '{ print $6; }'`
printf "\n\nspec_in_rpm=%s\n\n" $spec_in_rpm
# Extract the spec file from the tarball
spec_in_rpm_dir=`echo $spec_in_rpm | awk -F"/" '{ print $1; }'`
printf "\n\nspec_in_rpm_dir=%s\n\n" $spec_in_rpm_dir
tar zvxf $_sources_dir/$tarball $spec_in_rpm
#_spec_file=`/bin/ls -1 $spec_in_rpm_dir | grep "\.spec$" | head -1`
#printf "\n\n_spec_file=%s\n\n" $_spec_file
if [ ! -f $spec_in_rpm ]
then
printf "\n\nFailed to extract spec file from tarball.\n\n"
exit 1
fi
# Put the spec file in SPECS
#cp $spec_in_rpm $_spec_dir
#XXXX YANK
cp /tmp/mozilla.spec $_spec_dir
#XXXX YANK
HOME=$_home rpm -ba $_spec_dir/mozilla.spec # > /dev/null 2>&1
if [ $? -eq 0 ]
then
mkdir -p $rpm_place/RPMS
cp $_rpms_dir/i386/*.rpm $rpm_place/RPMS/
last=`/bin/ls -lt1 $rpm_place/RPMS|head -1`
echo "New RPM written to RPMS/$last"
else
echo "Failed to build the rpm. Check the spec file."
fi
echo
cd $rpm_place
# Cleanup
rm -rf $rpm_place/topdir $rpm_place/home

View File

@@ -0,0 +1,133 @@
#!/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):
#
##
## Usage:
##
## $ mozilla
##
## This script is meant to run a mozilla program from the mozilla
## rpm installation.
##
## The script will setup all the environment voodoo needed to make
## mozilla work.
##
## Standard shell script disclaimer blurb thing:
##
## This script is a hcak. Its brute force. Its horrible.
## It doesnt use Artificial Intelligence. It doesnt use Virtual Reality.
## Its not perl. Its not python. It probably wont work unchanged on
## the "other" thousands of unices. But it worksforme.
##
## If you have an improvement, patch, idea, whatever, on how to make this
## script better, post it here:
##
## news://news.mozilla.org/netscape.public.mozilla.patches
## news://news.mozilla.org/netscape.public.mozilla.unix
##
##
##
## Potential improvements:
##
## + Run ldd on the program and report missing dlls
## + All the "other" unices/packages
##
cmdname=`basename $0`
##
## location of the apprunner binary.
##
MOZ_APPRUNNER_NAME="/usr/lib/mozilla/bin/apprunner"
##
## Variables
##
MOZ_DIST_BIN=""
MOZ_PROGRAM=""
##
## Functions
##
moz_bail()
{
message=$1
echo
echo "$cmdname: $message"
echo
exit 1
}
moz_test_binary()
{
binary=$1
if [ -f "$binary" ]
then
if [ -x "$binary" ]
then
return 1
fi
fi
return 0
}
moz_test_binary $MOZ_APPRUNNER_NAME
if [ $? -eq 1 ]
then
MOZ_PROGRAM=$MOZ_APPRUNNER_NAME
fi
##
## Make sure the program is executable
##
if [ ! -x $MOZ_PROGRAM ]
then
moz_bail "Cannot execute $MOZ_PROGRAM."
fi
##
## Set MOZILLA_FIVE_HOME
##
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
export MOZILLA_FIVE_HOME
##
## Set LD_LIBRARY_PATH
##
if [ "$LD_LIBRARY_PATH" ]
then
LD_LIBRARY_PATH=/usr/lib/mozilla/lib:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=/usr/lib/mozilla/lib
fi
export LD_LIBRARY_PATH
exec $MOZ_PROGRAM ${1+"$@"}

View File

@@ -0,0 +1,10 @@
nspr:nsprpub
core:build,db,xpcom,intl,js,modules/libutil,modules/security/freenav,modules/libpref,modules/libimg,modules/libjar,caps
network:netwerk
layout:htmlparser,gfx,dom,view,widget/timer,widget,layout,webshell,editor,modules/plugin
xpinstall:xpinstall
profile:profile
xptoolkit:xpfe,rdf
cookie:extensions/cookie
wallet:extensions/wallet
mailnews:mailnews

View File

@@ -0,0 +1,115 @@
#!/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):
#
##
## Usage:
##
## $ mozilla
##
## This script is meant to run a mozilla program from the mozilla
## rpm installation.
##
## The script will setup all the environment voodoo needed to make
## mozilla work.
##
## Standard shell script disclaimer blurb thing:
##
## This script is a hcak. Its brute force. Its horrible.
## It doesnt use Artificial Intelligence. It doesnt use Virtual Reality.
## Its not perl. Its not python. It probably wont work unchanged on
## the "other" thousands of unices. But it worksforme.
##
## If you have an improvement, patch, idea, whatever, on how to make this
## script better, post it here:
##
## news://news.mozilla.org/netscape.public.mozilla.patches
## news://news.mozilla.org/netscape.public.mozilla.unix
##
##
##
## Potential improvements:
##
## + Run ldd on the program and report missing dlls
## + All the "other" unices/packages
##
cmdname=`basename $0`
##
## location of the viewer binary.
##
MOZ_VIEWER_NAME="/usr/lib/mozilla/bin/viewer"
##
## Variables
##
MOZ_PROGRAM=""
##
## Functions
##
moz_bail()
{
message=$1
echo
echo "$cmdname: $message"
echo
exit 1
}
moz_test_binary()
{
binary=$1
if [ -f "$binary" ]
then
if [ -x "$binary" ]
then
return 1
fi
fi
return 0
}
MOZ_PROGRAM=$MOZ_APPRUNNER_NAME
moz_test_binary $MOZ_PROGRAM
if [ $? -eq 0 ]
then
moz_bail "Cannot execute $MOZ_PROGRAM."
fi
##
## Set MOZILLA_FIVE_HOME
##
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
export MOZILLA_FIVE_HOME
exec $MOZ_PROGRAM ${1+"$@"}

View File

@@ -0,0 +1,410 @@
Summary: Mozilla and stuff
Name: mozilla
Version: 666
Release: 0
Serial: 0
Copyright: NPL/MPL
Group: Mozilla
Source0: ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-source.tar.gz
#Source0: ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-binary.tar.gz
Buildroot: /var/tmp/mozilla-root
Prefix: /usr
Requires: gtk+ >= 1.2.4
#
# TODO: lots of stuff
#
# + Add nice summary and description entries
#
# + Make sure the requires entries make sense
#
# + Add more packages for other mozilla extensions (for instance: irc)
#
# + Remove and/or combine the current packages that make more sense
#
# + mozilla-xpcom package ?
#
# + should nspr be its own package ?
#
# + it is probably a good idea to have a mozilla-browser package
# instead of mozilla-xptoolkit
#
# + the mozilla-xpinstall package obviously doesnt make sense -
# its there for show
#
# + a lot of stuff is dumped into the default package that
# should really be in the devel package. For example the
# gecko viewer and all its tests.
#
# For the code that determines what goes where, see:
#
# mozilla/build/package/rpm/print-module-filelist.sh
# mozilla/build/package/rpm/generate-package-info.sh
#
#Exclusivearch: i386
%description
Mozilla is the king of all beasts - big badass Beasts.
%package nspr
Summary: mozilla-nspr
Group: Mozilla
%description nspr
mozilla-nspr
%package nspr-devel
Requires: mozilla-nspr
Summary: mozilla-nspr-devel
Group: Mozilla
%description nspr-devel
mozilla-nspr devel
%package core
Summary: mozilla-core
Group: Mozilla
Requires: mozilla-nspr
%description core
mozilla-core
%package core-devel
Requires: mozilla-core
Summary: mozilla-core-devel
Group: Mozilla
Requires: mozilla-nspr-devel
%description core-devel
mozilla-core devel
%package network
Summary: mozilla-network
Group: Mozilla
Requires: mozilla-core
%description network
mozilla-network
%package network-devel
Requires: mozilla-network
Summary: mozilla-network-devel
Group: Mozilla
Requires: mozilla-core-devel
%description network-devel
mozilla-network devel
%package layout
Summary: mozilla-layout
Group: Mozilla
Requires: mozilla-network
%description layout
mozilla-layout
%package layout-devel
Requires: mozilla-layout
Summary: mozilla-layout-devel
Group: Mozilla
Requires: mozilla-network-devel
%description layout-devel
mozilla-layout devel
%package xpinstall
Summary: mozilla-xpinstall
Group: Mozilla
Requires: mozilla-layout
%description xpinstall
mozilla-xpinstall
%package xpinstall-devel
Requires: mozilla-xpinstall
Summary: mozilla-xpinstall-devel
Group: Mozilla
Requires: mozilla-layout-devel
%description xpinstall-devel
mozilla-xpinstall devel
%package profile
Summary: mozilla-profile
Group: Mozilla
Requires: mozilla-layout
%description profile
mozilla-profile
%package profile-devel
Requires: mozilla-profile
Summary: mozilla-profile-devel
Group: Mozilla
Requires: mozilla-layout-devel
%description profile-devel
mozilla-profile devel
%package xptoolkit
Summary: mozilla-xptoolkit
Group: Mozilla
Requires: mozilla-layout
%description xptoolkit
mozilla-xptoolkit
%package xptoolkit-devel
Requires: mozilla-xptoolkit
Summary: mozilla-xptoolkit-devel
Group: Mozilla
Requires: mozilla-layout-devel
%description xptoolkit-devel
mozilla-xptoolkit devel
%package cookie
Summary: mozilla-cookie
Group: Mozilla
Requires: mozilla-layout
%description cookie
mozilla-cookie
%package cookie-devel
Requires: mozilla-cookie
Summary: mozilla-cookie-devel
Group: Mozilla
Requires: mozilla-layout-devel
%description cookie-devel
mozilla-cookie devel
%package wallet
Summary: mozilla-wallet
Group: Mozilla
Requires: mozilla-layout
%description wallet
mozilla-wallet
%package wallet-devel
Requires: mozilla-wallet
Summary: mozilla-wallet-devel
Group: Mozilla
Requires: mozilla-layout-devel
%description wallet-devel
mozilla-wallet devel
%package mailnews
Summary: mozilla-mailnews
Group: Mozilla
Requires: mozilla-layout
%description mailnews
mozilla-mailnews
%package mailnews-devel
Requires: mozilla-mailnews
Summary: mozilla-mailnews-devel
Group: Mozilla
Requires: mozilla-layout-devel
%description mailnews-devel
mozilla-mailnews devel
%prep
%setup -n mozilla
%install
rm -rf $RPM_BUILD_ROOT
################################
#
# Remember where we are
#
################################
here=`pwd`
################################
#
# configure
#
################################
if [ 1 ]
then
###
###
###
rm -f $here/blank
touch $here/blank
MOZCONFIG=blank
export MOZCONFIG
./configure --disable-tests --with-xlib=no --with-motif=no --enable-strip-libs --disable-debug --enable-optimize --disable-gtk-mozilla
make
fi
################################
mkdir -p $RPM_BUILD_ROOT/%{prefix}/lib/mozilla
mkdir -p $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/plugins
################################
#
# Generate the package lists
#
################################
here=`pwd`
mkdir -p $here/file-lists
cd build/package/rpm
./generate-package-info.sh mozilla-package-list.txt . $here/file-lists $here
cd $here
################################
################################
#
# Copy the stuff in dist/* to the rpm stage place
#
################################
cp -r dist/* $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/
cd $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/
/bin/mv -f bin/*.so lib
/bin/mv -f bin/chrome .
/bin/mv -f bin/components .
/bin/mv -f bin/defaults .
/bin/mv -f bin/netscape.cfg .
/bin/mv -f bin/res .
strip lib/*.so
strip components/*.so
cd $here
install -m 755 build/package/rpm/mozilla $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/bin
################################
##
## This function gets called on the %post stage to make sure any
## new components that are installed in the system get
## registered to component.reg
##
%define call_regxpcom here=`pwd` ; cd %{prefix}/lib/mozilla ; LD_LIBRARY_PATH=`pwd`/lib ./bin/regxpcom ; cd $here
%clean
rm -rf $RPM_BUILD_ROOT
%files -f file-lists/mozilla-nspr-file-list.txt nspr
%defattr(-,root,root)
%files -f file-lists/mozilla-nspr-devel-file-list.txt nspr-devel
%defattr(-,root,root)
%files -f file-lists/mozilla-core-file-list.txt core
%defattr(-,root,root)
%dir %{prefix}/lib/mozilla
%dir %{prefix}/lib/mozilla/bin
%dir %{prefix}/lib/mozilla/chrome
%dir %{prefix}/lib/mozilla/components
%dir %{prefix}/lib/mozilla/defaults
%dir %{prefix}/lib/mozilla/defaults/pref
%dir %{prefix}/lib/mozilla/lib
%dir %{prefix}/lib/mozilla/plugins
%dir %{prefix}/lib/mozilla/res
%files -f file-lists/mozilla-core-devel-file-list.txt core-devel
%defattr(-,root,root)
%post core
%{call_regxpcom}
%files -f file-lists/mozilla-network-file-list.txt network
%defattr(-,root,root)
%files -f file-lists/mozilla-network-devel-file-list.txt network-devel
%defattr(-,root,root)
%post network
%{call_regxpcom}
%files -f file-lists/mozilla-layout-file-list.txt layout
%defattr(-,root,root)
%files -f file-lists/mozilla-layout-devel-file-list.txt layout-devel
%defattr(-,root,root)
%post layout
%{call_regxpcom}
%files -f file-lists/mozilla-xpinstall-file-list.txt xpinstall
%defattr(-,root,root)
%files -f file-lists/mozilla-xpinstall-devel-file-list.txt xpinstall-devel
%defattr(-,root,root)
%post xpinstall
%{call_regxpcom}
%files -f file-lists/mozilla-profile-file-list.txt profile
%defattr(-,root,root)
%files -f file-lists/mozilla-profile-devel-file-list.txt profile-devel
%defattr(-,root,root)
%post profile
%{call_regxpcom}
%files -f file-lists/mozilla-xptoolkit-file-list.txt xptoolkit
%defattr(-,root,root)
%files -f file-lists/mozilla-xptoolkit-devel-file-list.txt xptoolkit-devel
%defattr(-,root,root)
%post xptoolkit
%{call_regxpcom}
%files -f file-lists/mozilla-cookie-file-list.txt cookie
%defattr(-,root,root)
%files -f file-lists/mozilla-cookie-devel-file-list.txt cookie-devel
%defattr(-,root,root)
%post cookie
%{call_regxpcom}
%files -f file-lists/mozilla-wallet-file-list.txt wallet
%defattr(-,root,root)
%files -f file-lists/mozilla-wallet-devel-file-list.txt wallet-devel
%defattr(-,root,root)
%post wallet
%{call_regxpcom}
%files -f file-lists/mozilla-mailnews-file-list.txt mailnews
%defattr(-,root,root)
%files -f file-lists/mozilla-mailnews-devel-file-list.txt mailnews-devel
%defattr(-,root,root)
%post mailnews
%{call_regxpcom}
%changelog
* Wed Oct 20 1999 Ramiro Estrugo <ramiro@fateware.com>
- First rev.

View File

@@ -0,0 +1,156 @@
#!/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):
#
#
# The way this thing works:
#
# + a phony $(DIST) is created: /tmp/foo
#
# + The module is instaled there so that it can be isolated and
# catalogued.
#
# + A bunch of case statements determine what gets ignored
# and what is otherwise echoed as a file or dir member for
# the module
#
# + Most of this hacks are a result of the totally messed
# way in which mozilla pretentsto do "make install"
here=`pwd`
dist=/tmp/dist-$$.tmp
raw_file_list=/tmp/raw-file-list-$$.txt
file_list=/tmp/file-list-$$.txt
raw_dir_list=/tmp/raw-dir-list-$$.txt
dir_list=/tmp/dir-list-$$.txt
rm -rf $dist $raw_file_list $file_list $raw_dir_list $dir_list
# Need to mkdir include or else "make export" in mozilla gets confused
mkdir -p $dist
mkdir -p $dist/include
make -s DIST=$dist XPDIST=$dist PUBLIC=$dist/include EXTRA_DEPS= >/dev/null 2>&1
cd $dist
find -type l | cut -b3- > $raw_file_list
find -type d | cut -b3- | grep -v -e "^[ \t]*$" > $raw_dir_list
touch $file_list
for i in `cat $raw_file_list`
do
skip="false"
dir=`echo $i | awk -F"/" '{ print $1; }'`
# "lib" voodoo
if [ "$dir" = "lib" ]
then
rest=`echo $i | cut -b5-`
bin_dup="bin/$rest"
# Dont output files in "lib/" that are duplicated in "bin/"
if [ -f "$bin_dup" ]
then
skip="true"
fi
# Test for files that need to be skipped
file=`basename $i`
case "$file"
in
# Dont skip util .a files
*util_s.a)
:
;;
# Dont skip nspr .a files
libnspr*.a|libplc*|libplds*)
:
;;
# Skip all .a files
*.a)
skip="true"
;;
# Skip .so files
*.so)
skip="true"
;;
esac
fi
if [ "$skip" != "true" ]
then
echo $i >> $file_list
# else
# echo "skipping $i"
fi
done
touch $dir_list
for i in `cat $raw_dir_list`
do
skip="false"
# Skip directories that are shared across all of mozilla's components
case $i in
# level 1
include|idl|lib|bin)
skip="true"
;;
# level 2
lib/components|bin/components|bin/chrome|bin/res|bin/defaults|bin/plugins)
skip="true"
;;
# level 3
bin/defaults/pref)
skip="true"
;;
esac
if [ "$skip" != "true" ]
then
echo DIR:$i >> $dir_list
# else
# echo "skipping $i"
fi
done
cat $file_list
cat $dir_list
rm -rf $dist $raw_file_list $file_list $raw_dir_list $dir_list
cd $here

View File

@@ -0,0 +1,26 @@
#!/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):
#
#
module=`make -s echo-depth-path | cut -b9-`
echo $module

View File

@@ -0,0 +1,37 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Mozilla 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
include $(topsrcdir)/config/rules.mk
export::
chmod 755 mozilla-config
$(INSTALL) -m 755 mozilla-config $(DIST)/bin
install:: $(srcdir)/run-mozilla.sh
$(INSTALL) $< $(DIST)/bin

View File

@@ -0,0 +1,8 @@
EXPORTED {
global:
NSGetFactory;
NSGetModule;
NSRegisterSelf;
NSUnregisterSelf;
local: *;
};

115
mozilla/build/unix/mddepend.pl Executable file
View File

@@ -0,0 +1,115 @@
#!/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 this file as it was released upon March 8, 1999.
#
# 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):
# mddepend.pl - Reads in dependencies generated my -MD flag. Prints list
# of objects that need to be rebuilt. These can then be added to the
# PHONY target. Using this script copes with the problem of header
# files that have been removed from the build.
#
# Usage:
# mddepend.pl <output_file> <dependency_files...>
#
# Send comments, improvements, bugs to Steve Lamm (slamm@netscape.com).
#$debug = 1;
$outfile = shift @ARGV;
@alldeps=();
# Parse dependency files
while ($line = <>) {
chomp $line;
($obj,$rest) = split /\s*:\s+/, $line, 2;
next if $obj eq '';
if ($line =~ /\\$/) {
chop $rest;
$hasSlash = 1;
} else {
$hasSlash = 0;
}
$deps = [ $obj, split /\s+/, $rest ];
while ($hasSlash and $line = <>) {
chomp $line;
if ($line =~ /\\$/) {
chop $line;
} else {
$hasSlash = 0;
}
$line =~ s/^\s+//;
push @{$deps}, split /\s+/, $line;
}
warn "add @{$deps}\n" if $debug;
push @alldeps, $deps;
}
# Test dependencies
foreach $deps (@alldeps) {
$obj = shift @{$deps};
$mtime = (stat $obj)[9] or next;
foreach $dep_file (@{$deps}) {
if (not defined($dep_mtime = $modtimes{$dep_file})) {
$dep_mtime = (stat $dep_file)[9];
$modtimes{$dep_file} = $dep_mtime;
}
if ($dep_mtime ne '' and $dep_mtime > $mtime) {
print "$obj($mtime) older than $dep_file($dep_mtime)\n" if $debug;
push @objs, $obj;
# Object will be marked for rebuild. No need to check other dependencies.
last;
}
}
}
# Output objects to rebuild (if needed).
if (@objs) {
$new_output = "@objs: FORCE\n";
# Read in the current dependencies file.
open(OLD, "<$outfile")
and $old_output = <OLD>;
close(OLD);
# Only write out the dependencies if they are different.
if ($new_output ne $old_output) {
open(OUT, ">$outfile") and print OUT "$new_output";
print "Updating dependencies file, $outfile\n";
if ($debug) {
print "new: $new_output\n";
print "was: $old_output\n" if $old_output ne '';
}
}
} elsif (-s $outfile) {
# Remove the old dependencies because all objects are up to date.
print "Removing old dependencies file, $outfile\n";
if ($debug) {
open(OLD, "<$outfile")
and $old_output = <OLD>;
close(OLD);
print "was: $old_output\n";
}
unlink $outfile;
}

View File

@@ -0,0 +1,69 @@
#
# 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 build/unix/modules.mk from the Mozilla source tree.
#
# The Initial Developer of the Original Code is Christopher
# Seawood. Portions created by Christopher Seawood are
# Copyright (C) 2000 Christopher Seawood. All Rights Reserved.
#
#
BUILD_MODULE_DIRS := config build include
_BUILD_MODS =
NSPRPUB_DIR =
# client.mk does not have topsrcdir set
ifndef topsrcdir
topsrcdir=$(TOPSRCDIR)
endif
ifndef MOZ_NATIVE_NSPR
# Do not regenerate Makefile for NSPR
ifdef USE_NSPR_AUTOCONF
NSPRPUB_DIR = nsprpub
else
NSPRPUB_DIR = $(topsrcdir)/nsprpub
endif
endif
ifneq ($(BUILD_MODULES),all)
ifdef CROSS_COMPILE
BUILD_MODULE_DIRS_js = $(NSPRPUB_DIR)
endif
BUILD_MODULE_DIRS_dbm = $(NSPRPUB_DIR) dbm
BUILD_MODULE_DIRS_js += js
BUILD_MODULE_DIRS_necko = $(BUILD_MODULE_DIRS_xpcom) netwerk
BUILD_MODULE_DIRS_transformiix = extensions/transformiix
BUILD_MODULE_DIRS_xpcom = $(NSPRPUB_DIR) modules/libreg xpcom
BUILD_MODULE_DIRS_xpconnect = $(BUILD_MODULE_DIRS_xpcom) $(BUILD_MODULE_DIRS_js) js/src/xpconnect
BUILD_MODULE_DIRS += $(foreach mod,$(BUILD_MODULES), $(BUILD_MODULE_DIRS_$(mod)))
# Remove dups from the list to speed up the build
#
ifdef PERL
BUILD_MODULE_DIRS := $(shell $(PERL) -e 'undef @out; \
foreach $$d (@ARGV) { \
push @out, $$d if (!grep(/$$d/, @out)); \
}; \
print "@out\n"; ' $(BUILD_MODULE_DIRS))
else
# Since PERL isn't defined, client.mk must've called us so order doesn't matter
BUILD_MODULE_DIRS := $(sort $(BUILD_MODULE_DIRS))
endif
endif # BUILD_MODULES

View File

@@ -0,0 +1,80 @@
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage()
{
cat <<EOF
Usage: mozilla-config [OPTIONS] [LIBRARIES]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
[--version]
[--libs]
[--cflags]
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo_prefix=yes
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo_exec_prefix=yes
;;
--version)
echo -1
exit 0
;;
--cflags)
if test "@includedir@" != /usr/include ; then
includes="-I@includedir@"
fi
echo_cflags=yes
;;
--libs)
echo_libs=yes
;;
*)
usage 1 1>&2
;;
esac
shift
done
if test "$echo_prefix" = "yes"; then
echo $prefix
fi
if test "$echo_exec_prefix" = "yes"; then
echo $exec_prefix
fi
if test "$echo_cflags" = "yes"; then
cflags="@DEFS@"
echo $includes $cflags
fi
if test "$echo_libs" = "yes"; then
echo -L@libdir@ -lxpcom
fi

View File

@@ -0,0 +1,8 @@
USE_PTHREADS=@MOZ_NSPRENV_USE_PTHREADS@
BUILD_OPT=@MOZ_NSPRENV_BUILD_OPT@
NS_USE_GCC=@MOZ_NSPRENV_NS_USE_GCC@
NO_MDUPDATE=@MOZ_NSPRENV_NO_MDUPDATE@
NS_USE_NATIVE=@MOZ_NSPRENV_NS_USE_NATIVE@
MOZILLA_CLIENT=@MOZ_NSPRENV_MOZILLA_CLIENT@
CLASSIC_NSPR=@MOZ_NSPRENV_CLASSIC_NSPR@
GC_LEAK_DETECTOR=@MOZ_NSPRENV_GC_LEAK_DETECTOR@

View File

@@ -0,0 +1,7 @@
DIST=@MOZ_NSPRENV_DIST@
MOZ_NSPRENV_OVERRIDE_MAKE=@MOZ_NSPRENV_OVERRIDE_MAKE@
ifdef MOZ_NSPRENV_OVERRIDE_MAKE
MAKE=$(MOZ_NSPRENV_OVERRIDE_MAKE)
endif

View File

@@ -0,0 +1,73 @@
#!/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):
# jim_nance@yahoo.com
#
#
# This script will print the depth path for a mozilla directory based
# on the info in Makefile
#
# Its a hack. Its brute force. Its horrible.
# It dont use Artificial Intelligence. It dont use Virtual Reality.
# Its not perl. Its not python. But it works.
#
# Usage: print-depth-path.sh
#
# Send comments, improvements, bugs to jim_nance@yahoo.com
#
# Make sure a Makefile exists
if [ ! -f Makefile ]
then
echo
echo "There ain't no 'Makefile' over here: $pwd, dude."
echo
exit
fi
# awk can be quite primitave. Try enhanced versions first
for AWK in gawk nawk awk; do
if type $AWK 2>/dev/null 1>/dev/null; then
break;
fi
done
$AWK -v PWD=`pwd` '
{
if($1 == "DEPTH") {
DEPTH=$0
}
}
END {
sub("^.*DEPTH.*=[ \t]*", "", DEPTH)
dlen = split(DEPTH, darray, "/")
plen = split(PWD, parray, "/")
fsep=""
for(i=plen-dlen; i<=plen; i++) {
printf("%s%s", fsep, parray[i])
fsep="/"
}
printf("\n")
}' Makefile

View File

@@ -0,0 +1,21 @@
#!/bin/sh
#
# Usage from makefile:
# ELOG = . $(topdir)/build/autoconf/print-failed-commands.sh
# $(ELOG) $(CC) $CFLAGS -o $@ $<
#
# This shell script is used by the build system to print out commands that fail
# to execute properly. It is designed to make the "make -s" command more
# useful.
#
# Note that in the example we are sourcing rather than execing the script.
# Since make already started a shell for us, we might as well use it rather
# than starting a new one.
( exec "$@" ) || {
echo
echo "In the directory " `pwd`
echo "The following command failed to execute properly:"
echo "$@"
exit 1;
}

View File

@@ -0,0 +1,47 @@
#!/bin/sh
# 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 test-ending-newline.sh
#
# The Initial Developer of the Original Code is Christopher
# Seawood <cls@seawood.org>. Portions created by Christopher Seawood
# are Copyright (C) 2000 Christopher Seawood. All Rights Reserved.
#
# The purpose of this file is to find the files that do not end with a
# newline. Some compilers fail if the source files do not end with a
# newline.
#
#
test_file=newline_test
test_dummy=newline_testee
inlist="$*"
broken_list=
if test "$inlist" = ""; then
echo "Usage: $0 *.c *.cpp";
exit 0;
fi
echo "" > $test_file
for f in $inlist; do
if test -f $f; then
tail -c 1 $f > $test_dummy
if ! `cmp -s $test_file $test_dummy`; then
broken_list="$broken_list $f"
fi
fi
done
rm -f $test_file $test_dummy
echo $broken_list

View File

@@ -0,0 +1,13 @@
#!/bin/sh
LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH
PROG=mozilla-bin
PLIBS=""
for l in *.so components/*.so; do
PLIBS="$PLIBS -incobj $l"
done
$ECHO /bin/gprof -L. -Lcomponents -all $PLIBS $PROG $PROG.hiout

View File

@@ -0,0 +1,21 @@
#!/bin/sh
LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH
PROG=mozilla-bin
PLIBS="-L."
TOOL=hiprof
for l in ./*.so components/*.so; do
PLIBS="$PLIBS -incobj $l"
done
$ECHO atom $PROG -tool $TOOL -env threads -toolargs="-calltime -systime" -all $PLIBS
cd components && (
for f in lib*.so; do
mv ../$f.$PROG.$TOOL.threads .
done
)

373
mozilla/build/unix/run-mozilla.sh Executable file
View File

@@ -0,0 +1,373 @@
#!/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):
#
#
##
## Usage:
##
## $ run-mozilla.sh [options] [program] [program arguments]
##
## This script is meant to run a mozilla program from the mozilla
## source tree. This is mostly useful to folks hacking on mozilla.
##
## A mozilla program is currently either viewer or mozilla-bin. The
## default is viewer.
##
## The script will setup all the environment voodoo needed to make
## mozilla work.
#
##
## Standard shell script disclaimer blurb thing:
##
## This script is a hack. It's brute force. It's horrible.
## It doesn't use Artificial Intelligence. It doesn't use Virtual Reality.
## It's not perl. It's not python. It probably won't work unchanged on
## the "other" thousands of unices. But it worksforme. --ramiro
##
## If you have an improvement, patch, idea, whatever, on how to make this
## script better, post it here:
##
## news://news.mozilla.org/netscape.public.mozilla.patches
## news://news.mozilla.org/netscape.public.mozilla.unix
##
#
##
## Potential improvements:
##
## + Run from anywhere in the tree.
## + Run ldd on the program and report missing dlls
## + Deal with NSPR in the tree
## + All the other unices
##
#
cmdname=`basename $0`
MOZ_DIST_BIN=`dirname $0`
MOZ_APPRUNNER_NAME="./mozilla-bin"
MOZ_VIEWER_NAME="./viewer"
MOZ_PROGRAM=""
#
##
## Functions
##
##########################################################################
moz_usage()
{
cat << EOF
Usage: ${cmdname} [options] [program]
options:
-g Run in debugger.
--debug
-d debugger Debugger to use.
--debugger debugger
Examples:
Run the viewer
${cmdname} viewer
Run the mozilla-bin binary
${cmdname} mozilla-bin
Debug the viewer in a debugger
${cmdname} -g viewer
Debug the mozilla-bin binary in gdb
${cmdname} -g mozilla-bin -d gdb
EOF
return 0
}
##########################################################################
moz_bail()
{
message=$1
echo
echo "$cmdname: $message"
echo
exit 1
}
##########################################################################
moz_test_binary()
{
binary=$1
if [ -f "$binary" ]
then
if [ -x "$binary" ]
then
return 1
fi
fi
return 0
}
##########################################################################
moz_get_debugger()
{
debuggers="ddd gdb dbx bdb"
debugger="notfound"
done="no"
for d in $debuggers
do
moz_test_binary /bin/type
if [ $? -eq 1 ]
then
dpath=`type ${d} | awk '{print $3;}'`
else
dpath=`which ${d}`
fi
if [ -x "$dpath" ]
then
debugger=$dpath
break
fi
done
echo $debugger
return 0
}
##########################################################################
moz_run_program()
{
prog=$MOZ_PROGRAM
##
## Make sure the program is executable
##
if [ ! -x "$prog" ]
then
moz_bail "Cannot execute $prog."
fi
##
## Use md5sum to crc a core file. If md5sum is not found on the system,
## then dont debug core files.
##
moz_test_binary /bin/type
if [ $? -eq 1 ]
then
crc_prog=`type md5sum | awk '{print $3;}'`
else
crc_prog=`which md5sum`
fi
if [ -x "$crc_prog" ]
then
DEBUG_CORE_FILES=1
fi
if [ "$DEBUG_CORE_FILES" ]
then
crc_old=
if [ -f core ]
then
crc_old=`$crc_prog core | awk '{print $1;}' `
fi
fi
##
## Run the program
##
$prog ${1+"$@"}
if [ "$DEBUG_CORE_FILES" ]
then
if [ -f core ]
then
crc_new=`$crc_prog core | awk '{print $1;}' `
fi
fi
if [ "$crc_old" != "$crc_new" ]
then
printf "\n\nOh no! %s just dumped a core file.\n\n" $prog
printf "Do you want to debug this ? "
printf "You need a lot of memory for this, so watch out ? [y/n] "
read ans
if [ "$ans" = "y" ]
then
debugger=`moz_get_debugger`
if [ -x "$debugger" ]
then
echo "$debugger $prog core"
# See http://www.mozilla.org/unix/debugging-faq.html
# For why LD_BIND_NOW is needed
LD_BIND_NOW=1; export LD_BIND_NOW
$debugger $prog core
else
echo "Could not find a debugger on your system."
fi
fi
fi
}
##########################################################################
moz_debug_program()
{
prog=$MOZ_PROGRAM
##
## Make sure the program is executable
##
if [ ! -x "$prog" ]
then
moz_bail "Cannot execute $prog."
fi
if [ -n "$moz_debugger" ]
then
moz_test_binary /bin/type
if [ $? -eq 1 ]
then
debugger=`type $moz_debugger | awk '{print $3;}'`
else
debugger=`which $moz_debugger`
fi
else
debugger=`moz_get_debugger`
fi
if [ -x "$debugger" ]
then
echo "set args ${1+"$@"}" > /tmp/mozargs$$
# If you are not using ddd, gdb and know of a way to convey the arguments
# over to the prog then add that here- Gagan Saksena 03/15/00
case `basename $debugger` in
gdb) echo "$debugger $prog -x /tmp/mozargs$$"
$debugger $prog -x /tmp/mozargs$$
;;
ddd) echo "$debugger --debugger \"gdb -x /tmp/mozargs$$\" $prog"
$debugger --debugger "gdb -x /tmp/mozargs$$" $prog
;;
*) echo "$debugger $prog ${1+"$@"}"
$debugger $prog ${1+"$@"}
;;
esac
/bin/rm /tmp/mozargs$$
else
echo "Could not find a debugger on your system."
fi
}
##########################################################################
##
## Command line arg defaults
##
moz_debug=0
moz_debugger=""
#
##
## Parse the command line
##
while [ $# -gt 0 ]
do
case $1 in
-g | --debug)
moz_debug=1
shift
;;
-d | --debugger)
moz_debugger=$2;
shift 2
;;
*)
break;
;;
esac
done
#
##
## Program name given in $1
##
if [ $# -gt 0 ]
then
MOZ_PROGRAM=$1
shift
fi
##
## Program not given, try to guess a default
##
if [ -z "$MOZ_PROGRAM" ]
then
##
## Try viewer
##
moz_test_binary $MOZ_VIEWER_NAME
if [ $? -eq 1 ]
then
MOZ_PROGRAM=$MOZ_VIEWER_NAME
##
## Try mozilla-bin
##
else
moz_test_binary $MOZ_APPRUNNER_NAME
if [ $? -eq 1 ]
then
MOZ_PROGRAM=$MOZ_APPRUNNER_NAME
fi
fi
fi
#
#
##
## Make sure the program is executable
##
if [ ! -x "$MOZ_PROGRAM" ]
then
moz_bail "Cannot execute $MOZ_PROGRAM."
fi
#
##
## Set MOZILLA_FIVE_HOME
##
MOZILLA_FIVE_HOME=$MOZ_DIST_BIN
#
##
## Set LD_LIBRARY_PATH
LD_LIBRARY_PATH=${MOZ_DIST_BIN}${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"}
#
## Set SHLIB_PATH for HPUX
SHLIB_PATH=${MOZ_DIST_BIN}${SHLIB_PATH+":$SHLIB_PATH"}
#
## Set LIBPATH for AIX
LIBPATH=${MOZ_DIST_BIN}${LIBPATH+":$LIBPATH"}
#
## Set LIBPATH for BeOS
LIBRARY_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/components${LIBRARY_PATH+":$LIBRARY_PATH"}
#
## Set ADDON_PATH for BeOS
ADDON_PATH=${MOZ_DIST_BIN}${ADDON_PATH+":$ADDON_PATH"}
echo "MOZILLA_FIVE_HOME=$MOZILLA_FIVE_HOME"
echo " LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
echo " LIBRARY_PATH=$LIBRARY_PATH"
echo " SHLIB_PATH=$SHLIB_PATH"
echo " LIBPATH=$LIBPATH"
echo " ADDON_PATH=$ADDON_PATH"
echo " MOZ_PROGRAM=$MOZ_PROGRAM"
echo " MOZ_TOOLKIT=$MOZ_TOOLKIT"
echo " moz_debug=$moz_debug"
echo " moz_debugger=$moz_debugger"
#
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
export SHLIB_PATH LIBPATH LIBRARY_PATH ADDON_PATH
if [ $moz_debug -eq 1 ]
then
moz_debug_program ${1+"$@"}
else
moz_run_program ${1+"$@"}
fi

View File

@@ -0,0 +1,21 @@
#!/bin/sh
LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH
PROG=mozilla-bin
PLIBS="-L."
TOOL=third
for l in ./*.so components/*.so; do
PLIBS="$PLIBS -incobj $l"
done
$ECHO atom $PROG -tool $TOOL -env threads -g -all $PLIBS -toolargs="-leaks all -before NS_ShutdownXPCOM"
cd components && (
for f in lib*.so; do
mv ../$f.$PROG.$TOOL.threads .
done
)

32
mozilla/caps/Makefile.in Normal file
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 = idl include src
include $(topsrcdir)/config/rules.mk

45
mozilla/caps/README.html Normal file
View File

@@ -0,0 +1,45 @@
<html>
<!--
- 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-1999 Netscape Communications Corporation. All
- Rights Reserved.
-
- Contributor(s):
- Daniel Howard
-
- Alternatively, the contents of this file may be used under the
- terms of the GNU Public License (the "GPL"), in which case the
- provisions of the GPL are applicable instead of those above.
- If you wish to allow use of your version of this file only
- under the terms of the GPL and not to allow others to use your
- version of this file under the NPL, indicate your decision by
- deleting the provisions above and replace them with the notice
- and other provisions required by the GPL. If you do not delete
- the provisions above, a recipient may use your version of this
- file under either the NPL or the GPL.
-->
<body>
<h1>
<span CLASS=LXRSHORTDESC>
certificate and security management<p>
</span>
</h1>
<span CLASS=LXRLONGDESC>
caps contains C++ interfaces and code for determining the capabilities
of content based on the security settings and certificates (e.g. Verisign).
</span>
</body>
</html>

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