Compare commits

..

1317 Commits

Author SHA1 Message Date
pavlov%netscape.com
c45c2db17b new shit
git-svn-id: svn://10.0.0.236/branches/IMGLIB2_NEW@91713 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 23:55:33 +00:00
(no author)
ebc0074860 This commit was manufactured by cvs2svn to create branch 'IMGLIB2_NEW'.
git-svn-id: svn://10.0.0.236/branches/IMGLIB2_NEW@91429 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 06:02:33 +00:00
dprice%netscape.com
5cbf372cac 65845 - new order files
git-svn-id: svn://10.0.0.236/trunk@91428 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 06:02:32 +00:00
ben%netscape.com
5df9049d06 change comments in these files to be appropriate doc comment format. sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@91427 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 05:29:24 +00:00
anthonyd%netscape.com
d46561cd6b bug fix for 74145: Caret appears in previously disabled input field
r=cmanske
sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@91426 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 05:14:29 +00:00
cls%seawood.org
1f020b6a91 Updating config.guess & config.sub with 2001-03-30 changes from the GNU master copy at :pserver:anoncvs@subversions.gnu.org:/cvs /config .
git-svn-id: svn://10.0.0.236/trunk@91425 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 04:46:56 +00:00
cls%seawood.org
14ae816e4b Updating config.guess & config.sub with 2001-03-30 changes from the GNU master copy at :pserver:anoncvs@subversions.gnu.org:/cvs /config .
git-svn-id: svn://10.0.0.236/trunk@91424 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 04:41:13 +00:00
darin%netscape.com
16416e44e5 Fixes bug 73029 "new cache time problems, reload sometimes broken"
r=disttsc@bart.nl,gagan sr=mscott


git-svn-id: svn://10.0.0.236/trunk@91420 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:56:54 +00:00
mscott%netscape.com
47e53be8a3 (NOT PART OF THE BUILD).
Help get icon urls working on the Mac. Get rid of a bogus real bytes per row value which wasn't accurate. Just rely
on the # bytes per row the image frame gives us.


git-svn-id: svn://10.0.0.236/trunk@91419 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:51:59 +00:00
mscott%netscape.com
ef5c4d9598 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@91418 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:39:55 +00:00
bratell%lysator.liu.se
7259124fe2 The right fix for bug 74328. This was the one that was reviewed and I have no idea where the old one came from. r=waterson sr=jst
git-svn-id: svn://10.0.0.236/trunk@91417 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:38:20 +00:00
pinkerton%netscape.com
b6d6b1d4a4 OS_ARCH is no longer 'Rhapsody' on OSX, it's now 'Darwin'. Fixes problem
where shared libs all would try to link as stand-alone and fail to find _main().
r=beard/sr=blizzard.


git-svn-id: svn://10.0.0.236/trunk@91416 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:36:56 +00:00
disttsc%bart.nl
11c13fcf56 "Click Finish..." profile text not correctly aligned at bottom, bug=42402, author=Boris Zbarsky <bzbarsky@mit.edu>, r=ksosez@softhome.net, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@91413 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:27:05 +00:00
disttsc%bart.nl
ae7ef1243d Provide default userChrome.css and userContent.css with sample (commented out) content for discoverability, bug=37642, author=Boris Zbarsky <bzbarsky@mit.edu>, r=timeless, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@91412 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:20:46 +00:00
ben%netscape.com
697e3b44a9 First part of fix for bug 73508, test files for outliner bookmarks, not part of build!
(Testing only, will be removed once I'm done).


git-svn-id: svn://10.0.0.236/trunk@91411 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:17:58 +00:00
ben%netscape.com
9a4d892843 First part of fix for bug 73508, create nsIXULOutlinerBuilderObserver interface,
and install notifications for it. r=waterson, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@91409 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:17:17 +00:00
bratell%lysator.liu.se
f1239e3f79 Fix for bug 74328, removing O(n^2) algorithm from ContentAppended. This saves time on big pages. r=waterson sr=jst
git-svn-id: svn://10.0.0.236/trunk@91408 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:14:57 +00:00
bratell%lysator.liu.se
bd6e87975b Fix for bug 74319, removing O(n^2) algorithm when restoring session frame state. This saves time on big pages. r=waterson sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91407 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 03:11:30 +00:00
dr%netscape.com
da65fbe16c fix for 61187 (nsIController ignores COM identity rules), contributed by MarkH@ActiveState.com, r=dr, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@91405 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 02:45:17 +00:00
tor%cs.brown.edu
a6631a4f52 Calculate vertical scaling factor properly in DrawScaled().
r=jag,dr; sr=shaver


git-svn-id: svn://10.0.0.236/trunk@91404 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 02:41:51 +00:00
erik%netscape.com
6ff4f34ea1 checkin for bstell@netscape.com:
bug 54000; r=cls, sr=blizzard
enable nl_langinfo(CODESET) compiling


git-svn-id: svn://10.0.0.236/trunk@91403 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 02:29:59 +00:00
cls%seawood.org
7ef560bf29 Make sure that cpp & asm files are rebuilt on Makefile.in changes like .c files.
git-svn-id: svn://10.0.0.236/trunk@91402 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 02:12:53 +00:00
disttsc%bart.nl
c793ed4f4d Fix senna bustage by removing unnecessary #include. r=shaver
git-svn-id: svn://10.0.0.236/trunk@91401 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 02:12:09 +00:00
sfraser%netscape.com
4b8124de18 Fix HPUX bustage
git-svn-id: svn://10.0.0.236/trunk@91400 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 02:11:57 +00:00
brendan%mozilla.org
e4c21a8200 - Add JS_GetReservedSlot, JS_SetReservedSlot, and JSCLASS_HAS_RESERVED_SLOTS(n)
to the JS API, for per class extra slots beyond JSSLOT_PRIVATE (or starting
  there for a class that lacks JSCLASS_HAS_PRIVATE).  To avoid penalizing all
  instances, these slots are allocated only upon first property-owned slot
  allocation, or upon first JS_SetReservedSlot.

  This entailed adding getRequiredSlot and setRequiredSlot hooks to the
  JSObjectOps struct, and making obj->slots self-describing, a la BSTR.  It
  also afforded me a chance to clean up obj->slots locking so that non-native
  JSObjectOps didn't risk unlocked accesses!  Now there are thread-safe hooks
  for all uses of obj.

  First consumer is the new, DOM-glue-unifying XPConnect, which needs two
  slots per wrapped function.  Hence the change to js_FunctionClass.flags'
  initializer.

- Commented the heck out of JSClass and JSObjectOps function typedefs in
  jspubtd.h.  I hope embedders see these comments!

- Fix JS_XDRValue's default case to handle int exclusively, there is no other
  possible type (and therefore no JSMSG_BAD_JVAL_TYPE error).

- Clean up tabs in select old, tab-ridden files and sections.

- s/\<fh\>/file/g for stdio FILE * canonical variable names.


git-svn-id: svn://10.0.0.236/trunk@91396 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:53:24 +00:00
cls%seawood.org
d7180f9a7b Update our non-compiler based dependency system to build dependencies on the fly like the compiler-based system does.
Bug #66529 r=leaf


git-svn-id: svn://10.0.0.236/trunk@91393 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:18:34 +00:00
loadrunner%betak.net
acedb5b4d7 Bug 64231, The Edit|Preferences|Fonts has problem with display some foreign fonts, r=matt, nhotta, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@91391 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:06:13 +00:00
loadrunner%betak.net
2e257637d0 Bug 72752, The default search engine will pick up AltaVista TradChinese, r=nhotta, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@91390 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:05:28 +00:00
kmcclusk%netscape.com
b1782a1c4e Not part of the build, stand alone test program. Make gfx pixel coverage test compile and run. bug=70041. (patch from jonsmirl@mediaone.net)
git-svn-id: svn://10.0.0.236/trunk@91388 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:01:40 +00:00
sfraser%netscape.com
4fdc5bc10c Add nsAccessibilityFactory.cpp so this stupid thing gets registered properly. r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@91387 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:47:00 +00:00
ddrinan%netscape.com
b2332346b0 Use security.default_personal_cert for client auth
git-svn-id: svn://10.0.0.236/trunk@91386 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:36:53 +00:00
ddrinan%netscape.com
c21fadfcbe Fixed some typos in the pref names
git-svn-id: svn://10.0.0.236/trunk@91385 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:35:01 +00:00
mcafee%netscape.com
fc2a5878b2 Adding named logfiles, test support.
git-svn-id: svn://10.0.0.236/trunk@91384 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:33:19 +00:00
waterson%netscape.com
17ec076943 Bug 74728, redux. Fix without leaking tokens: make sure that nsCParserNode always has an nsTokenAllocator object. r=harishd, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@91383 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:27:11 +00:00
bnesse%netscape.com
81dbdbc713 Added coments based on Judson's review comments.
[Not Part of the Build]


git-svn-id: svn://10.0.0.236/trunk@91378 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:08:07 +00:00
pinkerton%netscape.com
dafd939478 forgot to wrap something in !TARGET_CARBON. fixes bustage.
git-svn-id: svn://10.0.0.236/trunk@91376 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:58:35 +00:00
sfraser%netscape.com
55a3a4f35d Fix for 74143, change nsIController to use DOMStrings. sr=hyatt, r=kin
git-svn-id: svn://10.0.0.236/trunk@91375 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:48:03 +00:00
peterlubczynski%netscape.com
3987c653e7 Fix for null pointer in full page plugins on Mac. bug 74789 a=av sr=shaver
git-svn-id: svn://10.0.0.236/trunk@91374 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:46:27 +00:00
rich.burridge%sun.com
84f19f4353 Fix for bug 72841 - Solaris Intel xptcall code should really be in separate files.
sr=shaver@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@91373 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:42:40 +00:00
bryner%uiuc.edu
8365e2492e Making the CertContentListener support weak refs, this makes it so the user gets prompted to import the certificate. r=javi.
git-svn-id: svn://10.0.0.236/trunk@91370 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:30:05 +00:00
sonmi%netscape.com
23d3cc6ef4 updated
git-svn-id: svn://10.0.0.236/trunk@91369 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:28:57 +00:00
leaf%mozilla.org
5cc821a1cb Automated update
git-svn-id: svn://10.0.0.236/trunk@91368 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:15:03 +00:00
hyatt%netscape.com
c4648b083b Fix for 53670.
git-svn-id: svn://10.0.0.236/trunk@91367 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:15:02 +00:00
pinkerton%netscape.com
808c7b19d5 Add DARWIN define for osx so we don't have to keep adding RHAPSODY defines if
anything new is needed. r=leaf/sr=shaver.


git-svn-id: svn://10.0.0.236/trunk@91366 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:13:27 +00:00
hyatt%netscape.com
9ff7c61384 Fix for 53670. sr=waterson, r=danm
git-svn-id: svn://10.0.0.236/trunk@91365 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:12:53 +00:00
pinkerton%netscape.com
7cc8e5e508 add DefProcFakery to build.
git-svn-id: svn://10.0.0.236/trunk@91364 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:57:45 +00:00
erik%netscape.com
7181d48f9a checkin for bstell@netscape.com:
bug 54000; r=cls, sr=blizzard
define _XOPEN_SOURCE so older versions of Linux define CODESET


git-svn-id: svn://10.0.0.236/trunk@91363 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:51:36 +00:00
ftang%netscape.com
ba73f80669 remove obsoleted code. fix bug 74727
git-svn-id: svn://10.0.0.236/trunk@91362 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:49:04 +00:00
ftang%netscape.com
9d8ab7d797 remove obsoleted files
git-svn-id: svn://10.0.0.236/trunk@91361 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:42:57 +00:00
ftang%netscape.com
808acb1820 fix bug 74727. remove dead code
git-svn-id: svn://10.0.0.236/trunk@91360 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:36:47 +00:00
ftang%netscape.com
fc082d8752 fix 74727
r=yokoyama@netscape.com
remove dead code


git-svn-id: svn://10.0.0.236/trunk@91359 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:36:30 +00:00
ftang%netscape.com
c1dd21f016 remove dead cpp files
git-svn-id: svn://10.0.0.236/trunk@91358 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:35:25 +00:00
ftang%netscape.com
4070d00536 fix 74730. r=yokoyama@netscape.com
remove dead code
remove dead cpp file from the build


git-svn-id: svn://10.0.0.236/trunk@91357 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:34:45 +00:00
ftang%netscape.com
307f07b3d9 add table generation tool to the build Not part of the build
fix bug 67374


git-svn-id: svn://10.0.0.236/trunk@91356 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:32:54 +00:00
cmanske%netscape.com
d55dcb6cf6 checkin for neil@parkwaycc.co.uk: Use proper toolbar separator in Composer. b=73775, r=cmanske, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@91355 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:28:45 +00:00
ddrinan%netscape.com
04444a91b6 Fixed preftype error for default_personal_cert. r=javi
git-svn-id: svn://10.0.0.236/trunk@91354 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:23:27 +00:00
Xiaobin.Lu%eng.Sun.com
acc0c9d7f5 Bug 68933 r=Ed Burns sr=Mike Shaver
Get rid of the duplication function of JavaEnabled & IsJavaEnabled


git-svn-id: svn://10.0.0.236/trunk@91353 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:16:52 +00:00
cmanske%netscape.com
b36907b631 Part of fix number validation bug 73049, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@91352 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:15:10 +00:00
Xiaobin.Lu%eng.Sun.com
600c054cdb Bug 68933 r=Ed Burns and Mike Shaver sr=Mike Shaver
Function name changed due to idl convention


git-svn-id: svn://10.0.0.236/trunk@91351 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:14:43 +00:00
Xiaobin.Lu%eng.Sun.com
6096346361 Bug 68933 r=sr=Mike Shaver
Add declaration of GetPluginHost


git-svn-id: svn://10.0.0.236/trunk@91350 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:13:04 +00:00
Xiaobin.Lu%eng.Sun.com
6065a9bc2a Bug 68933 r=sr=Mike Shaver
Add GetPluginHost method in order to be used by JavaEnabled implementation


git-svn-id: svn://10.0.0.236/trunk@91349 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:12:26 +00:00
Xiaobin.Lu%eng.Sun.com
28a0cbb434 Bug 68933 r=sr=Mike Shaver
Due to nsIJVMManger.idl change, IsJavaEnabled changed to GetJavaEnabled


git-svn-id: svn://10.0.0.236/trunk@91348 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:11:12 +00:00
Xiaobin.Lu%eng.Sun.com
ab5b7af17e Bug 68933 r=sr=Mike Shaver
Reimplemented the JavaEnabled() function done by jst@netscape


git-svn-id: svn://10.0.0.236/trunk@91347 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:09:56 +00:00
Xiaobin.Lu%eng.Sun.com
5bc2dc615f Bug 68933: r=sr=Mike Shaver.
M tasksOverlay.js
navigator.javaEnabled() implementation has been changed by jst@netscape


git-svn-id: svn://10.0.0.236/trunk@91346 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:07:46 +00:00
cmanske%netscape.com
1c88cd85a7 New strings for dialog number validation bug 73049, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@91345 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:05:50 +00:00
cmanske%netscape.com
62d10f5721 Fixed dialog number validation bug 73049, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@91344 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 22:05:06 +00:00
morse%netscape.com
abc9cd1707 bug 74489, fix semantics of enumerate, r=valeski, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@91343 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:58:50 +00:00
jdunn%netscape.com
282f25dce4 just adding a comment with reference to the bug to let people looking
at this know what the heck is going on


git-svn-id: svn://10.0.0.236/trunk@91342 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:57:14 +00:00
jdunn%netscape.com
ce51cd05bb aix,os/2 & solaris are all having problems with this. It has to do with
struct/union access and nested classes, but it is a big pain.

r= mkaply@us.ibm.com,waterson@netscape.com,scc@mozilla.org
a= scc@mozilla.org
# 74725


git-svn-id: svn://10.0.0.236/trunk@91341 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:54:18 +00:00
cmanske%netscape.com
0ffe25f89e Fixed JS warnings and window title bugs 57649, 73807; r=brade, hurricane; sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@91340 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:52:25 +00:00
pinkerton%netscape.com
34f7b25727 remove mdef resource, no longer needed. r=saari/sr=sfraser bug# 61039
git-svn-id: svn://10.0.0.236/trunk@91339 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:45:51 +00:00
pinkerton%netscape.com
0ffe24b221 new borderless wdef to bring in line with win32 windows. clean up mdef code to be in line with wdef code. r=saari/sr=sfraser bug# 61039
git-svn-id: svn://10.0.0.236/trunk@91338 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:45:18 +00:00
pinkerton%netscape.com
6362cd404d add borders back to mac popups now that the popups have no border of their own. r=saari/sr=sfraser bug# 61039
git-svn-id: svn://10.0.0.236/trunk@91337 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:44:26 +00:00
pinkerton%netscape.com
87cf0f67a6 new borderless wdef to bring in line with win32 windows. clean up mdef code to be in line with wdef code.
git-svn-id: svn://10.0.0.236/trunk@91336 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:42:42 +00:00
pinkerton%netscape.com
d3cd048aeb extract some code used for our fake MDEF/WDEF. r=saari/sr=sfraser. bug 61039.
git-svn-id: svn://10.0.0.236/trunk@91335 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:42:16 +00:00
dbragg%netscape.com
873f8b6c8d Fix for 29415. Now returning READ_ONLY error if file attribute set that way. r=dveditz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@91334 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:40:59 +00:00
leaf%mozilla.org
20d69db19e Automated update
git-svn-id: svn://10.0.0.236/trunk@91332 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:30:03 +00:00
cls%seawood.org
c2ee9a00e1 Use TRY_LINK instead of TRY_COMPILE when testing for gnu_get_libc_version().
Thanks to Kurt <lidl@pix.net> for the patch.
Bug #74758 Fixing ports tinderbox bustage


git-svn-id: svn://10.0.0.236/trunk@91331 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:29:20 +00:00
mcgreer%netscape.com
24504c30f6 fix bug #74764
r=javi


git-svn-id: svn://10.0.0.236/trunk@91329 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:06:22 +00:00
cls%seawood.org
6bd6c87cd3 Fix jsmath.o related dependencies.
Bug #74707 a=jj@netscape.com


git-svn-id: svn://10.0.0.236/trunk@91327 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:00:11 +00:00
beard%netscape.com
40e3d35ea3 Configuration for Mac OS X final (Darwin 1.3)
git-svn-id: svn://10.0.0.236/trunk@91324 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 19:48:12 +00:00
pchen%netscape.com
2ff09311e0 blocker bug 74728, r=pinkerton, Check for null mTokenAllocator before trying to free a token, for some reason unbeknowst to me, view source likes to create nsCParserNodes with a null allocator. Why this didn't bite us in the ass before is also beyond me.
git-svn-id: svn://10.0.0.236/trunk@91321 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 18:38:28 +00:00
shaver%mozilla.org
c2d245c145 explicitly include nsString.h
git-svn-id: svn://10.0.0.236/trunk@91311 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 16:41:14 +00:00
dcone%netscape.com
5064aea52b Added silent parameter. r=mclusky sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91305 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 14:55:26 +00:00
jdunn%netscape.com
3c7ded623c fixing ports bustage
# 74725


git-svn-id: svn://10.0.0.236/trunk@91304 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 14:43:39 +00:00
ftang%netscape.com
52903545bc not part of the build yet.
fix bug 65773
r=nobodyyet sr=nobodyyet


git-svn-id: svn://10.0.0.236/trunk@91303 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 14:36:53 +00:00
kestes%tradinglinx.com
acfc204cad relax the uid/gid security checks for Debian
git-svn-id: svn://10.0.0.236/trunk@91302 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 14:23:36 +00:00
mkaply%us.ibm.com
3ce0b10d25 Nope, didn't work
git-svn-id: svn://10.0.0.236/trunk@91301 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 13:44:01 +00:00
mkaply%us.ibm.com
2d69301e88 Attempt to fix ports bustage
git-svn-id: svn://10.0.0.236/trunk@91300 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 13:08:27 +00:00
cls%seawood.org
93acdb6341 Some compilers/platforms (Irix) only have <new.h> not <new>. Fixing cement tinderbox bustage
git-svn-id: svn://10.0.0.236/trunk@91297 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 11:16:58 +00:00
leaf%mozilla.org
5e76dbfe8b Automated update
git-svn-id: svn://10.0.0.236/trunk@91296 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 11:15:02 +00:00
cls%seawood.org
6d44f62c63 Expand the function check for gnu_get_libc_version() into a full compile check as BeOS has the function in libroot.so but it is not declared in any headers.
git-svn-id: svn://10.0.0.236/trunk@91295 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 11:02:06 +00:00
hwaara%chello.se
6b919bf372 Don't include the same header twice! No bug, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@91294 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 10:39:21 +00:00
sspitzer%netscape.com
794070fa81 ignore generate makefiles
git-svn-id: svn://10.0.0.236/trunk@91292 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 10:03:09 +00:00
waterson%netscape.com
5a0c204b43 Another wild stab at fixing ports bustage.
git-svn-id: svn://10.0.0.236/trunk@91281 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:09:58 +00:00
waterson%netscape.com
88dd85fcc6 Wild stab at fixing ports bustage.
git-svn-id: svn://10.0.0.236/trunk@91280 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 09:05:06 +00:00
waterson%netscape.com
38e5ada380 Fix more gcc-2.7.2.3 bustage. Whee\!
git-svn-id: svn://10.0.0.236/trunk@91279 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 08:26:32 +00:00
mkaply%us.ibm.com
23a9b5d209 OS/2 TB breakage
git-svn-id: svn://10.0.0.236/trunk@91278 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 08:25:32 +00:00
pavlov%netscape.com
fd002cfbf7 fixing images not drawing correctly. bug 73195. patch from kmcclusk@netscape.com. r=pavlov sr=jst
git-svn-id: svn://10.0.0.236/trunk@91276 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 08:23:14 +00:00
pavlov%netscape.com
82068782e0 fixing bug 74652 r=shaver sr=waterson
git-svn-id: svn://10.0.0.236/trunk@91274 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 08:04:54 +00:00
waterson%netscape.com
6ebd59f729 Fix gcc-2.7.2.3 bustage.
git-svn-id: svn://10.0.0.236/trunk@91273 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:54:23 +00:00
brendan%mozilla.org
e21e734c03 Quote reserved identifiers as well as non-lexical-identifier property ids in object literals (73598, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@91271 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:45:22 +00:00
bryner%uiuc.edu
6dbd115c0e Fixing client auth. r=darin, sr=ben. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@91270 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:36:39 +00:00
darin%netscape.com
30bbfdcd43 Fixes bug 74118 "can't launch with a new profile" r=bryner, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@91268 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:28:51 +00:00
darin%netscape.com
93a44d86ec Fixes bug 74199 "about:cache-entry needs to know how to deal with
non-stream-based cache entries" r=gordon, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@91267 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:25:58 +00:00
ben%netscape.com
19e5473291 Partial fix for 73905, JS files not loaded with nsIChannel::LOAD_NORMAL.
r=darin, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@91266 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:21:36 +00:00
darin%netscape.com
72047ef03e Fixes bug 73905 "CSS/JS documents are not cached" r=pierre, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@91265 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:20:46 +00:00
hyatt%netscape.com
1f47c8bc4a Missed the XML bit of my mutation patch.
git-svn-id: svn://10.0.0.236/trunk@91264 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:07:33 +00:00
hyatt%netscape.com
0ed9d49f33 Missed a bit of my mutation patch.
git-svn-id: svn://10.0.0.236/trunk@91263 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:07:20 +00:00
idk%eng.sun.com
0af6d623df *not part of the build*
fix for 74676


git-svn-id: svn://10.0.0.236/trunk@91262 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:01:42 +00:00
shaver%mozilla.org
9c980e4543 sigh, fix direct-inclusion-of-jsgc.h bustage in TestXPC
git-svn-id: svn://10.0.0.236/trunk@91257 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:53:58 +00:00
sspitzer%netscape.com
f59c05572a partial fix for #74674. bullet proof the db view. r/sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@91255 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:16:29 +00:00
stephend%netscape.com
23fc7135c8 Fixing typo in the patch for bug 52154 'Make gui for view source coloring pref' patch this time by bzbarsky@mit.edu (this patch was previously reviewed by akkana and super-reviewed by Joe Hewitt)
git-svn-id: svn://10.0.0.236/trunk@91254 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:12:08 +00:00
shaver%mozilla.org
4aa2ca3096 fixing bustage from fat-fingering before committing
git-svn-id: svn://10.0.0.236/trunk@91253 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:06:59 +00:00
hyatt%netscape.com
f7d1932732 Missed a piece of the mutation patch.
git-svn-id: svn://10.0.0.236/trunk@91252 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:06:18 +00:00
waterson%netscape.com
1ef6e620b4 Bug 68213. Require users of nsFixedSizeAllocator to specify object size at Free() time to avoid 8 byte overhead per allocation. r=harishd, brendan, shaver, hyatt; sr=scc
git-svn-id: svn://10.0.0.236/trunk@91251 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:00:08 +00:00
sspitzer%netscape.com
049707d100 fix for #67677. on loading a folder, if there is no new messages
scroll to the top.  r=mscott, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@91250 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:43:15 +00:00
roc+%cs.cmu.edu
2647a38223 Fix calculation of widget coverings in nsViewManager::UpdateAllCoveringWidgets. Bug 74413, sr=attinasi,r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@91249 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:37:12 +00:00
sspitzer%netscape.com
56acdd67fa fix #72262 and #72269. when loading a folder, scroll to the first new message (but don't select it.) when loading a folder while doing cross folder navigation, scroll to and select the proper messsage. r=mscott, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@91248 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:32:10 +00:00
shaver%mozilla.org
04121d876f 73645: use JSDHashTable for JSRuntime.gcRootsHash and .gcLocksHash.
r=waterson-the-dhash-fiend, sr=brendan-the-other-dhash-fiend


git-svn-id: svn://10.0.0.236/trunk@91247 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:30:41 +00:00
hyatt%netscape.com
65a3e065f4 Fix for mutation event crashers.
git-svn-id: svn://10.0.0.236/trunk@91246 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:30:03 +00:00
cmanske%netscape.com
a0403c6188 Fixed Print button bug in plaintext editor (by rcassin@supernova.org) r=cmanske, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@91245 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:08:13 +00:00
cmanske%netscape.com
520fe7bdf2 Fixed Spell check dialog layout bug 72223, r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@91244 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:05:14 +00:00
shaver%mozilla.org
4bd0482736 74637: track scc's string changes, to fix infinite recursion when manipulating
a wrapped JSString. r=smfr, sr=scc.


git-svn-id: svn://10.0.0.236/trunk@91243 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:02:21 +00:00
cmanske%netscape.com
25db66b850 Editor CSS changes needed for Spelling dialog, b=72223, r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@91242 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:59:27 +00:00
pchen%netscape.com
7f079b897f bug 73262, r=pinkerton, sr=sfraser/jst, add ptr for xul document
git-svn-id: svn://10.0.0.236/trunk@91241 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:41:34 +00:00
pchen%netscape.com
0b287ca0c8 bug 73262, r=pinkerton, sr=sfraser/jst, set weak ref to xul document after adding nsMenuBar as observer, then use that weak ref in destructor to remove ourself as observer, problem is that webshell is getting destroyed before nsMenuBar, so nsMenuBar can't get at the xul document, thus it can't remove itself as an observer.
git-svn-id: svn://10.0.0.236/trunk@91240 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:41:30 +00:00
talisman%anamorphic.com
2f29d6753a Added a new note for Mac users re Project Builder. jrg
git-svn-id: svn://10.0.0.236/trunk@91239 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:38:31 +00:00
nhotta%netscape.com
27858ace60 Changed to use strncmp instead of strcmp for Content-Type value comparison, bug 74573, r=ftang, sr=erik.
git-svn-id: svn://10.0.0.236/trunk@91238 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:34:57 +00:00
talisman%anamorphic.com
01fba1527a Adding support for Project Builder on Mac OS X. jrg
git-svn-id: svn://10.0.0.236/trunk@91237 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:34:20 +00:00
gordon%netscape.com
1e0c0b4023 Landing DISKCACHE1_BRANCH (part Deux) which enables dynamic eviction and efficient cache miss detection for the disk cache (bug 72506) r=beard, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@91234 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:30:45 +00:00
stephend%netscape.com
b93908a789 Fixes bug 52154, 'Make gui for view source coloring pref' r=akkana@netscape.com sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@91233 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:19:17 +00:00
stephend%netscape.com
befa5a072c Part of the fix for bug 52154, 'Make gui for view source coloring pref' r=akkana@netscape.com sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@91232 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:18:34 +00:00
stephend%netscape.com
96f508e78d Fix for bug 66011, mailto: headers erroneously inserted into to: field. Patch by Kevin Duffy <kevin@buhbird.com> r=ducarroz@netscape.com sr=sspitzer@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@91231 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:03:47 +00:00
talisman%anamorphic.com
774201eaba new, better-looking, more professional splash screen image. jrg
git-svn-id: svn://10.0.0.236/trunk@91230 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 02:58:22 +00:00
talisman%anamorphic.com
b8efdaaa9e Modified means of getting the splash screen image so it works when app is run as a jar. jrg
git-svn-id: svn://10.0.0.236/trunk@91229 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 02:57:04 +00:00
talisman%anamorphic.com
8e4587c509 Changed event switch - must access static public (i.e., class) variables through class, not through instance. jrg
git-svn-id: svn://10.0.0.236/trunk@91228 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 02:55:54 +00:00
morse%netscape.com
18ceb1bc1c bugs 74049 (cookies permission file garbled) and 74489 (crash bringing up cookie viewer), r=valeski, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@91227 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 02:39:39 +00:00
morse%netscape.com
6dd905a714 bug 74089, image/cookie confusion, r=valeski, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@91226 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 02:34:26 +00:00
sspitzer%netscape.com
1b2060a435 fix for #74357. do what 4.x mac did for collapsed read messages, that are threads that had unread chidren. r/sr=hyatt,bienvenu
git-svn-id: svn://10.0.0.236/trunk@91225 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 02:13:41 +00:00
disttsc%bart.nl
19d56a352c Fix senna bustage, add "timer" to REQUIRES line
git-svn-id: svn://10.0.0.236/trunk@91224 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 02:09:28 +00:00
oeschger%netscape.com
8f8d6be1c2 fixing css, adding manifest, NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@91223 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 01:52:16 +00:00
pinkerton%netscape.com
e019408e1d fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@91222 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 01:38:57 +00:00
hyatt%netscape.com
4bab10dbe3 Fix for outliner skin switching bug.
git-svn-id: svn://10.0.0.236/trunk@91221 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 01:37:09 +00:00
pinkerton%netscape.com
1312d6685c fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@91219 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 00:57:40 +00:00
sonmi%netscape.com
2991dfa79f removed unneccessary variables
git-svn-id: svn://10.0.0.236/trunk@91213 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 00:31:59 +00:00
sonmi%netscape.com
cfcafc823a workaround, when running backward compatibility tests pk12util tests don't run
git-svn-id: svn://10.0.0.236/trunk@91212 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 00:29:27 +00:00
sonmi%netscape.com
5a748ff2d9 added functionallity for backward compatibility testing, improved messages
git-svn-id: svn://10.0.0.236/trunk@91211 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 00:28:12 +00:00
sonmi%netscape.com
33777883af added backward compatibility tests
git-svn-id: svn://10.0.0.236/trunk@91209 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 00:23:18 +00:00
sonmi%netscape.com
e0aaa40617 added functionallity for backward compatibility testing
git-svn-id: svn://10.0.0.236/trunk@91208 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 00:22:43 +00:00
javi%netscape.com
57314ffb6d Fix for Bug 74436 patch provided by ccarlen r=danm
Make PSM 2.0 use the embedding friendly window watcher
  service instead of grabbing the hidden window.


git-svn-id: svn://10.0.0.236/trunk@91203 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 00:06:18 +00:00
javi%netscape.com
43e6f04f96 Fix UNIX build bustage
git-svn-id: svn://10.0.0.236/trunk@91202 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 00:03:02 +00:00
valeski%netscape.com
1174356dfa sr=waterson. comment change only
git-svn-id: svn://10.0.0.236/trunk@91200 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 23:30:30 +00:00
dr%netscape.com
dc91b51ac9 backing out edburns's removal of necessary typedefs
git-svn-id: svn://10.0.0.236/trunk@91199 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 23:29:26 +00:00
larryh%netscape.com
77a7c53dde bugzilla: 45343. re-implement PL_ArenaAllocate()
git-svn-id: svn://10.0.0.236/trunk@91196 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 23:23:02 +00:00
valeski%netscape.com
12dee4cf09 sr=shaver, r=dmose. 74554. fixing array index typo
git-svn-id: svn://10.0.0.236/trunk@91194 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:59:02 +00:00
rickg%netscape.com
75bb2ffbb9 preloader update. r=peterl, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91193 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:58:59 +00:00
av%netscape.com
1adad24225 For 73856, adding simple scriptability to the old style plugins, sr=vidur, ra=av
git-svn-id: svn://10.0.0.236/trunk@91192 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:49:38 +00:00
mcafee%netscape.com
f1b3bb4da2 print out system id
git-svn-id: svn://10.0.0.236/trunk@91191 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:47:50 +00:00
sspitzer%netscape.com
8a191a3338 make --with-extensions=inspector generate the Makefiles
for hewitt's document inspector.  r=prass,kerz sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@91190 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:41:24 +00:00
av%netscape.com
41610106ab For 73856, zeroing plugin function table in ns4xPlugin destructor, sr=vidur, ra=av
git-svn-id: svn://10.0.0.236/trunk@91189 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:39:19 +00:00
locka%iol.ie
f035c4a3bb NOT PART OF BUILD. Added test for innerHTML property of HTML elements.
git-svn-id: svn://10.0.0.236/trunk@91188 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:37:47 +00:00
av%netscape.com
c84a6b1b9c For 73856, adding plugin host notification that the plugin instance is scriptable, sr=vidur, ra=jst
git-svn-id: svn://10.0.0.236/trunk@91187 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:33:32 +00:00
peterlubczynski%netscape.com
a2ae9333a1 Implement full-page plugins on Mac bug 35682 a=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91186 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:18:59 +00:00
heikki%netscape.com
120df2142a This commit was generated by cvs2svn to compensate for changes in r91184,
which included commits to RCS files with non-trunk default branches.

git-svn-id: svn://10.0.0.236/trunk@91185 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:13:38 +00:00
edburns%acm.org
3f17be6c32 ra=edburns
r=av
sr=waterson
author = Nikolay Igotti <inn@sparc.spb.su>
Changes are:
  - adding IID accessors to nsIJVMPlugin and nsIJVMConsole interface - I think
    better patch would  add accessors to the end of interface definition -
    to save binary compatibility with Java Plugin
 -  together with old way of obtaining of JVM service (GetFactory) use new way
    GetService - it's good anyway and shouldn't break Java Plugin

M modules/oji/public/nsIJVMPlugin.h
M modules/oji/public/nsIJVMConsole.h
M sun-java/stubs/include/jri_md.h
M modules/oji/src/nsJVMManager.cpp


git-svn-id: svn://10.0.0.236/trunk@91183 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:05:03 +00:00
locka%iol.ie
f109555953 Added read-only implementations of innerHTML, innerText, offsetLeft, offsetTop, offsetWidth, offsetHeight. b=58475
git-svn-id: svn://10.0.0.236/trunk@91182 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:00:21 +00:00
edburns%acm.org
4e72c06770 http://bugzilla.mozilla.org/show_bug.cgi?id=69466
r=av
sr=waterson
Make it so incomplete hostnames, such as .eng.sun.com, are valid entries for
the noProxyFor list.


git-svn-id: svn://10.0.0.236/trunk@91180 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:56:59 +00:00
locka%iol.ie
cc8edeccc2 Updated GetTarget so windows are created if the named target cannot be found and for _new & _blank targets. b=72491, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@91179 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:56:02 +00:00
av%netscape.com
f05d8ec049 For 73856, adding new header file to the list of files to be exported, sr=vidur, ra=av
git-svn-id: svn://10.0.0.236/trunk@91178 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:41:19 +00:00
av%netscape.com
09c8488159 For 73856, new private interface for the plugin host, first time in, sr=vidur, ra=av
git-svn-id: svn://10.0.0.236/trunk@91177 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:35:57 +00:00
radha%netscape.com
71cd80f593 Fix for bug 73746. r=valeski, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@91176 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:34:30 +00:00
av%netscape.com
2d89d9e3a4 For 73856, adding new values to nsPluginInstanceVariable enum type, sr=vidur, ra=av
git-svn-id: svn://10.0.0.236/trunk@91175 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:33:17 +00:00
naving%netscape.com
f8854e2942 74446. sr=bienvenu. handle the period at the beginning of the line.
git-svn-id: svn://10.0.0.236/trunk@91174 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:32:59 +00:00
peterlubczynski%netscape.com
841e90d34d Fix for sending events to plugins on Windows through the DOM bug 60712 r=saari sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91173 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:32:37 +00:00
av%netscape.com
a82e86719b For 73856 -- adding new values to NPPVariable enumeration type, sr=vidur, ar=av
git-svn-id: svn://10.0.0.236/trunk@91172 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:29:48 +00:00
pinkerton%netscape.com
014590aa82 before executing command, check if it's a menu. fixes weird problems with context menus where rightclicking with a submenu visible would dismiss the parent but leave the submenu. r=pchen/sr=hyatt. bug# 71795
git-svn-id: svn://10.0.0.236/trunk@91171 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:20:43 +00:00
ducarroz%netscape.com
1228e9d631 Fix for bug 70222. Use IC to decide if we need to send the file as AppleDouble. R=varada, SR=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@91170 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:11:24 +00:00
ducarroz%netscape.com
402091e0a2 Fix for bug 70222. Add an API to retreive file mapping flags. R=varada, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@91169 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:08:51 +00:00
ducarroz%netscape.com
634e01d85f Fix for bug 67504. Remove hardcoded string. R=varada, SR=bienvenu
Fix for bug 41150. Do not reveal BCC recipients when forwarding a message. R=varada, SR=bienvenu


git-svn-id: svn://10.0.0.236/trunk@91168 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:05:07 +00:00
ducarroz%netscape.com
382c9a9837 Fix for bug 67504. Remove hardcoded string. R=varada, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@91167 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:03:30 +00:00
idk%eng.sun.com
0d7a733787 *not part of the build*
add on to my previous checkin


git-svn-id: svn://10.0.0.236/trunk@91166 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:59:04 +00:00
dave%intrec.com
b6faef51e6 Fix for bug 74529: backward email filtering fixed. patch by jake@acutex.net
git-svn-id: svn://10.0.0.236/trunk@91165 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:54:53 +00:00
disttsc%bart.nl
85513f5d0d Get postData from session history instead of BrowserInstance. bug=46200, r=law, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@91164 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:53:50 +00:00
dr%netscape.com
5869bd3fea fix for 74065. r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@91163 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:45:13 +00:00
dave%intrec.com
f5dae4e3f3 Fix for bug 53696: periods(.) and plusses(+) were not being accepted as valid in mime-types, which are legal per RFC2045 and RFC2048.
git-svn-id: svn://10.0.0.236/trunk@91162 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:42:58 +00:00
dr%netscape.com
b8f39c94f6 fix for 72010 (contrib by alex.fritze@crocodile-clips.com). r=dr, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@91161 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:42:41 +00:00
dr%netscape.com
fe4a8c286c fix for 40105. r=jst, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@91160 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:39:34 +00:00
beard%netscape.com
e10e494f55 fix for bug #6872, checking in for tnoyes@mac.com, r=beard, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@91159 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:23:36 +00:00
bnesse%netscape.com
7ecfbaef13 Updates to the future preferences API based on the latest round of feedback.
[Not Part of the Build]


git-svn-id: svn://10.0.0.236/trunk@91157 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 20:11:54 +00:00
rickg%netscape.com
da16bfd694 Adding hook for preloader; r=peterl, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91156 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 19:40:58 +00:00
ftang%netscape.com
2dea739cf9 remove dead code prepare for bidi landing
The code removed are #ifdef and turn off right now.
r=bstell sr=erik


git-svn-id: svn://10.0.0.236/trunk@91155 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 19:34:56 +00:00
ftang%netscape.com
2d33682705 fix 71762.r=bstell sr=erik. add non standard jis0208 mapping
git-svn-id: svn://10.0.0.236/trunk@91154 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 19:30:33 +00:00
varada%netscape.com
a718e19985 fix for bug#71907 -cant send message;r=ducarroz;sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@91153 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 19:27:11 +00:00
joe.chou%eng.sun.com
7ed08b37f7 After converting nsIPluginManager.h to nsIPluginManager.idl (64297, already checked in), the original nsIPluginManager.h is no longer neede.
git-svn-id: svn://10.0.0.236/trunk@91151 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 19:09:39 +00:00
joe.chou%eng.sun.com
efdfd5c59e After converting nsIJVMPluginInstance.h to nsIJVMPluginInstance.idl (64296, already checked in), theoriginal nsIJVMPluginInstance.h is no longer needed.
git-svn-id: svn://10.0.0.236/trunk@91150 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 19:04:22 +00:00
disttsc%bart.nl
93523cb0ed Fix for bug 74488 (and hopefully bug 74552): app freezes in mail when psm dialog is brought up (/ a link is clicked), r=scc, sr=darin
git-svn-id: svn://10.0.0.236/trunk@91149 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 17:17:20 +00:00
dcone%netscape.com
6acdc377a9 back out change..
git-svn-id: svn://10.0.0.236/trunk@91146 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 15:29:33 +00:00
kestes%tradinglinx.com
d55d96f6c8 relax the uid/gid security checks for redhat 7.0
git-svn-id: svn://10.0.0.236/trunk@91145 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 15:14:27 +00:00
dcone%netscape.com
1573da7109 added a silent member. sr=attinasi r=kmmclusk.
git-svn-id: svn://10.0.0.236/trunk@91144 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 14:38:42 +00:00
ccarlen%netscape.com
d735ced6e8 Sample code - not part of the process. Bug 74120 - remove refs to old cache. r=valeski.
git-svn-id: svn://10.0.0.236/trunk@91143 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 14:32:01 +00:00
peterv%netscape.com
af566ed325 Removing use of HashTable (bug #69091). Not part of default build. r=Pike.
git-svn-id: svn://10.0.0.236/trunk@91142 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 14:31:33 +00:00
ccarlen%netscape.com
d34d0b9bea Sample code - not part of the process. Bug 71387 - remove unneeded code to determine locale of profile defaults. r=tao
git-svn-id: svn://10.0.0.236/trunk@91141 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 14:29:01 +00:00
rods%netscape.com
de53e898e2 removing special centering code for width
Bug 68573 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@91140 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 14:10:47 +00:00
dbaron%fas.harvard.edu
282c63502d Fix Boehm GC + MOZ_TRACK_MODULE_DEPS build. r=disttsc@bart.nl sr=cls@seawood.org
git-svn-id: svn://10.0.0.236/trunk@91139 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 13:29:13 +00:00
miodrag%netscape.com
ef15674f7e Allow explicit SSLSocketFactory, contribution by Kyle F. Downey, kdowney@amberarcher.com
git-svn-id: svn://10.0.0.236/trunk@91138 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 13:17:22 +00:00
miodrag%netscape.com
70e4886ec2 A minor update
git-svn-id: svn://10.0.0.236/trunk@91137 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 13:13:52 +00:00
miodrag%netscape.com
ac66a4b576 74378 fix in flushEntries(), contribution by Glenn McAllister, glenn@somanetworks.com
git-svn-id: svn://10.0.0.236/trunk@91136 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 13:12:03 +00:00
peterv%netscape.com
4b69a94419 Removing unused files. Not part of default build. r=Pike.
git-svn-id: svn://10.0.0.236/trunk@91135 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 13:00:38 +00:00
peterv%netscape.com
af590839d9 Making this file compile on Mac. Not part of default build.
git-svn-id: svn://10.0.0.236/trunk@91133 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 12:38:50 +00:00
peterv%netscape.com
ae721659d9 Fix some of bug #59853 (new operator should be used with more care). Not part of default build. r=Pike.
git-svn-id: svn://10.0.0.236/trunk@91132 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 12:38:01 +00:00
peterv%netscape.com
f51cda11e6 Fix some leaks (bug #72179). Not part of default build. r=Pike.
git-svn-id: svn://10.0.0.236/trunk@91131 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 12:36:07 +00:00
peterv%netscape.com
0264c08211 Allow use of Transformiix in embedding (bug #72143). Not part of default build. r=heikki.
git-svn-id: svn://10.0.0.236/trunk@91130 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 12:33:03 +00:00
peterv%netscape.com
0eb10aa694 Removing use of HashTable (bug #69091). Removing CommandLineUtils from module build. Not part of default build. r=Pike.
git-svn-id: svn://10.0.0.236/trunk@91129 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 12:30:50 +00:00
peterv%netscape.com
0f3fae5540 Small clean-up. Not part of default build. r=Pike.
git-svn-id: svn://10.0.0.236/trunk@91128 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 12:25:03 +00:00
peterv%netscape.com
e85c1a22ba Redesign wrappers a bit (bug #65237). Comment out nslogging stuff for now. Use mozilla's new GetBaseURI. Not part of default build. r=Pike.
git-svn-id: svn://10.0.0.236/trunk@91127 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 12:23:03 +00:00
peterv%netscape.com
5c753a496b Adding two files (nsUnicodeToTeXCMMIttf.cpp and nsUnicodeToTeXCMSYttf.cpp) to keep MathML building on Mac. Not part of default build.
git-svn-id: svn://10.0.0.236/trunk@91126 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 12:06:13 +00:00
idk%eng.sun.com
64984abc73 * not part of the build*
Fixed 71951, 74511, 74525


git-svn-id: svn://10.0.0.236/trunk@91125 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 11:57:15 +00:00
markh%activestate.com
a8c7226929 Pass the class itself to the registrar function.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@91124 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 11:17:35 +00:00
markh%activestate.com
25cd24f421 Free a leaking IID.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@91122 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 10:43:27 +00:00
markh%activestate.com
9a40c7d956 Final set of changes to bring us into like with the new file IO world.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@91121 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 10:41:38 +00:00
markh%activestate.com
151f1e3fd3 Allow services to use interface names as a string, just like regular components.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@91120 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 10:41:09 +00:00
ssu%netscape.com
0453f1c09f fixing:
bug 68053 - Win32 installer needs to log the installation process.
bug 64433 - setup.exe inside mozilla-win32-installer.exe contains "Netscape" text
bug 72254 - Installer should not place Uninstaller shortcut in Start Menu
bug 72422 - Moz Installer needs to update internal ua to 0.9
bug 74173 - Win32 installer needs to offer ability to disable path change
bug 64179 - "K" should be "KB"
bug 71108 - Installer FTP stage is slow on Win32
bug 71113 - Log files should not prevent installation
http://bugscape/show_bug.cgi?id=4196 - Launching Setup via a CD autorun causes dll error

r=dveditz
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@91118 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 09:44:22 +00:00
dveditz%netscape.com
a4ac8f7d68 one more try, force depend to be clobber in this directory
git-svn-id: svn://10.0.0.236/trunk@91117 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 08:59:34 +00:00
timeless%mac.com
7cf6907320 temp patch to fix build bustage r=bstell
CODEPAGE is not defined (perhaps we don't have glibc2.1 on some tinders?)
so i'm disabling the code that would try to use it.


git-svn-id: svn://10.0.0.236/trunk@91115 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 08:45:05 +00:00
dveditz%netscape.com
5d7092e5e8 fixing win32 clobber bustage too
git-svn-id: svn://10.0.0.236/trunk@91114 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 08:15:18 +00:00
dveditz%netscape.com
6b534e9e27 fixing win32 depend bustage -- hack alert
git-svn-id: svn://10.0.0.236/trunk@91113 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 08:12:02 +00:00
disttsc%bart.nl
0e603efaad Fix MOZ_TRACK_MODULE_DEPS bustage (senna)
git-svn-id: svn://10.0.0.236/trunk@91112 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 07:49:49 +00:00
disttsc%bart.nl
ca5ce7c32a Fix speedracer bustage. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@91111 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 07:47:54 +00:00
sdagley%netscape.com
93c22f57fa Fix linkage probs preventing lib loading under Carbon. No bug #. r/a/doh!=saari
git-svn-id: svn://10.0.0.236/trunk@91110 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 07:19:51 +00:00
jst%netscape.com
2fb55fe1f8 Fixing crasher/regression bug 74431 that I caused a few weeks ago.
git-svn-id: svn://10.0.0.236/trunk@91109 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 07:14:12 +00:00
mscott%netscape.com
eb8f9e5308 (NOT PART OF THE BUILD)
get icon support working on win2k by supporting 16 bit per pixel RGB data from the OS.
Turn this 5:5:5 data into 24 bit per pixel data.

still doesn't look quite right color wise (the blues are off) but it's closer.


git-svn-id: svn://10.0.0.236/trunk@91108 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 07:09:20 +00:00
dveditz%netscape.com
efbf1b32a6 Fix 72551 speed up zip archive opening. r=ssu,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@91107 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:35:13 +00:00
erik%netscape.com
d37fea69b3 checkin for bstell@netscape.com:
bug 55021; r=ftang@netscape.com, sr=erik@netscape.com
sample postscript font names file


git-svn-id: svn://10.0.0.236/trunk@91106 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:30:17 +00:00
erik%netscape.com
619faf0ee9 checkin for bstell@netscape.com:
bug 55021; r=ftang@netscape.com, sr=erik@netscape.com
remove default japanese postscript font names
these have been moved into nsPostScriptObj.cpp so user can override them


git-svn-id: svn://10.0.0.236/trunk@91105 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:27:40 +00:00
leaf%mozilla.org
a124ec6d2c Automated update
git-svn-id: svn://10.0.0.236/trunk@91104 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:15:02 +00:00
sspitzer%netscape.com
ea80fb54c5 #72282 fix the "watched threads" crasher, again
#62455 make sure double clicking on a cell in a column that is a cycler doesn't open the message in a new window

#72665, #73888
treat the thread unread and thread total columns like all the other columns.
allow the user to persist their hidden attribuyte.
don't hide / show them when switching between threaded and nonthreaded views.
All that's left is to hide those columns by default.

#72252 fix sort indicator problems

#72250 sorts should default to ascending

sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@91103 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:13:38 +00:00
erik%netscape.com
bae21fa3f9 checkin for bstell@netscape.com:
bug 55021; r=ftang@netscape.com, sr=erik@netscape.com
read postscript printer vendor supplied font names file
export a sample postscript font names file


git-svn-id: svn://10.0.0.236/trunk@91102 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:09:02 +00:00
erik%netscape.com
0aacd6d07e checkin for bstell@netscape.com:
bug 55021; r=ftang@netscape.com, sr=erik@netscape.com
read postscript printer vendor supplied font names file


git-svn-id: svn://10.0.0.236/trunk@91101 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:08:27 +00:00
erik%netscape.com
2bd2fa11f2 checkin for bstell@netscape.com:
bug 55021; r=ftang@netscape.com, sr=erik@netscape.com
read postscript printer vendor supplied font names file
function declarations for code to read postscript printer
  vendor supplied font names file


git-svn-id: svn://10.0.0.236/trunk@91100 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:07:57 +00:00
erik%netscape.com
8312e3d856 checkin for bstell@netscape.com:
bug 54000; r=ftang@netscape.com, sr=erik@netscape.com
(part of nl_langinfo(CODESET);)
add comment noting where to add line to include a charset remapping file


git-svn-id: svn://10.0.0.236/trunk@91099 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:06:59 +00:00
sspitzer%netscape.com
750b4b411a remove usused files.
git-svn-id: svn://10.0.0.236/trunk@91098 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:06:58 +00:00
erik%netscape.com
a52289a76d checkin for bstell@netscape.com:
bug 54000; r=ftang@netscape.com, sr=erik@netscape.com
(part of nl_langinfo(CODESET);)
this is a sample nl_langinfo(CODESET) to gecko charset remapping file


git-svn-id: svn://10.0.0.236/trunk@91097 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:06:24 +00:00
erik%netscape.com
ced7b9640b checkin for bstell@netscape.com:
bug 54000; r=ftang@netscape.com, sr=erik@netscape.com
(part of nl_langinfo(CODESET);)
add comment saying this file is deprecated


git-svn-id: svn://10.0.0.236/trunk@91096 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:05:47 +00:00
sspitzer%netscape.com
2a0503de9a #74454, allow the user to edit the value "limit message size" text area
when it is enabled.  sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@91095 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:05:31 +00:00
erik%netscape.com
54f87fda1b checkin for bstell@netscape.com:
bug 54000; r=ftang@netscape.com, sr=erik@netscape.com
get charset using ns_langinfo(CODESET)
(instead of mapping setlocale(LC_LCTYPE, nsnull);)


git-svn-id: svn://10.0.0.236/trunk@91094 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:05:05 +00:00
sspitzer%netscape.com
72ea6ce645 #74473
fix js exception when clicking on the column picker.
sr=ben.


git-svn-id: svn://10.0.0.236/trunk@91093 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:04:03 +00:00
erik%netscape.com
44b64e90c0 checkin for bstell@netscape.com:
bug 54000; r=ftang@netscape.com, sr=erik@netscape.com
(part of nl_langinfo(CODESET);)
add NS_ERROR_USING_FALLBACK_LOCALE


git-svn-id: svn://10.0.0.236/trunk@91092 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:03:59 +00:00
erik%netscape.com
88eb8c75f2 eckin for bstell@netscape.com:
bug 54000; r=ftang@netscape.com, sr=erik@netscape.com
(part of nl_langinfo(CODESET);)
add check for nl_langinfo and libc-version.h


git-svn-id: svn://10.0.0.236/trunk@91091 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:01:49 +00:00
erik%netscape.com
d674d7cdbf checkin for bstell@netscape.com:
bug 54000; r=ftang@netscape.com, sr=erik@netscape.com
(part of nl_langinfo(CODESET);)
add OS_ARCH compile define


git-svn-id: svn://10.0.0.236/trunk@91090 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:01:07 +00:00
erik%netscape.com
87c1708f1c checkin for bstell@netscape.com:
bug 54000; r=ftang@netscape.com, sr=erik@netscape.com
(part of nl_langinfo(CODESET);)
add DidLoad() method to indicate the file was loaded


git-svn-id: svn://10.0.0.236/trunk@91089 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 06:00:01 +00:00
erik%netscape.com
d4c5d165ed checkin for bstell@netscape.com:
bug 54000; r=ftang@netscape.com, sr=erik@netscape.com
(part of nl_langinfo(CODESET);)
add DidLoad() method to indicate the properties file was loaded


git-svn-id: svn://10.0.0.236/trunk@91088 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 05:59:44 +00:00
nicolson%netscape.com
c605e08e1c just hacking.
git-svn-id: svn://10.0.0.236/trunk@91087 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 04:08:20 +00:00
scc%mozilla.org
c88fb14442 fix speedracer bustage
git-svn-id: svn://10.0.0.236/trunk@91086 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 04:07:25 +00:00
scc%mozilla.org
2973f31c8f fix speedracer bustage
git-svn-id: svn://10.0.0.236/trunk@91083 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 03:29:49 +00:00
edburns%acm.org
5467f21d10 We need to have this file to unjar the dom jar into dist/classes.
git-svn-id: svn://10.0.0.236/trunk@91081 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 02:03:07 +00:00
scc%mozilla.org
6c826b6f79 fix speedracer bustage once and for all
git-svn-id: svn://10.0.0.236/trunk@91080 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 01:47:55 +00:00
edburns%acm.org
3aeae22b4e Use getEventDetail to tell if the mouse button was pressed.
git-svn-id: svn://10.0.0.236/trunk@91079 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 01:37:28 +00:00
scc%mozilla.org
fb94b0d593 fix speedracer bustage
git-svn-id: svn://10.0.0.236/trunk@91076 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 01:18:09 +00:00
ddrinan%netscape.com
79b2e3632e Added client auth callback
git-svn-id: svn://10.0.0.236/trunk@91075 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 01:11:30 +00:00
ddrinan%netscape.com
0365bb8105 Need to include dist/private/security
git-svn-id: svn://10.0.0.236/trunk@91074 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 01:10:57 +00:00
ddrinan%netscape.com
69982f32f2 Added client auth dialog interface
git-svn-id: svn://10.0.0.236/trunk@91073 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 01:10:10 +00:00
ddrinan%netscape.com
570f3987dc Client auth xul and js
git-svn-id: svn://10.0.0.236/trunk@91072 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 01:09:03 +00:00
ddrinan%netscape.com
49af02d7d1 Added client auth resources
git-svn-id: svn://10.0.0.236/trunk@91071 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 01:07:30 +00:00
ddrinan%netscape.com
d94d631f55 Added support for client auth dialogs
git-svn-id: svn://10.0.0.236/trunk@91070 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 01:06:17 +00:00
scc%mozilla.org
3701ed2f04 fix torino bustage
git-svn-id: svn://10.0.0.236/trunk@91069 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 00:42:48 +00:00
edburns%acm.org
972e690574 When bug 74468 gets fixed, -1 will be returned from getButton().
git-svn-id: svn://10.0.0.236/trunk@91068 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 00:42:47 +00:00
scc%mozilla.org
72ec93e781 fix speedracer bustage
git-svn-id: svn://10.0.0.236/trunk@91067 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 00:23:06 +00:00
edburns%acm.org
960a520571 Don't try to free an automatic variable.
git-svn-id: svn://10.0.0.236/trunk@91064 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 23:27:44 +00:00
mkaply%us.ibm.com
b27816d8a8 I give up.
Hack fix to fix OS/2 TB break.
Real fix is in #74224


git-svn-id: svn://10.0.0.236/trunk@91063 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 23:16:19 +00:00
scc%mozilla.org
7415e115f6 fix bustage
git-svn-id: svn://10.0.0.236/trunk@91062 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 23:11:04 +00:00
scc%mozilla.org
7cbb7b5ebd attempting to fix AIX, et al, bustage
git-svn-id: svn://10.0.0.236/trunk@91061 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 23:05:55 +00:00
edburns%acm.org
447399fb12 // replace nsString::Recycle with nsMemory::Free
java/dom/jni/org_mozilla_dom_events_MouseEventImpl.cpp
java/dom/jni/org_mozilla_dom_events_UIEventImpl.cpp
java/dom/jni/org_mozilla_dom_events_EventImpl.cpp
java/dom/jni/org_mozilla_dom_ProcessingInstructionImpl.cpp
java/dom/jni/org_mozilla_dom_NodeImpl.cpp
java/dom/jni/org_mozilla_dom_NamedNodeMapImpl.cpp
java/dom/jni/org_mozilla_dom_ElementImpl.cpp
java/dom/jni/org_mozilla_dom_DOMImplementationImpl.cpp
java/dom/jni/org_mozilla_dom_DocumentImpl.cpp
java/dom/jni/org_mozilla_dom_CharacterDataImpl.cpp
java/dom/jni/org_mozilla_dom_AttrImpl.cpp
java/dom/jni/javaDOMEventsGlobals.cpp

// On*DocumentLoad() now takes an nsIRequest instead of an nsIChannel.
// nsIChannel extends nsIRequest.
java/dom/src/nsJavaDOMImpl.cpp
java/dom/src/nsJavaDOMImpl.h
java/dom/src/nsIJavaDOM.h

// nsIChannel instances replaced with nsIRequest. Removed ShowModal(),
// ExitModalLoop(), FindNamedBrowserItem().  Parameter changes for
// {Set,Get}Persistence().  Add DestroyBrowserWindow(), IsWindowModal().
// supports weak references
java/webclient/src_moz/CBrowserContainer.h
java/webclient/src_moz/CBrowserContainer.cpp

// GetProfileList now returns an array of profile names.  Need to use
// nsIProfileInternal instead of nsIProfile for StartupWithArgs.
java/webclient/src_moz/NativeEventThread.cpp

// Remove -lxpfelocation_s
java/webclient/src_moz/Makefile.in

// Don't include appfilelocprovider_s
java/webclient/src_moz/Makefile.win

// Don't assert thread safe, cause we are thread safe
java/webclient/src_moz/InputStreamShim.cpp


git-svn-id: svn://10.0.0.236/trunk@91060 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 22:48:33 +00:00
scc%mozilla.org
f959d16949 partial fix for ports bustage
git-svn-id: svn://10.0.0.236/trunk@91059 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 22:42:49 +00:00
scc%mozilla.org
d5cfafb98f fix speedracer bustage; r=jag and jst
git-svn-id: svn://10.0.0.236/trunk@91052 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 22:00:34 +00:00
ashuk%eng.sun.com
e483742f91 Merging JAVADEV_RTM_20001102 into Trunk
_Ashu


git-svn-id: svn://10.0.0.236/trunk@91051 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 21:18:06 +00:00
dbaron%fas.harvard.edu
6657eede2c Fix bustage (if CSS_REPORT_PARSE_ERRORS is defined) from scc's string branch landing. nsLiteralChar was removed, so use nsLocalString instead. r=disttsc@bart.nl sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@91050 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 21:14:23 +00:00
scc%mozilla.org
7b06841b03 landing string branch; see bug #73786
git-svn-id: svn://10.0.0.236/trunk@91049 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 19:40:52 +00:00
pinkerton%netscape.com
e12df9c36a set the out param for GetSelection in all cases. fixes blocker. r=blake, sr=smfr. bug 74217.
git-svn-id: svn://10.0.0.236/trunk@91048 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 18:18:53 +00:00
sonmi%netscape.com
7347110b37 improved usage and parameters, reduced connections from 5 to 1
git-svn-id: svn://10.0.0.236/trunk@91046 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 17:32:48 +00:00
brade%netscape.com
31e670fc9d use internet config to get colors for text and window background; sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@91045 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 14:27:28 +00:00
brade%netscape.com
1cb353f0fe only add flavors when we have data in that flavor; r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@91044 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 14:11:01 +00:00
glazman%netscape.com
5b94c6728b Default namespace in html:style was HTML by default; b=72302, r=peterv, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91043 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 13:56:22 +00:00
sspitzer%netscape.com
2fb7ed4b12 fix warnings
git-svn-id: svn://10.0.0.236/trunk@91042 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 09:20:17 +00:00
sspitzer%netscape.com
118d32c61a fix for #74354. on a new header, force the row for the parent thread to update.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@91038 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 07:48:53 +00:00
sspitzer%netscape.com
450a5447cf fix #74354. the icon in the thread column should have the green arrow
if the thread has any unread messages

fix #72281.  if new message arrive and they are children of a collapsed
thread, they should not become the king of the thread.

sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@91036 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 07:22:27 +00:00
jfrancis%netscape.com
efbcb3dec1 bug 58281: fixing mem leaks when shuffling nsISupports around in editor paste code. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@91029 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 06:09:44 +00:00
sspitzer%netscape.com
2a3f8fcaa3 re-fix #72256. now that AdjustSelection() is working, inappropriately calling RowCountChange() will mess up the selection. (I'm the champ who added the inappropriate call.) sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@91026 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 05:30:39 +00:00
mscott%netscape.com
fd11d7c8e4 NOT PART OF THE BUILD YET
Windows specific icon channel implemenation for reading out icon bitmaps from the OS.

Landing files for icon urls. For windows only currently, this code will read out
icon bitmaps based on info from the windows registry and turns that into a 24 bit RGB image
which we can render. Icon urls have the form of:
icon://test.html/large
icon://test.doc/small
icon://test.doc (defaults to small).

Currently doesn't work on win2k yet.


git-svn-id: svn://10.0.0.236/trunk@91025 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 04:57:23 +00:00
mscott%netscape.com
55f471786c NOT PART OF THE BUILD YET
Landing files for icon urls. For windows only currently, this code will read out
icon bitmaps based on info from the windows registry and turns that into a 24 bit RGB image
which we can render. Icon urls have the form of:
icon://test.html/large
icon://test.doc/small
icon://test.doc (defaults to small).

Currently doesn't work on win2k yet.


git-svn-id: svn://10.0.0.236/trunk@91024 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 04:56:18 +00:00
stephend%netscape.com
7e2510a1e6 Removing 'Netscape' from console output in nsPop3Protocol.cpp. Bug 42509. Patch by Henrik Gemal <gemal@gemal.dk> r=hwaara@chello.se sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@91023 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 03:57:29 +00:00
karnaze%netscape.com
2a157ec8eb new regression test, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@91022 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 03:37:59 +00:00
karnaze%netscape.com
3d4646b8a3 new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@91021 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 03:24:31 +00:00
karnaze%netscape.com
dc9119345d bug 57467 - print a new row on the current page if it will waste too much space otherwise. sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@91020 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 03:21:58 +00:00
darin%netscape.com
7ba1e92b05 Fixes bug 72520 "support for cacheKeys must be implemented" r=gordon sr=dougt
git-svn-id: svn://10.0.0.236/trunk@91016 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 01:20:43 +00:00
darin%netscape.com
8568921a21 Fixes bug 73875 "www.fox.com does not load" r=beard sr=brendan
git-svn-id: svn://10.0.0.236/trunk@91015 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 01:12:40 +00:00
pollmann%netscape.com
fa49d41052 Bug 65609: (DOM) Allow form elements inside a subtree to find their parent when the subtree is appended/inserted. r=nisheeth@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@91014 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 00:45:52 +00:00
bryner%uiuc.edu
327beb9a6f Bug 38061 - removing obsolete headers. sr=cls.
git-svn-id: svn://10.0.0.236/trunk@91013 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 00:22:19 +00:00
mcafee%netscape.com
6ed1ca5564 Minor UI changes to get content to fit on pref panes with better resizing behavior (74002). sr=ben
git-svn-id: svn://10.0.0.236/trunk@91011 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 22:28:34 +00:00
waterson%netscape.com
7fc3df77e7 Bug 69973. Use NC_EXTENSION on Win32, too. Patch submitted by william.cook@crocodile-clips.com, r=bryner, ksosez@softhome.net; sr=waterson
git-svn-id: svn://10.0.0.236/trunk@91008 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 20:10:37 +00:00
jgmyers%netscape.com
e43bdd3098 don't decode overlong UTF8 sequences: bug 29314 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@91007 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 19:40:32 +00:00
jgmyers%netscape.com
07b50ade19 distinguish weak crypto: bug 31896 r=ddrinan
git-svn-id: svn://10.0.0.236/trunk@91006 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 19:38:12 +00:00
jgmyers%netscape.com
d305166394 distinguish weak crypto in PSM2: bug 31896 r=dmose ser=darin
git-svn-id: svn://10.0.0.236/trunk@91005 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 19:37:29 +00:00
chak%netscape.com
5c167d9d75 Calling Activate()/Deactivate() from inside of HandleEvent() as suggested by blizzard
This is a part of:
Fix for #71014 - arrow keys don't work inside text areas in mfcEmbed.
r=saari, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@91003 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 18:02:39 +00:00
chak%netscape.com
9c0f200110 Fix for #71014 - arrow keys don't work inside text areas in mfcEmbed.
r=saari, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@91002 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 17:51:12 +00:00
chak%netscape.com
edbac2c7c9 Fixes for the following bugs:
#74155 - MfcEmbed needs a prefs dlg box.
         r=valeski, sr=blizzard

#71014 - arrow keys don't work inside text areas in mfcEmbed.
         r=saari, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@91001 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 17:49:51 +00:00
mcafee%netscape.com
b49c02f26e Centering find dialog (9131). sr=ben
git-svn-id: svn://10.0.0.236/trunk@91000 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 12:09:08 +00:00
mcafee%netscape.com
36005ecf47 Adding ctrl+f for edit|search history (67908). r=blake, sr=ben
git-svn-id: svn://10.0.0.236/trunk@90997 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 11:43:06 +00:00
hwaara%chello.se
b0377ef658 Kill the last remaining js warning in this file. bug 60632. r=mao, sr=jst
git-svn-id: svn://10.0.0.236/trunk@90996 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 11:05:51 +00:00
jst%netscape.com
b98b69f1b3 Removing unused files.
git-svn-id: svn://10.0.0.236/trunk@90995 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 11:05:14 +00:00
jst%netscape.com
2a665086ed Removing unused files.
git-svn-id: svn://10.0.0.236/trunk@90994 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 10:58:34 +00:00
darin%netscape.com
c77492dc3e Fixes bug 72320. abort on exit (sending "logout" to a closed IMAP socket?).
r=sspitzer,dougt,mscott.


git-svn-id: svn://10.0.0.236/trunk@90987 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 05:17:42 +00:00
disttsc%bart.nl
19a59d243b Removing prefutilities.js, moving the code in it to where it belongs. bug=73355, r=mao, sr=ben
git-svn-id: svn://10.0.0.236/trunk@90986 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 05:02:07 +00:00
cls%seawood.org
5ca7a32c5b Add accessibility to REQUIRES. Fixing senna tb bustage.
git-svn-id: svn://10.0.0.236/trunk@90982 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 03:44:35 +00:00
morse%netscape.com
541e249bbc not part of build
git-svn-id: svn://10.0.0.236/trunk@90981 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 02:31:47 +00:00
av%netscape.com
06e15798d9 Fixing bug 73071, adding nsIPlugin::Shutdown in the plugin host destruction, r=beard, a=av, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90980 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 02:29:51 +00:00
mcafee%netscape.com
922741fa71 Setting width, height for logo.gif to avoid reflow (68264). sr=ben
git-svn-id: svn://10.0.0.236/trunk@90979 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 01:51:44 +00:00
evaughan%netscape.com
4067031dd1 Landing MSAA part of accessibility (DISABLED)
-r vidur -sr hyatt


git-svn-id: svn://10.0.0.236/trunk@90978 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 01:38:35 +00:00
jst%netscape.com
1464e3a801 New file, not part of the build.
git-svn-id: svn://10.0.0.236/trunk@90976 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 01:17:43 +00:00
jst%netscape.com
0ad75975e8 Adding new files, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@90973 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 01:10:59 +00:00
cls%seawood.org
60e8454658 Second round of nspr autoconf cleanup.
Adding --with-dist-prefix options to free up standard options for real installs.
Bug #73919 r=bryner


git-svn-id: svn://10.0.0.236/trunk@90972 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 01:02:23 +00:00
evaughan%netscape.com
94e72ae454 XP part of accessibility landing
-r vidur, rods -sr hyatt


git-svn-id: svn://10.0.0.236/trunk@90971 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 01:01:33 +00:00
waterson%netscape.com
4323130426 Bug 60079. Look a little bit harder for <area> elements, rather than just bailing if the first element in the <map> isn't an <area>. r=saari, sr=jst
git-svn-id: svn://10.0.0.236/trunk@90970 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 00:45:59 +00:00
waterson%netscape.com
9c686d896b Bug 53251. RecreateFrameForContent() on a 'special' frame need only ReframeContainingBlock(). r=karnaze, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90969 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-01 00:43:27 +00:00
mkaply%us.ibm.com
60e6b41fc8 No bug
r=mkaply, a=blizzard
Changes to get OS/2 working after LIBPR0N


git-svn-id: svn://10.0.0.236/trunk@90968 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 23:50:35 +00:00
pinkerton%netscape.com
e4fb924942 take out some useless code r=blake. bug# 18726.
git-svn-id: svn://10.0.0.236/trunk@90967 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 23:50:25 +00:00
pinkerton%netscape.com
1f8515d285 prevent click-hold scrollbars from coming up on form elements. r=pchen/sr=hyatt. bug# 18726.
git-svn-id: svn://10.0.0.236/trunk@90966 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 23:32:14 +00:00
pinkerton%netscape.com
544b8ba8d1 prevent scrollbars and popups from doing bad things with the new context menu events. r=pchen/sr=hyatt. bug# 18726
git-svn-id: svn://10.0.0.236/trunk@90965 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 23:31:37 +00:00
harishd%netscape.com
b41e36791e 69331 - <?XML..> does not require BODY!!
66985 - Do not open BODY for INPUT type=hidden. For compatibility
72639 - Discard nested FORMS
2749  - Enable Strict comment parsing.

Replace PRBools with bit operation.
nsScanner Append() should return nsresult not PRBool.

r=heikki
sr=jst


git-svn-id: svn://10.0.0.236/trunk@90964 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 22:44:05 +00:00
disttsc%bart.nl
3c74b21e9a Adding .cvsignore loving to mozilla/accessible/ and mozilla/accessible/public/
git-svn-id: svn://10.0.0.236/trunk@90963 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 20:32:49 +00:00
evaughan%netscape.com
49dad6729e Adding accessibilty to mac build
-r pinkerton -sr sfraser


git-svn-id: svn://10.0.0.236/trunk@90962 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 20:18:31 +00:00
morse%netscape.com
d86eebd4ad bug 74112, cookie following deleted cookie not getting sent out, r=valeski, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@90961 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 14:34:54 +00:00
roc+%cs.cmu.edu
5ea7ffb101 Correct child widget's view according to parent view's coordinates in AddCoveringWidgetsToOpaqueRegion. Fix for bug 73406. r=kmcclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90960 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 13:41:28 +00:00
hwaara%chello.se
127a95b883 fix if "limit message size" check box is disabled, disabled the "size" text area and do some additional cleanup. bug 74044. sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90959 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 11:27:34 +00:00
syd%netscape.com
fbc867997c Fix for 74115, r=dveditz, sr=tor
git-svn-id: svn://10.0.0.236/trunk@90958 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 08:50:32 +00:00
beard%netscape.com
ebf25fceb5 Fixes bug #73194, when profile switching occurs, ensure new cache directory is created. r=beard, sr=darin
git-svn-id: svn://10.0.0.236/trunk@90956 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 07:37:19 +00:00
cls%seawood.org
eea62e46c8 Add needed include for BeOS BONE builds.
Thanks to maz@albany.net (Matthew Zahorik) for the patch.
Bug #71681 r=darin


git-svn-id: svn://10.0.0.236/trunk@90952 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 06:23:49 +00:00
cls%seawood.org
8b63a103c4 Add version check for Qt toolkit. Minimum required version 2.2.0 (Bug #73987, r=cls)
Update QT_CFLAGS to use proper include path and special string define. (Bug #70509, r=leaf, sr=cls)
Thanks to johng@corel.com (John Griggs) for the patches.


git-svn-id: svn://10.0.0.236/trunk@90951 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 06:21:57 +00:00
sean%beatnik.com
af30194bfc fix for bug 73349: internet shortcuts created improperly. r=pinkerton sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@90950 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 05:04:57 +00:00
sspitzer%netscape.com
665b669141 #73840 fix crashers caused by a missing and addref on the db in one case, one extra one in another.
#72256 Msg selection needs to hold when expanding threads of other msgs
#72264 sorting by thread doesn't restore selection properly
#72284 Get Msg selects new message instead of leaving thread pane selection on current selected message
#74068 scroll to selected message after the sort
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90949 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 04:59:03 +00:00
sspitzer%netscape.com
6c1136f07e #72122 implement AdjustSelection on the outliner selection. sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@90948 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 04:55:34 +00:00
andreww%netscape.com
5ae4e22b64 bug 47290 r-timeless, sr-hyatt - remove grey bar when sidebar disabled
git-svn-id: svn://10.0.0.236/trunk@90943 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 03:50:17 +00:00
andreww%netscape.com
5576ddb6bd bug 72897 r=timeless, sr=hyatt toolbar buttons too wide
git-svn-id: svn://10.0.0.236/trunk@90942 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 03:49:12 +00:00
cls%seawood.org
c0e43b0b55 Remove solaris flags to use libiostream in the build.
Thanks to rich.burridge@Sun.COM (Rich Burridge) for the patch.
Bug #74005 r=cls


git-svn-id: svn://10.0.0.236/trunk@90941 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 03:39:09 +00:00
sean%beatnik.com
dda2578962 backing out part of my last patch to fix Sun build bustage.
git-svn-id: svn://10.0.0.236/trunk@90940 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 03:01:52 +00:00
bienvenu%netscape.com
0d9569e5f5 fix problem with messed up imap folder hierarchy, folder names in server.msf files 72854 and 72871 sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90939 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 02:50:11 +00:00
nelsonb%netscape.com
5b276cd67e Fix a couple of memory leaks that occur in rare error paths.
git-svn-id: svn://10.0.0.236/trunk@90938 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 02:49:59 +00:00
sean%beatnik.com
a8c2b13cd4 fix for bug 73289. Make plugin host an xpcom-shutdown observer so that it can release plugins even if it itself is leaked. ar=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90936 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 02:26:51 +00:00
leaf%mozilla.org
7070751edd Automated update
git-svn-id: svn://10.0.0.236/trunk@90935 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 02:00:03 +00:00
bryner%uiuc.edu
f3c0851883 Fixing --disable-libpr0n so we can see if it's causing the profile problems. r=cls.
git-svn-id: svn://10.0.0.236/trunk@90934 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 01:56:38 +00:00
karnaze%netscape.com
08223b27c4 fix regression test, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90928 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 01:33:21 +00:00
leaf%mozilla.org
70e61b9f1c Automated update
git-svn-id: svn://10.0.0.236/trunk@90927 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 01:15:03 +00:00
disttsc%bart.nl
6747645aa8 Convert hkscs.ut from DOS mode to UNIX mode (newline fu) to make Cement happy.
git-svn-id: svn://10.0.0.236/trunk@90926 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 01:11:45 +00:00
cls%seawood.org
8b1861c0ec Making ldap beos-aware. Fixing tinderbox bustage.
Bug #74163 r=dmose@netscape.com


git-svn-id: svn://10.0.0.236/trunk@90924 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 01:06:51 +00:00
pavlov%netscape.com
8d387bf49f fix for bug 74115. r=saari sr=scc
git-svn-id: svn://10.0.0.236/trunk@90923 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 00:50:30 +00:00
karnaze%netscape.com
f7f2974fa4 fix regression test, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90921 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 00:46:49 +00:00
cls%seawood.org
8077c2249e dos2unix: converting file intl/uconv/ucvtw/hkscs.uf to UNIX format ...
git-svn-id: svn://10.0.0.236/trunk@90920 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 00:36:19 +00:00
av%netscape.com
e018a51da3 Fixing 71884, making native Windows Get Plugin dialog modeless, r=serge, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90919 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 23:56:38 +00:00
kestes%tradinglinx.com
c293543b6d do not have blank lines before the mail headers, postfix will choke.
git-svn-id: svn://10.0.0.236/trunk@90918 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 22:44:54 +00:00
kestes%tradinglinx.com
866050de31 do not have blank lines before the mail headers, postfix will choke.
git-svn-id: svn://10.0.0.236/trunk@90917 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 22:44:10 +00:00
karnaze%netscape.com
fb99a87f3a new printing regression tests/cleanup, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@90916 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 22:19:31 +00:00
cls%seawood.org
5efbd2c0d8 Add timer to REQUIRES. Fixing senna tb bustage
git-svn-id: svn://10.0.0.236/trunk@90915 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 22:19:00 +00:00
rginda%netscape.com
a5ff3d3128 -- NOT PART OF ANY BUILD --
ircbot.js: only check userIsOwner if we care about the result
mingus.js: update owners list, add op owners on join


git-svn-id: svn://10.0.0.236/trunk@90911 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 21:05:24 +00:00
mcgreer%netscape.com
0244ac115b clean up PKCS#12 code
refer to certs by db key, not nickname (fixes nickname collision bugs)


git-svn-id: svn://10.0.0.236/trunk@90907 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 19:55:00 +00:00
kestes%tradinglinx.com
3871d7b75c remove duplicate printing of unmonitored build list.
git-svn-id: svn://10.0.0.236/trunk@90906 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 19:54:50 +00:00
javi%netscape.com
566e0db160 Fix for bug 64713. Patch from Margaret Chan to get PSM building using gcc
git-svn-id: svn://10.0.0.236/trunk@90903 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 18:46:06 +00:00
brade%netscape.com
739e748c0e remove platform specific bindings; remove ids
git-svn-id: svn://10.0.0.236/trunk@90899 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 16:02:39 +00:00
brade%netscape.com
0596bcb1c7 move certain keys to platform files; windows fixes
git-svn-id: svn://10.0.0.236/trunk@90898 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 16:00:31 +00:00
brade%netscape.com
d585f29764 remove ids
git-svn-id: svn://10.0.0.236/trunk@90897 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 15:59:44 +00:00
brade%netscape.com
cc25e2caa4 os2 keybinding changes
git-svn-id: svn://10.0.0.236/trunk@90896 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 15:58:55 +00:00
brade%netscape.com
251c7ed2b2 mac keybinding cleanup
git-svn-id: svn://10.0.0.236/trunk@90895 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 15:56:20 +00:00
kestes%tradinglinx.com
71f4b75187 I seem to have trouble keeping the interface
TinderDB::Build::all_build_names($tree);
consistent will all usage of this function.


git-svn-id: svn://10.0.0.236/trunk@90894 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 15:37:44 +00:00
mkaply%us.ibm.com
2c63774226 Per jdunn - AIX and OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@90893 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 15:31:54 +00:00
kin%netscape.com
114013d2ea Fix for Normal->ViewSource->Normal dataloss bugs
73659 (TextArea tag) and 55224 (Map tag). Added
IsTextarea() and IsMap() methods, factored out
common code for Is*() methods into NodeIsType().
r=jfrancis@netscpae.com sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@90892 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 14:39:29 +00:00
mkaply%us.ibm.com
45beae1008 #72239
r=heikki, sr=brendan
The XML parser is designed to receive extern "C" functions, so that is what we should be passing


git-svn-id: svn://10.0.0.236/trunk@90891 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 14:28:06 +00:00
mkaply%us.ibm.com
ed3df1c16e BeOS breakage - with new libimg
git-svn-id: svn://10.0.0.236/trunk@90890 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 14:24:59 +00:00
mkaply%us.ibm.com
9dbdce4188 OS/2 breakage - with new libimg
git-svn-id: svn://10.0.0.236/trunk@90889 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 14:24:49 +00:00
oeschger%netscape.com
e190bf0901 removing extra curly, NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@90888 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 14:22:15 +00:00
locka%iol.ie
6da141a0d9 Added test for MOZ_NO_ACTIVEX_REGISTRATION to disable control_kicker registration . b=71715
git-svn-id: svn://10.0.0.236/trunk@90886 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 12:01:24 +00:00
locka%iol.ie
f6942e98d1 Removed ActiveX control registration. b=71715
git-svn-id: svn://10.0.0.236/trunk@90885 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 12:00:25 +00:00
cls%seawood.org
78e26e0296 more gfx2 fun
git-svn-id: svn://10.0.0.236/trunk@90884 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 11:47:24 +00:00
disttsc%bart.nl
3ea7009900 Add "gfx2" and "imglib2" to REQUIRES lines in Makefile.in for MOZ_TRACK_MODULE_DEPS builds (e.g. senna)
git-svn-id: svn://10.0.0.236/trunk@90883 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 10:39:06 +00:00
cls%seawood.org
49b5df7f2c Start adding gfx2 headers to REQUIRES
git-svn-id: svn://10.0.0.236/trunk@90882 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 10:27:42 +00:00
glazman%netscape.com
ea38e16949 Support for :last-child pseudoclass; checking in for Ian Hickson ; b=46916, r=pierre, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90881 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 10:20:57 +00:00
cls%seawood.org
002e21b623 Cast void * to long before casting to char.
Thanks to Brad Roberts <braddr@puremagic.com> for the patch.
Bug #74078


git-svn-id: svn://10.0.0.236/trunk@90878 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 09:51:50 +00:00
axel%pike.org
518edf86c2 not part of build; do attribute comparison better in DiffDOM.js, r=peterv
git-svn-id: svn://10.0.0.236/trunk@90873 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 08:55:53 +00:00
pavlov%netscape.com
d2665b288d adding new files to unix packages file
git-svn-id: svn://10.0.0.236/trunk@90871 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 08:47:47 +00:00
pavlov%netscape.com
163bbdd200 adding new files to the embedding manifest file for unix bug 73773
git-svn-id: svn://10.0.0.236/trunk@90870 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 08:45:42 +00:00
timeless%mac.com
2a269d478f tinderbox senna bustage r=cls add timer to REQUIRES
git-svn-id: svn://10.0.0.236/trunk@90869 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 08:43:00 +00:00
pavlov%netscape.com
d42539fd26 fix for animations on linux r=saari sr=waterson bug 73342
git-svn-id: svn://10.0.0.236/trunk@90868 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 08:42:23 +00:00
cls%seawood.org
fca096b68e Attempting fix for HP-UX & OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@90867 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 08:07:20 +00:00
maolson%earthlink.net
3456445cd2 bug 53688 - javascript strict warnings in autocomplete.xml
r=timeless, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@90866 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 07:47:46 +00:00
sspitzer%netscape.com
5bd0d9390f make the widget state manager more robust. see #74072. sr=alecf
git-svn-id: svn://10.0.0.236/trunk@90865 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 07:16:59 +00:00
sspitzer%netscape.com
3f8944c914 fix js error when doing search. there is no folder tree when you are searching.
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90864 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 07:15:23 +00:00
leaf%mozilla.org
3f3c512bf1 Automated update
git-svn-id: svn://10.0.0.236/trunk@90863 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 07:15:02 +00:00
sspitzer%netscape.com
f0b029acc2 quiet js errors, since we haven't gotten dnd working for search yet.
hide the thread specific columns in the search pane.  sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90862 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 07:14:19 +00:00
pavlov%netscape.com
c29feacfbb fix for bug 73161 r=bryner,syd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90860 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 07:05:28 +00:00
pavlov%netscape.com
caeaf71875 turning on new imagelib on linux bugs 73161 and 70938 r=bryner,syd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90859 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 07:05:02 +00:00
pavlov%netscape.com
a6fb61b0dd turning on new imagelib on linux. part of bug 73161 and 70938. r=bryner,syd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@90858 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 07:04:13 +00:00
sspitzer%netscape.com
f3b6929f26 fix #73863. no twisties in the outliner in classic. r=bienvenu, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@90857 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 07:02:32 +00:00
sspitzer%netscape.com
4941e5e749 fix for #65677. if there is no spell checker, disable the "spell check on message send ui." fix by gervase.markham@univ.ox.ac.uk. sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90856 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 06:48:24 +00:00
alecf%netscape.com
62af2a607f fix for but 1995, checking in for sicking@bigfoot.com, sr=alecf r=jag
git-svn-id: svn://10.0.0.236/trunk@90853 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 06:01:00 +00:00
leaf%mozilla.org
324a8cbdbe Automated update
git-svn-id: svn://10.0.0.236/trunk@90852 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 06:00:04 +00:00
dmose%netscape.com
8824937eb8 fix BeOS bustage by disabling ldap support on that platform
git-svn-id: svn://10.0.0.236/trunk@90851 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:55:51 +00:00
naving%netscape.com
cd41ccdbf0 fix warnings due to earlier checkins
git-svn-id: svn://10.0.0.236/trunk@90850 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:51:06 +00:00
sspitzer%netscape.com
ac59320954 #72282 fix "click on empty thread pane" crash (again)
#72264 sort by thread doesn't restore selection
#74068 if we switch sort mode, scroll to find the message we are displaying

sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@90849 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:44:01 +00:00
naving%netscape.com
b27184df63 67799, 55814. sr=bienvenu
Also check if write has failed to alert the user and stop downloading messages


git-svn-id: svn://10.0.0.236/trunk@90846 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:30:13 +00:00
leaf%mozilla.org
a3a81d5571 Automated update
git-svn-id: svn://10.0.0.236/trunk@90845 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:30:04 +00:00
naving%netscape.com
422b25a870 67799, 55814. sr=bienvenu. Check if write has failed to alert the user and stop downloading messages. Truncate the file if write has failed before downloading a message completely
git-svn-id: svn://10.0.0.236/trunk@90844 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:29:53 +00:00
naving%netscape.com
f1e8c50dca 67799, 55814. sr=bienvenu. Do UIDL implemenetation when we don't leave messages on the server. if write has failed to alert the user and stop downloading messages
git-svn-id: svn://10.0.0.236/trunk@90843 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:28:43 +00:00
naving%netscape.com
5c2fd21f73 67799, 55814. Do UIDL implemenetation when we don't leave messages on the server.
Also check if write has failed to alert the user and stop downloading messages


git-svn-id: svn://10.0.0.236/trunk@90842 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:27:53 +00:00
naving%netscape.com
fbd042a61b 67799, 55814. Clean up work asscociated with these bugs.
git-svn-id: svn://10.0.0.236/trunk@90841 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:25:54 +00:00
kmcclusk%netscape.com
780ba6923c Use frame bit to indicate if frame has a decendant with a view and use this to optimize nsContainerFrame::PositionChildViews; bug 70211; sr=attinasi@netscape.com r=karnaze@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90840 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:25:49 +00:00
naving%netscape.com
e53729a27c 67799, 55814. sr=bienvenu. Propogate the error values for streams.
git-svn-id: svn://10.0.0.236/trunk@90839 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:24:34 +00:00
dmose%netscape.com
299f3bb323 This workaround actually won't work. Backing it out.
git-svn-id: svn://10.0.0.236/trunk@90838 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:24:23 +00:00
pinkerton%netscape.com
d4f0bc497f attempt to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@90836 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:22:42 +00:00
sspitzer%netscape.com
49eb631a77 fix for #71243. don't hard code the default values, get them from the
default prefs.  fix by cavin@netscape.com.  sr=spitzer


git-svn-id: svn://10.0.0.236/trunk@90835 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:22:22 +00:00
kmcclusk%netscape.com
e889aeb106 Invalidate only the newly exposed region when the container frame size changes vertically b=19256; sr=attinasi@netscape.com r=roc+moz@cs.cmu.edu
git-svn-id: svn://10.0.0.236/trunk@90834 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:17:07 +00:00
bienvenu%netscape.com
225b79f9a0 fix assertion when loading folder with just one thread r=naving, sr=sspitzer 73989
git-svn-id: svn://10.0.0.236/trunk@90833 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:12:43 +00:00
bienvenu%netscape.com
1f54e1c13c fix 73960 double load of imap inbox on start r=naving, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@90832 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:07:20 +00:00
joe.chou%eng.sun.com
ef0e4bc915 Re-checkin fix of bug 64296 after updating the Mac file, build/mac/build_scripts
/MozillaBuildList.pm.

bug=64296
r=edburns
sr=waterson

This checkin idlifies some files in the plugin hierarchy.

The following files are in this checkin.

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


git-svn-id: svn://10.0.0.236/trunk@90831 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:00:56 +00:00
leaf%mozilla.org
e3057bb8c0 Automated update
git-svn-id: svn://10.0.0.236/trunk@90830 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:00:02 +00:00
dmose%netscape.com
fb352a8266 Attempt to workaround bustage on palermo by forcing -Dhpux on all HP/UX builds. r=cls@seawoord.org
git-svn-id: svn://10.0.0.236/trunk@90829 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 04:51:54 +00:00
pinkerton%netscape.com
ccfecb4d51 switching mac to use NS_CONTEXTMENU event, click-hold context menus, switching embedding to use NS_CONTEXTMENU event. r=saari/sr=hyatt. bug# 36665, 18726
git-svn-id: svn://10.0.0.236/trunk@90828 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 04:45:40 +00:00
cls%seawood.org
33374aacdf Help text typo fix.
Thanks to Ben Bucksch <ben.bucksch@beonex.com> for the patch.


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

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


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


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


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

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


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


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

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


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


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


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


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


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


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




Hi Norris,

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

Cheers,

Chris


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

sr=sspitzer


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


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


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


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


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


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

This checkin idlifies some files in the plugin hierarchy.

The following files are in this checkin.

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

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

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

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

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

sr=bienvenu


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


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


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


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


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


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


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


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


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


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


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


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


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


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

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

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

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


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

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

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

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

remove some dead js.


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

sr=mscott


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

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

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

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

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

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


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


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


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


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


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


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


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


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


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


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


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


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


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

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


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


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

r = ftang sr=erik,
p =  Jungshik Shin


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

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


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


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


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


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


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


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

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

enjoy =).


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


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


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


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


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


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

Add news files on the branch to the tip.


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


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

Adding some new files to the tip.


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


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


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


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


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


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


git-svn-id: svn://10.0.0.236/trunk@89667 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 23:57:37 +00:00
1495 changed files with 10284 additions and 550744 deletions

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,323 @@
/* -*- 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 Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _GIF_H_
#define _GIF_H_
/* gif2.h
The interface for the GIF87/89a decoder.
*/
// List of possible parsing states
typedef enum {
gif_gather,
gif_init, //1
gif_type,
gif_version,
gif_global_header,
gif_global_colormap,
gif_image_start, //6
gif_image_header,
gif_image_colormap,
gif_image_body,
gif_lzw_start,
gif_lzw, //11
gif_sub_block,
gif_extension,
gif_control_extension,
gif_consume_block,
gif_skip_block,
gif_done, //17
gif_oom,
gif_error,
gif_comment_extension,
gif_application_extension,
gif_netscape_extension_block,
gif_consume_netscape_extension,
gif_consume_comment,
gif_delay,
gif_wait_for_buffer_full,
gif_stop_animating //added for animation stop
} gstate;
/* "Disposal" method indicates how the image should be handled in the
framebuffer before the subsequent image is displayed. */
typedef enum
{
DISPOSE_NOT_SPECIFIED = 0,
DISPOSE_KEEP = 1, /* Leave it in the framebuffer */
DISPOSE_OVERWRITE_BGCOLOR = 2, /* Overwrite with background color */
DISPOSE_OVERWRITE_PREVIOUS = 4 /* Save-under */
} gdispose;
/* A RGB triplet representing a single pixel in the image's colormap
(if present.) */
typedef struct _GIF_RGB
{
PRUint8 red, green, blue, pad; /* Windows requires the fourth byte &
many compilers pad it anyway. */
/* XXX: hist_count appears to be unused */
//PRUint16 hist_count; /* Histogram frequency count. */
} GIF_RGB;
/* Colormap information. */
typedef struct _GIF_ColorMap {
int32 num_colors; /* Number of colors in the colormap.
A negative value can be used to denote a
possibly non-unique set. */
GIF_RGB *map; /* Colormap colors. */
PRUint8 *index; /* NULL, if map is in index order. Otherwise
specifies the indices of the map entries. */
void *table; /* Lookup table for this colormap. Private to
the Image Library. */
} GIF_ColorMap;
/* An indexed RGB triplet. */
typedef struct _GIF_IRGB {
PRUint8 index;
PRUint8 red, green, blue;
} GIF_IRGB;
/* A GIF decoder's state */
typedef struct gif_struct {
void* clientptr;
/* Callbacks for this decoder instance*/
int (PR_CALLBACK *GIFCallback_NewPixmap)();
int (PR_CALLBACK *GIFCallback_BeginGIF)(
void* aClientData,
PRUint32 aLogicalScreenWidth,
PRUint32 aLogicalScreenHeight,
PRUint8 aLogicalScreenBackgroundRGBIndex);
int (PR_CALLBACK* GIFCallback_EndGIF)(
void* aClientData,
int aAnimationLoopCount);
int (PR_CALLBACK* GIFCallback_BeginImageFrame)(
void* aClientData,
PRUint32 aFrameNumber, /* Frame number, 1-n */
PRUint32 aFrameXOffset, /* X offset in logical screen */
PRUint32 aFrameYOffset, /* Y offset in logical screen */
PRUint32 aFrameWidth,
PRUint32 aFrameHeight,
GIF_RGB* aTransparencyChromaKey);
int (PR_CALLBACK* GIFCallback_EndImageFrame)(
void* aClientData,
PRUint32 aFrameNumber,
PRUint32 aDelayTimeout);
int (PR_CALLBACK* GIFCallback_SetupColorspaceConverter)();
int (PR_CALLBACK* GIFCallback_ResetPalette)();
int (PR_CALLBACK* GIFCallback_InitTransparentPixel)();
int (PR_CALLBACK* GIFCallback_DestroyTransparentPixel)();
int (PR_CALLBACK* GIFCallback_HaveDecodedRow)(
void* aClientData,
PRUint8* aRowBufPtr, /* Pointer to single scanline temporary buffer */
PRUint8* aRGBrowBufPtr,/* Pointer to temporary storage for dithering/mapping */
int aXOffset, /* With respect to GIF logical screen origin */
int aLength, /* Length of the row? */
int aRow, /* Row number? */
int aDuplicateCount, /* Number of times to duplicate the row? */
PRUint8 aDrawMode, /* il_draw_mode */
int aInterlacePass);
int (PR_CALLBACK *GIFCallback_HaveImageAll)(
void* aClientData);
/* Parsing state machine */
gstate state; /* Curent decoder master state */
PRUint8 *hold; /* Accumulation buffer */
int32 hold_size; /* Capacity, in bytes, of accumulation buffer */
PRUint8 *gather_head; /* Next byte to read in accumulation buffer */
int32 gather_request_size; /* Number of bytes to accumulate */
int32 gathered; /* bytes accumulated so far*/
gstate post_gather_state; /* State after requested bytes accumulated */
int32 requested_buffer_fullness; /* For netscape application extension */
/* LZW decoder state machine */
PRUint8 *stack; /* Base of decoder stack */
PRUint8 *stackp; /* Current stack pointer */
PRUint16 *prefix;
PRUint8 *suffix;
int datasize;
int codesize;
int codemask;
int clear_code; /* Codeword used to trigger dictionary reset */
int avail; /* Index of next available slot in dictionary */
int oldcode;
PRUint8 firstchar;
int count; /* Remaining # bytes in sub-block */
int bits; /* Number of unread bits in "datum" */
int32 datum; /* 32-bit input buffer */
/* Output state machine */
int ipass; /* Interlace pass; Ranges 1-4 if interlaced. */
PRUintn rows_remaining; /* Rows remaining to be output */
PRUintn irow; /* Current output row, starting at zero */
PRUint8 *rgbrow; /* Temporary storage for dithering/mapping */
PRUint8 *rowbuf; /* Single scanline temporary buffer */
PRUint8 *rowend; /* Pointer to end of rowbuf */
PRUint8 *rowp; /* Current output pointer */
/* Parameters for image frame currently being decoded*/
PRUintn x_offset, y_offset; /* With respect to "screen" origin */
PRUintn height, width;
PRUintn last_x_offset, last_y_offset; /* With respect to "screen" origin */
PRUintn last_height, last_width;
int interlaced; /* TRUE, if scanlines arrive interlaced order */
int tpixel; /* Index of transparent pixel */
GIF_IRGB* transparent_pixel;
int is_transparent; /* TRUE, if tpixel is valid */
int control_extension; /* TRUE, if image control extension present */
int is_local_colormap_defined;
gdispose disposal_method; /* Restore to background, leave in place, etc.*/
gdispose last_disposal_method;
GIF_RGB *local_colormap; /* Per-image colormap */
int local_colormap_size; /* Size of local colormap array. */
PRUint32 delay_time; /* Display time, in milliseconds,
for this image in a multi-image GIF */
/* Global (multi-image) state */
int screen_bgcolor; /* Logical screen background color */
int version; /* Either 89 for GIF89 or 87 for GIF87 */
PRUintn screen_width; /* Logical screen width & height */
PRUintn screen_height;
GIF_RGB *global_colormap; /* Default colormap if local not supplied */
int global_colormap_size; /* Size of global colormap array. */
int images_decoded; /* Counts images for multi-part GIFs */
int destroy_pending; /* Stream has ended */
int progressive_display; /* If TRUE, do Haeberli interlace hack */
int loop_count; /* Netscape specific extension block to control
the number of animation loops a GIF renders. */
} gif_struct;
/* Create a new gif_struct */
extern PRBool gif_create(gif_struct **gs);
/* These are the APIs that the client calls to intialize,
push data to, and shut down the GIF decoder. */
PRBool GIFInit(
gif_struct* gs,
void* aClientData,
int (*PR_CALLBACK GIFCallback_NewPixmap)(),
int (*PR_CALLBACK GIFCallback_BeginGIF)(
void* aClientData,
PRUint32 aLogicalScreenWidth,
PRUint32 aLogicalScreenHeight,
PRUint8 aBackgroundRGBIndex),
int (*PR_CALLBACK GIFCallback_EndGIF)(
void* aClientData,
int aAnimationLoopCount),
int (*PR_CALLBACK GIFCallback_BeginImageFrame)(
void* aClientData,
PRUint32 aFrameNumber, /* Frame number, 1-n */
PRUint32 aFrameXOffset, /* X offset in logical screen */
PRUint32 aFrameYOffset, /* Y offset in logical screen */
PRUint32 aFrameWidth,
PRUint32 aFrameHeight,
GIF_RGB* aTransparencyChromaKey),
int (*PR_CALLBACK GIFCallback_EndImageFrame)(
void* aClientData,
PRUint32 aFrameNumber,
PRUint32 aDelayTimeout),
int (*PR_CALLBACK GIFCallback_SetupColorspaceConverter)(),
int (*PR_CALLBACK GIFCallback_ResetPalette)(),
int (*PR_CALLBACK GIFCallback_InitTransparentPixel)(),
int (*PR_CALLBACK GIFCallback_DestroyTransparentPixel)(),
int (*PR_CALLBACK GIFCallback_HaveDecodedRow)(
void* aClientData,
PRUint8* aRowBufPtr, /* Pointer to single scanline temporary buffer */
PRUint8* aRGBrowBufPtr,/* Pointer to temporary storage for dithering/mapping */
int aXOffset, /* With respect to GIF logical screen origin */
int aLength, /* Length of the row? */
int aRow, /* Row number? */
int aDuplicateCount, /* Number of times to duplicate the row? */
PRUint8 aDrawMode, /* il_draw_mode */
int aInterlacePass),
int (*PR_CALLBACK GIFCallback_HaveImageAll)(
void* aClientData)
);
extern void gif_destroy(gif_struct* aGIFStruct);
int gif_write(gif_struct* aGIFStruct, const PRUint8 * buf, PRUint32 numbytes);
PRUint8 gif_write_ready(gif_struct* aGIFStruct);
extern void gif_complete(gif_struct** aGIFStruct);
extern void gif_delay_time_callback(/* void *closure */);
/* Callback functions that the client must implement and pass in
pointers for during the GIFInit call. These will be called back
when the decoder has a decoded rows, frame size information, etc.*/
/* GIFCallback_LogicalScreenSize is called only once to notify the client
of the logical screen size, which will be the size of the total image. */
typedef int (*PR_CALLBACK BEGINGIF_CALLBACK)(
void* aClientData,
PRUint32 aLogicalScreenWidth,
PRUint32 aLogicalScreenHeight,
PRUint8 aLogicalScreenBackgroundRGBIndex);
typedef int (PR_CALLBACK *GIFCallback_EndGIF)(
void* aClientData,
int aAnimationLoopCount);
/* GIFCallback_BeginImageFrame is called at the beginning of each frame of
a GIF.*/
typedef int (PR_CALLBACK *GIFCallback_BeginImageFrame)(
void* aClientData,
PRUint32 aFrameNumber, /* Frame number, 1-n */
PRUint32 aFrameXOffset, /* X offset in logical screen */
PRUint32 aFraqeYOffset, /* Y offset in logical screen */
PRUint32 aFrameWidth,
PRUint32 aFrameHeight);
extern int GIFCallback_EndImageFrame(
void* aClientData,
PRUint32 aFrameNumber,
PRUint32 aDelayTimeout); /* Time in milliseconds this frame should be displayed before the next frame.
This information appears in a sub control block, so we don't
transmit it back to the client until we're done with the frame. */
/*
extern int GIFCallback_SetupColorspaceConverter();
extern int GIFCallback_ResetPalette();
extern int GIFCallback_InitTransparentPixel();
extern int GIFCallback_DestroyTransparentPixel();
*/
extern int GIFCallback_HaveDecodedRow();
extern int GIFCallback_HaveImageAll();
#endif

View File

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

View File

@@ -0,0 +1,52 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Stuart Parmenter <pavlov@netscape.com>
#
DEPTH=..\..\..\..
include <$(DEPTH)/config/config.mak>
MODULE = imggif
LIBRARY_NAME = imggif
DLL = $(OBJDIR)\$(LIBRARY_NAME).dll
MAKE_OBJ_TYPE = DLL
OBJS = \
.\$(OBJDIR)\nsGIFDecoder2.obj \
.\$(OBJDIR)\GIF2.obj \
.\$(OBJDIR)\nsGIFModule.obj \
$(NULL)
LLIBS=\
$(LIBNSPR) \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\gkgfxwin.lib \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).lib $(DIST)\lib
clobber::
rm -f $(DIST)\bin\components\$(LIBRARY_NAME).dll
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,506 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Chris Saari <saari@netscape.com>
*/
#include "nsGIFDecoder2.h"
#include "nsIInputStream.h"
#include "nsIComponentManager.h"
#include "nsIImage.h"
#include "nsMemory.h"
#include "imgIContainerObserver.h"
#include "nsRect.h"
//////////////////////////////////////////////////////////////////////
// GIF Decoder Implementation
// This is an adaptor between GIF2 and imgIDecoder
NS_IMPL_ISUPPORTS2(nsGIFDecoder2, imgIDecoder, nsIOutputStream);
nsGIFDecoder2::nsGIFDecoder2()
{
NS_INIT_ISUPPORTS();
mImageFrame = nsnull;
mGIFStruct = nsnull;
mAlphaLine = nsnull;
}
nsGIFDecoder2::~nsGIFDecoder2(void)
{
if (mAlphaLine)
nsMemory::Free(mAlphaLine);
if (mGIFStruct) {
gif_destroy(mGIFStruct);
mGIFStruct = nsnull;
}
}
//******************************************************************************
/** imgIDecoder methods **/
//******************************************************************************
//******************************************************************************
/* void init (in imgIRequest aRequest); */
NS_IMETHODIMP nsGIFDecoder2::Init(imgIRequest *aRequest)
{
mImageRequest = aRequest;
mObserver = do_QueryInterface(aRequest); // we're holding 2 strong refs to the request.
aRequest->GetImage(getter_AddRefs(mImageContainer));
/* do gif init stuff */
/* Always decode to 24 bit pixdepth */
PRBool created = gif_create(&mGIFStruct);
NS_ASSERTION(created, "gif_create failed");
// Call GIF decoder init routine
GIFInit(
mGIFStruct,
this,
NewPixmap,
BeginGIF,
EndGIF,
BeginImageFrame,
EndImageFrame,
SetupColorspaceConverter,
ResetPalette,
InitTransparentPixel,
DestroyTransparentPixel,
HaveDecodedRow,
HaveImageAll);
return NS_OK;
}
//******************************************************************************
/* readonly attribute imgIRequest request; */
NS_IMETHODIMP nsGIFDecoder2::GetRequest(imgIRequest * *aRequest)
{
*aRequest = mImageRequest;
NS_IF_ADDREF(*aRequest);
return NS_OK;
}
//******************************************************************************
/** nsIOutputStream methods **/
//******************************************************************************
//******************************************************************************
/* void close (); */
NS_IMETHODIMP nsGIFDecoder2::Close()
{
if (mGIFStruct) {
gif_destroy(mGIFStruct);
mGIFStruct = nsnull;
}
return NS_OK;
}
//******************************************************************************
/* void flush (); */
NS_IMETHODIMP nsGIFDecoder2::Flush()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* unsigned long write (in string buf, in unsigned long count); */
NS_IMETHODIMP nsGIFDecoder2::Write(const char *buf, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* static callback from nsIInputStream::ReadSegments */
static NS_METHOD ReadDataOut(nsIInputStream* in,
void* closure,
const char* fromRawSegment,
PRUint32 toOffset,
PRUint32 count,
PRUint32 *writeCount)
{
nsGIFDecoder2 *decoder = NS_STATIC_CAST(nsGIFDecoder2*, closure);
*writeCount = decoder->ProcessData((unsigned char*)fromRawSegment, count);
return NS_OK;
}
//******************************************************************************
PRUint32 nsGIFDecoder2::ProcessData(unsigned char *data, PRUint32 count)
{
// Push the data to the GIF decoder
// First we ask if the gif decoder is ready for more data, and if so, push it.
// In the new decoder, we should always be able to process more data since
// we don't wait to decode each frame in an animation now.
if(gif_write_ready(mGIFStruct)) {
gif_write(mGIFStruct, data, count);
}
return count; // we always consume all the data
}
//******************************************************************************
/* unsigned long writeFrom (in nsIInputStream inStr, in unsigned long count); */
NS_IMETHODIMP nsGIFDecoder2::WriteFrom(nsIInputStream *inStr, PRUint32 count, PRUint32 *_retval)
{
inStr->ReadSegments(
ReadDataOut, // Callback
this,
count,
_retval);
// if error
//mRequest->Cancel(NS_BINDING_ABORTED); // XXX is this the correct error ?
return NS_OK;
}
//******************************************************************************
/* [noscript] unsigned long writeSegments (in nsReadSegmentFun reader, in voidPtr closure, in unsigned long count); */
NS_IMETHODIMP nsGIFDecoder2::WriteSegments(nsReadSegmentFun reader, void * closure, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* attribute boolean nonBlocking; */
NS_IMETHODIMP nsGIFDecoder2::GetNonBlocking(PRBool *aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
NS_IMETHODIMP nsGIFDecoder2::SetNonBlocking(PRBool aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* attribute nsIOutputStreamObserver observer; */
NS_IMETHODIMP nsGIFDecoder2::GetObserver(nsIOutputStreamObserver * *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
NS_IMETHODIMP nsGIFDecoder2::SetObserver(nsIOutputStreamObserver * aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
// GIF decoder callback methods. Part of pulic API for GIF2
//******************************************************************************
//******************************************************************************
int BeginGIF(
void* aClientData,
PRUint32 aLogicalScreenWidth,
PRUint32 aLogicalScreenHeight,
PRUint8 aBackgroundRGBIndex)
{
// copy GIF info into imagelib structs
nsGIFDecoder2 *decoder = NS_STATIC_CAST(nsGIFDecoder2*, aClientData);
if (decoder->mObserver)
decoder->mObserver->OnStartDecode(nsnull, nsnull);
decoder->mImageContainer->Init(aLogicalScreenWidth, aLogicalScreenHeight, decoder->mObserver);
if (decoder->mObserver)
decoder->mObserver->OnStartContainer(nsnull, nsnull, decoder->mImageContainer);
return 0;
}
//******************************************************************************
int EndGIF(
void* aClientData,
int aAnimationLoopCount)
{
nsGIFDecoder2 *decoder = NS_STATIC_CAST(nsGIFDecoder2*, aClientData);
if (decoder->mObserver) {
decoder->mObserver->OnStopContainer(nsnull, nsnull, decoder->mImageContainer);
decoder->mObserver->OnStopDecode(nsnull, nsnull, NS_OK, nsnull);
}
decoder->mImageContainer->SetLoopCount(aAnimationLoopCount);
decoder->mImageContainer->DecodingComplete();
return 0;
}
//******************************************************************************
int BeginImageFrame(
void* aClientData,
PRUint32 aFrameNumber, /* Frame number, 1-n */
PRUint32 aFrameXOffset, /* X offset in logical screen */
PRUint32 aFrameYOffset, /* Y offset in logical screen */
PRUint32 aFrameWidth,
PRUint32 aFrameHeight,
GIF_RGB* aTransparencyChromaKey) /* don't have this info yet */
{
nsGIFDecoder2* decoder = NS_STATIC_CAST(nsGIFDecoder2*, aClientData);
decoder->mImageFrame = nsnull; // clear out our current frame reference
decoder->mGIFStruct->x_offset = aFrameXOffset;
decoder->mGIFStruct->y_offset = aFrameYOffset;
decoder->mGIFStruct->width = aFrameWidth;
decoder->mGIFStruct->height = aFrameHeight;
return 0;
}
//******************************************************************************
int EndImageFrame(
void* aClientData,
PRUint32 aFrameNumber,
PRUint32 aDelayTimeout) /* Time this frame should be displayed before the next frame
we can't have this in the image frame init because it doesn't
show up in the GIF frame header, it shows up in a sub control
block.*/
{
nsGIFDecoder2* decoder = NS_STATIC_CAST(nsGIFDecoder2*, aClientData);
// We actually have the timeout information before we get the lzw encoded image
// data, at least according to the spec, but we delay in setting the timeout for
// the image until here to help ensure that we have the whole image frame decoded before
// we go off and try to display another frame.
// XXXXXXXX
// decoder->mImageFrame->SetTimeout(aDelayTimeout);
decoder->mImageContainer->EndFrameDecode(aFrameNumber, aDelayTimeout);
if (decoder->mObserver)
decoder->mObserver->OnStopFrame(nsnull, nsnull, decoder->mImageFrame);
decoder->mImageFrame = nsnull;
return 0;
}
//******************************************************************************
// GIF decoder callback
int HaveImageAll(
void* aClientData)
{
return 0;
}
//******************************************************************************
// GIF decoder callback notification that it has decoded a row
int HaveDecodedRow(
void* aClientData,
PRUint8* aRowBufPtr, // Pointer to single scanline temporary buffer
PRUint8* aRGBrowBufPtr,// Pointer to temporary storage for dithering/mapping
int aXOffset, // With respect to GIF logical screen origin
int aLength, // Length of the row?
int aRowNumber, // Row number?
int aDuplicateCount, // Number of times to duplicate the row?
PRUint8 aDrawMode, // il_draw_mode
int aInterlacePass) // interlace pass (1-4)
{
nsGIFDecoder2* decoder = NS_STATIC_CAST(nsGIFDecoder2*, aClientData);
PRUint32 bpr, abpr;
// We have to delay allocation of the image frame until now because
// we won't have control block info (transparency) until now. The conrol
// block of a GIF stream shows up after the image header since transparency
// is added in GIF89a and control blocks are how the extensions are done.
// How annoying.
if(! decoder->mImageFrame) {
gfx_format format = gfxIFormats::RGB;
if (decoder->mGIFStruct->is_transparent)
format = gfxIFormats::RGB_A1;
#ifdef XP_PC
// XXX this works...
format += 1; // RGB to BGR
#endif
// initalize the frame and append it to the container
decoder->mImageFrame = do_CreateInstance("@mozilla.org/gfx/image/frame;2");
decoder->mImageFrame->Init(
decoder->mGIFStruct->x_offset, decoder->mGIFStruct->y_offset,
decoder->mGIFStruct->width, decoder->mGIFStruct->height, format);
decoder->mImageContainer->AppendFrame(decoder->mImageFrame);
if (decoder->mObserver)
decoder->mObserver->OnStartFrame(nsnull, nsnull, decoder->mImageFrame);
decoder->mImageFrame->GetImageBytesPerRow(&bpr);
decoder->mImageFrame->GetAlphaBytesPerRow(&abpr);
if (format == gfxIFormats::RGB_A1 || format == gfxIFormats::BGR_A1) {
if (decoder->mAlphaLine)
nsMemory::Free(decoder->mAlphaLine);
decoder->mAlphaLine = (PRUint8 *)nsMemory::Alloc(abpr);
}
} else {
decoder->mImageFrame->GetImageBytesPerRow(&bpr);
decoder->mImageFrame->GetAlphaBytesPerRow(&abpr);
}
if (aRowBufPtr) {
nscoord width;
decoder->mImageFrame->GetWidth(&width);
PRUint32 iwidth = width;
gfx_format format;
decoder->mImageFrame->GetFormat(&format);
// XXX map the data into colors
int cmapsize;
GIF_RGB* cmap;
if(decoder->mGIFStruct->local_colormap) {
cmapsize = decoder->mGIFStruct->local_colormap_size;
cmap = decoder->mGIFStruct->local_colormap;
} else {
cmapsize = decoder->mGIFStruct->global_colormap_size;
cmap = decoder->mGIFStruct->global_colormap;
}
PRUint8* rgbRowIndex = aRGBrowBufPtr;
PRUint8* rowBufIndex = aRowBufPtr;
switch (format) {
case gfxIFormats::RGB:
{
while(rowBufIndex != decoder->mGIFStruct->rowend) {
#ifdef XP_MAC
*rgbRowIndex++ = 0; // Mac is always 32bits per pixel, this is pad
#endif
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].red;
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].green;
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].blue;
++rowBufIndex;
}
decoder->mImageFrame->SetImageData((PRUint8*)aRGBrowBufPtr, bpr, aRowNumber*bpr);
}
break;
case gfxIFormats::BGR:
{
while(rowBufIndex != decoder->mGIFStruct->rowend) {
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].blue;
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].green;
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].red;
++rowBufIndex;
}
decoder->mImageFrame->SetImageData((PRUint8*)aRGBrowBufPtr, bpr, aRowNumber*bpr);
}
break;
case gfxIFormats::RGB_A1:
case gfxIFormats::BGR_A1:
{
memset(aRGBrowBufPtr, 0, bpr);
memset(decoder->mAlphaLine, 0, abpr);
PRUint32 iwidth = (PRUint32)width;
for (PRUint32 x=0; x<iwidth; x++) {
if (*rowBufIndex != decoder->mGIFStruct->tpixel) {
#ifdef XP_PC
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].blue;
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].green;
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].red;
#else
#ifdef XP_MAC
*rgbRowIndex++ = 0; // Mac is always 32bits per pixel, this is pad
#endif
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].red;
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].green;
*rgbRowIndex++ = cmap[PRUint8(*rowBufIndex)].blue;
#endif
decoder->mAlphaLine[x>>3] |= 1<<(7-x&0x7);
} else {
#ifdef XP_MAC
rgbRowIndex+=4;
#else
rgbRowIndex+=3;
#endif
}
++rowBufIndex;
}
decoder->mImageFrame->SetImageData((PRUint8*)aRGBrowBufPtr, bpr, aRowNumber*bpr);
decoder->mImageFrame->SetAlphaData(decoder->mAlphaLine, abpr, aRowNumber*abpr);
}
break;
default:
break;
}
nsRect r(0, aRowNumber, width, 1);
decoder->mObserver->OnDataAvailable(nsnull, nsnull, decoder->mImageFrame, &r);
}
return 0;
}
//******************************************************************************
int ResetPalette()
{
return 0;
}
//******************************************************************************
int SetupColorspaceConverter()
{
return 0;
}
//******************************************************************************
int EndImageFrame()
{
return 0;
}
//******************************************************************************
int NewPixmap()
{
return 0;
}
//******************************************************************************
int InitTransparentPixel()
{
return 0;
}
//******************************************************************************
int DestroyTransparentPixel()
{
return 0;
}

View File

@@ -0,0 +1,114 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Chris Saari <saari@netscape.com>
*/
#ifndef _nsGIFDecoder2_h
#define _nsGIFDecoder2_h
#include "nsCOMPtr.h"
#include "imgIDecoder.h"
#include "imgIContainer.h"
#include "imgIDecoderObserver.h"
#include "gfxIImageFrame.h"
#include "imgIRequest.h"
#include "GIF2.h"
#define NS_GIFDECODER2_CID \
{ /* 797bec5a-1dd2-11b2-a7f8-ca397e0179c4 */ \
0x797bec5a, \
0x1dd2, \
0x11b2, \
{0xa7, 0xf8, 0xca, 0x39, 0x7e, 0x01, 0x79, 0xc4} \
}
//////////////////////////////////////////////////////////////////////
// nsGIFDecoder2 Definition
class nsGIFDecoder2 : public imgIDecoder
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMGIDECODER
NS_DECL_NSIOUTPUTSTREAM
nsGIFDecoder2();
virtual ~nsGIFDecoder2();
static NS_METHOD Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
NS_METHOD ProcessData(unsigned char *data, PRUint32 count);
nsCOMPtr<imgIContainer> mImageContainer;
nsCOMPtr<gfxIImageFrame> mImageFrame;
nsCOMPtr<imgIRequest> mImageRequest;
nsCOMPtr<imgIDecoderObserver> mObserver; // this is just qi'd from mRequest for speed
gif_struct *mGIFStruct;
PRUint8 *mAlphaLine;
};
// static callbacks for the GIF decoder
static int PR_CALLBACK BeginGIF(
void* aClientData,
PRUint32 aLogicalScreenWidth,
PRUint32 aLogicalScreenHeight,
PRUint8 aBackgroundRGBIndex);
static int PR_CALLBACK HaveDecodedRow(
void* aClientData,
PRUint8* aRowBufPtr, // Pointer to single scanline temporary buffer
PRUint8* aRGBrowBufPtr,// Pointer to temporary storage for dithering/mapping
int aXOffset, // With respect to GIF logical screen origin
int aLength, // Length of the row?
int aRow, // Row number?
int aDuplicateCount, // Number of times to duplicate the row?
PRUint8 aDrawMode, // il_draw_mode
int aInterlacePass);
static int PR_CALLBACK NewPixmap();
static int PR_CALLBACK EndGIF(
void* aClientData,
int aAnimationLoopCount);
static int PR_CALLBACK BeginImageFrame(
void* aClientData,
PRUint32 aFrameNumber, /* Frame number, 1-n */
PRUint32 aFrameXOffset, /* X offset in logical screen */
PRUint32 aFrameYOffset, /* Y offset in logical screen */
PRUint32 aFrameWidth,
PRUint32 aFrameHeight,
GIF_RGB* aTransparencyChromaKey);
static int PR_CALLBACK EndImageFrame(
void* aClientData,
PRUint32 aFrameNumber,
PRUint32 aDelayTimeout);
static int PR_CALLBACK SetupColorspaceConverter();
static int PR_CALLBACK ResetPalette();
static int PR_CALLBACK InitTransparentPixel();
static int PR_CALLBACK DestroyTransparentPixel();
static int PR_CALLBACK HaveImageAll(
void* aClientData);
#endif

View File

@@ -1,5 +1,4 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
@@ -19,25 +18,24 @@
* Rights Reserved.
*
* Contributor(s):
* Chris Saari <saari@netscape.com>
*/
Netscape Modifications to Zlib source -
#include "nsGIFDecoder2.h"
#include "nsIComponentManager.h"
#include "nsIGenericFactory.h"
#include "nsISupports.h"
#include "nsCOMPtr.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(nsGIFDecoder2)
Changes were made to the following files to
create a zlib dll:
adler32.c
compress.c
crc32.c
deflate.c
gzio.c
inflate.c
uncompr.c
zutil.c
Various changes for cross platform builds
are clearly marked through out the source.
static nsModuleComponentInfo components[] =
{
{ "GIF Decoder",
NS_GIFDECODER2_CID,
"@mozilla.org/image/decoder;2?type=image/gif",
nsGIFDecoder2Constructor, },
};
NS_IMPL_NSGETMODULE("nsGIFModule2", components)

View File

@@ -0,0 +1,18 @@
?AddRef@nsGIFDecoder2@@UAGKXZ ; 2550
?Release@nsGIFDecoder2@@UAGKXZ ; 2550
?gif_write_ready@@YAEPAUgif_struct@@@Z ; 1624
?ProcessData@nsGIFDecoder2@@QAGIPAEI@Z ; 1624
?gif_write@@YAHPAUgif_struct@@PBEI@Z ; 1624
?WriteFrom@nsGIFDecoder2@@UAGIPAVnsIInputStream@@IPAI@Z ; 1309
?Close@nsGIFDecoder2@@UAGIXZ ; 1275
??_GnsGIFDecoder2@@UAEPAXI@Z ; 1275
??0nsGIFDecoder2@@QAE@XZ ; 1275
??1nsGIFDecoder2@@UAE@XZ ; 1275
?QueryInterface@nsGIFDecoder2@@UAGIABUnsID@@PAPAX@Z ; 1275
?GIFInit@@YAHPAUgif_struct@@PAXP6AHXZP6AH1IIE@ZP6AH1H@ZP6AH1IIIIIPAU_GIF_RGB@@@ZP6AH1II@Z2222P6AH1PAE8HHHHEH@ZP6AH1@Z@Z ; 1275
?Init@nsGIFDecoder2@@UAGIPAVimgIRequest@@@Z ; 1275
?Flush@nsGIFDecoder2@@UAGIXZ ; 1275
?gif_destroy@@YAXPAUgif_struct@@@Z ; 1275
?gif_create@@YAHPAPAUgif_struct@@@Z ; 1275
?il_BACat@@YAPADPAPADIPBDI@Z ; 698
_NSGetModule ; 1

View File

@@ -0,0 +1,378 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Brian Ryner.
* Portions created by Brian Ryner are Copyright (C) 2000 Brian Ryner.
* All Rights Reserved.
*
* Contributor(s):
* Scott MacGregor <mscott@netscape.com>
*/
#include "nsIconChannel.h"
#include "nsIServiceManager.h"
#include "nsIInterfaceRequestor.h"
#include "nsXPIDLString.h"
#include "nsMimeTypes.h"
#include "nsMemory.h"
#include "nsIStringStream.h"
#include "nsIURL.h"
#include "nsNetUtil.h"
#include "nsIMimeService.h"
#include "nsCExternalHandlerService.h"
#include "plstr.h"
#include <Files.h>
#include <QuickDraw.h>
// nsIconChannel methods
nsIconChannel::nsIconChannel()
{
NS_INIT_REFCNT();
mStatus = NS_OK;
}
nsIconChannel::~nsIconChannel()
{}
NS_IMPL_THREADSAFE_ISUPPORTS2(nsIconChannel,
nsIChannel,
nsIRequest)
nsresult nsIconChannel::Init(nsIURI* uri)
{
nsresult rv;
NS_ASSERTION(uri, "no uri");
mUrl = uri;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// nsIRequest methods:
NS_IMETHODIMP nsIconChannel::GetName(PRUnichar* *result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconChannel::IsPending(PRBool *result)
{
NS_NOTREACHED("nsIconChannel::IsPending");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconChannel::GetStatus(nsresult *status)
{
*status = mStatus;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::Cancel(nsresult status)
{
NS_ASSERTION(NS_FAILED(status), "shouldn't cancel with a success code");
nsresult rv = NS_ERROR_FAILURE;
mStatus = status;
return rv;
}
NS_IMETHODIMP nsIconChannel::Suspend(void)
{
NS_NOTREACHED("nsIconChannel::Suspend");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconChannel::Resume(void)
{
NS_NOTREACHED("nsIconChannel::Resume");
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIChannel methods:
NS_IMETHODIMP nsIconChannel::GetOriginalURI(nsIURI* *aURI)
{
*aURI = mOriginalURI ? mOriginalURI : mUrl;
NS_ADDREF(*aURI);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetOriginalURI(nsIURI* aURI)
{
mOriginalURI = aURI;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetURI(nsIURI* *aURI)
{
*aURI = mUrl;
NS_IF_ADDREF(*aURI);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetURI(nsIURI* aURI)
{
mUrl = aURI;
return NS_OK;
}
NS_IMETHODIMP
nsIconChannel::Open(nsIInputStream **_retval)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsIconChannel::AsyncOpen(nsIStreamListener *aListener, nsISupports *ctxt)
{
// get the file name from the url
nsXPIDLCString fileName; // will contain a dummy file we'll use to figure out the type of icon desired.
nsXPIDLCString filePath; // will contain an optional parameter for small vs. large icon. default is small
mUrl->GetHost(getter_Copies(fileName));
nsCOMPtr<nsIURL> url (do_QueryInterface(mUrl));
if (url)
url->GetFileBaseName(getter_Copies(filePath));
nsresult rv = NS_OK;
nsCOMPtr<nsIMIMEService> mimeService (do_GetService(NS_MIMESERVICE_CONTRACTID, &rv));
NS_ENSURE_SUCCESS(rv, rv);
// extract the extension out of the dummy file so we can look it up in the mime service.
char * chFileName = fileName.get(); // get the underlying buffer
char * fileExtension = PL_strrchr(chFileName, '.');
if (!fileExtension) return NS_ERROR_FAILURE; // no file extension to work from.
// look the file extension up in the registry.
nsCOMPtr<nsIMIMEInfo> mimeInfo;
mimeService->GetFromExtension(fileExtension, getter_AddRefs(mimeInfo));
NS_ENSURE_TRUE(mimeInfo, NS_ERROR_FAILURE);
// get the mac creator and file type for this mime object
PRUint32 macType;
PRUint32 macCreator;
mimeInfo->GetMacType(&macType);
mimeInfo->GetMacCreator(&macCreator);
// get a refernce to the desktop database
DTPBRec pb;
OSErr err = noErr;
memset(&pb, 0, sizeof(DTPBRec));
pb.ioCompletion = nil;
pb.ioVRefNum = 0; // default desktop volume
pb.ioNamePtr = nil;
err = PBDTGetPath(&pb);
if (err != noErr) return NS_ERROR_FAILURE;
pb.ioFileCreator = macCreator;
pb.ioFileType = macType;
pb.ioCompletion = nil;
pb.ioTagInfo = 0;
PRUint32 numPixelsInRow = 0;
if (filePath && !nsCRT::strcmp(filePath, "large"))
{
pb.ioDTReqCount = kLarge8BitIconSize;
pb.ioIconType = kLarge8BitIcon;
numPixelsInRow = 32;
}
else
{
pb.ioDTReqCount = kSmall8BitIconSize;
pb.ioIconType = kSmall8BitIcon;
numPixelsInRow = 16;
}
// allocate a buffer large enough to handle the icon
PRUint8 * bitmapData = (PRUint8 *) nsMemory::Alloc (pb.ioDTReqCount);
pb.ioDTBuffer = (Ptr) bitmapData;
err = PBDTGetIcon(&pb, false);
if (err != noErr) return NS_ERROR_FAILURE; // unable to fetch the icon....
nsCString iconBuffer;
iconBuffer.Assign((char) numPixelsInRow);
iconBuffer.Append((char) numPixelsInRow);
CTabHandle cTabHandle = GetCTable(72);
if (!cTabHandle) return NS_ERROR_FAILURE;
HLock((Handle) cTabHandle);
CTabPtr colTable = *cTabHandle;
RGBColor rgbCol;
PRUint8 redValue, greenValue, blueValue;
for (PRUint32 index = 0; index < pb.ioDTReqCount; index ++)
{
// each byte in bitmapData needs to be converted from an 8 bit system color into
// 24 bit RGB data which our special icon image decoder can understand.
ColorSpec colSpec = colTable->ctTable[ bitmapData[index]];
rgbCol = colSpec.rgb;
redValue = rgbCol.red & 0xff;
greenValue = rgbCol.green & 0xff;
blueValue = rgbCol.blue & 0xff;
// for some reason the image code on the mac expects each RGB pixel value to be padded with a preceding byte.
// so add the padding here....
iconBuffer.Append((char) 0);
iconBuffer.Append((char) redValue);
iconBuffer.Append((char) greenValue);
iconBuffer.Append((char) blueValue);
}
HUnlock((Handle) cTabHandle);
DisposeCTable(cTabHandle);
nsMemory::Free(bitmapData);
// now that the color bitmask is taken care of, we need to do the same thing again for the transparency
// bit mask....
if (filePath && !nsCRT::strcmp(filePath, "large"))
{
pb.ioDTReqCount = kLargeIconSize;
pb.ioIconType = kLargeIcon;
}
else
{
pb.ioDTReqCount = kSmallIconSize;
pb.ioIconType = kSmallIcon;
}
// allocate a buffer large enough to handle the icon
bitmapData = (PRUint8 *) nsMemory::Alloc (pb.ioDTReqCount);
pb.ioDTBuffer = (Ptr) bitmapData;
err = PBDTGetIcon(&pb, false);
PRUint32 index = pb.ioDTReqCount/2;
while (index < pb.ioDTReqCount)
{
iconBuffer.Append((char) bitmapData[index]);
iconBuffer.Append((char) bitmapData[index + 1]);
if (numPixelsInRow == 32)
{
iconBuffer.Append((char) bitmapData[index + 2]);
iconBuffer.Append((char) bitmapData[index + 3]);
index += 4;
}
else
{
iconBuffer.Append((char) 255); // 2 bytes of padding
iconBuffer.Append((char) 255);
index += 2;
}
}
nsMemory::Free(bitmapData);
// turn our nsString into a stream looking object...
aListener->OnStartRequest(this, ctxt);
// turn our string into a stream...
nsCOMPtr<nsISupports> streamSupports;
NS_NewByteInputStream(getter_AddRefs(streamSupports), iconBuffer.get(), iconBuffer.Length());
nsCOMPtr<nsIInputStream> inputStr (do_QueryInterface(streamSupports));
aListener->OnDataAvailable(this, ctxt, inputStr, 0, iconBuffer.Length());
aListener->OnStopRequest(this, ctxt, NS_OK, nsnull);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetLoadAttributes(PRUint32 *aLoadAttributes)
{
*aLoadAttributes = mLoadAttributes;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetLoadAttributes(PRUint32 aLoadAttributes)
{
mLoadAttributes = aLoadAttributes;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetContentType(char* *aContentType)
{
if (!aContentType) return NS_ERROR_NULL_POINTER;
*aContentType = nsCRT::strdup("image/icon");
if (!*aContentType) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsIconChannel::SetContentType(const char *aContentType)
{
//It doesn't make sense to set the content-type on this type
// of channel...
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsIconChannel::GetContentLength(PRInt32 *aContentLength)
{
*aContentLength = mContentLength;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetContentLength(PRInt32 aContentLength)
{
NS_NOTREACHED("nsIconChannel::SetContentLength");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconChannel::GetLoadGroup(nsILoadGroup* *aLoadGroup)
{
*aLoadGroup = mLoadGroup;
NS_IF_ADDREF(*aLoadGroup);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetLoadGroup(nsILoadGroup* aLoadGroup)
{
mLoadGroup = aLoadGroup;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetOwner(nsISupports* *aOwner)
{
*aOwner = mOwner.get();
NS_IF_ADDREF(*aOwner);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetOwner(nsISupports* aOwner)
{
mOwner = aOwner;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetNotificationCallbacks(nsIInterfaceRequestor* *aNotificationCallbacks)
{
*aNotificationCallbacks = mCallbacks.get();
NS_IF_ADDREF(*aNotificationCallbacks);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetNotificationCallbacks(nsIInterfaceRequestor* aNotificationCallbacks)
{
mCallbacks = aNotificationCallbacks;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)
{
*aSecurityInfo = nsnull;
return NS_OK;
}

View File

@@ -0,0 +1,56 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Brian Ryner.
* Portions created by Brian Ryner are Copyright (C) 2000 Brian Ryner.
* All Rights Reserved.
*
* Contributor(s):
* Scott MacGregor <mscott@netscape.com>
*/
#ifndef nsIconChannel_h___
#define nsIconChannel_h___
#include "nsCOMPtr.h"
#include "nsXPIDLString.h"
#include "nsIChannel.h"
#include "nsILoadGroup.h"
#include "nsIInterfaceRequestor.h"
#include "nsIURI.h"
class nsIconChannel : public nsIChannel
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIREQUEST
NS_DECL_NSICHANNEL
nsIconChannel();
virtual ~nsIconChannel();
nsresult Init(nsIURI* uri);
protected:
nsCOMPtr<nsIURI> mUrl;
nsCOMPtr<nsIURI> mOriginalURI;
PRUint32 mLoadAttributes;
PRInt32 mContentLength;
nsCOMPtr<nsILoadGroup> mLoadGroup;
nsCOMPtr<nsIInterfaceRequestor> mCallbacks;
nsCOMPtr<nsISupports> mOwner;
nsresult mStatus;
};
#endif /* nsIconChannel_h___ */

View File

@@ -0,0 +1,62 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Scott MacGregor <mscott@netscape.com>
#
DEPTH=..\..\..\..
include <$(DEPTH)/config/config.mak>
DIR=win
MODULE = imgicon
LIBRARY_NAME = imgicon
DLL = $(OBJDIR)\$(LIBRARY_NAME).dll
MAKE_OBJ_TYPE = DLL
OBJS = \
.\$(OBJDIR)\nsIconDecoder.obj \
.\$(OBJDIR)\nsIconModule.obj \
.\$(OBJDIR)\nsIconProtocolHandler.obj \
$(NULL)
LLIBS=\
$(LIBNSPR) \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\gkgfxwin.lib \
$(DIST)\lib\imgiconwin_s.lib \
$(NULL)
WIN_LIBS= shell32.lib
INCS = $(INCS) \
-I$(DEPTH)\dist\include \
-I$(DEPTH)\modules\libpr0n\decoders\icon\win \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).lib $(DIST)\lib
clobber::
rm -f $(DIST)\bin\components\$(LIBRARY_NAME).dll
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,195 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Scott MacGregor <mscott@netscape.com>
*
*/
#include "nsIconDecoder.h"
#include "nsIInputStream.h"
#include "imgIContainer.h"
#include "imgIContainerObserver.h"
#include "nspr.h"
#include "nsIComponentManager.h"
#include "nsRect.h"
NS_IMPL_THREADSAFE_ADDREF(nsIconDecoder);
NS_IMPL_THREADSAFE_RELEASE(nsIconDecoder);
NS_INTERFACE_MAP_BEGIN(nsIconDecoder)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIOutputStream)
NS_INTERFACE_MAP_ENTRY(nsIOutputStream)
NS_INTERFACE_MAP_ENTRY(imgIDecoder)
NS_INTERFACE_MAP_END_THREADSAFE
nsIconDecoder::nsIconDecoder()
{
NS_INIT_ISUPPORTS();
}
nsIconDecoder::~nsIconDecoder()
{ }
/** imgIDecoder methods **/
NS_IMETHODIMP nsIconDecoder::Init(imgIRequest *aRequest)
{
mRequest = aRequest;
mObserver = do_QueryInterface(aRequest); // we're holding 2 strong refs to the request.
aRequest->GetImage(getter_AddRefs(mImage));
mFrame = do_CreateInstance("@mozilla.org/gfx/image/frame;2");
if (!mFrame) return NS_ERROR_FAILURE;
return NS_OK;
}
NS_IMETHODIMP nsIconDecoder::GetRequest(imgIRequest * *aRequest)
{
*aRequest = mRequest;
NS_ADDREF(*aRequest);
return NS_OK;
}
/** nsIOutputStream methods **/
NS_IMETHODIMP nsIconDecoder::Close()
{
if (mObserver)
{
mObserver->OnStopFrame(nsnull, nsnull, mFrame);
mObserver->OnStopContainer(nsnull, nsnull, mImage);
mObserver->OnStopDecode(nsnull, nsnull, NS_OK, nsnull);
}
return NS_OK;
}
NS_IMETHODIMP nsIconDecoder::Flush()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconDecoder::Write(const char *buf, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PRUint32 *_retval)
{
nsresult rv;
char *buf = (char *)PR_Malloc(count);
if (!buf) return NS_ERROR_OUT_OF_MEMORY; /* we couldn't allocate the object */
// read the data from the input stram...
PRUint32 readLen;
rv = inStr->Read(buf, count, &readLen);
char *data = buf;
if (NS_FAILED(rv)) return rv;
// since WriteFrom is only called once, go ahead and fire the on start notifications..
mObserver->OnStartDecode(nsnull, nsnull);
PRUint32 i = 0;
// Read size
PRInt32 w, h;
w = data[0];
h = data[1];
data += 2;
readLen -= i + 2;
mImage->Init(w, h, mObserver);
if (mObserver)
mObserver->OnStartContainer(nsnull, nsnull, mImage);
mFrame->Init(0, 0, w, h, gfxIFormats::RGB_A1);
mImage->AppendFrame(mFrame);
if (mObserver)
mObserver->OnStartFrame(nsnull, nsnull, mFrame);
PRUint32 bpr, abpr;
nscoord width, height;
mFrame->GetImageBytesPerRow(&bpr);
mFrame->GetAlphaBytesPerRow(&abpr);
mFrame->GetWidth(&width);
mFrame->GetHeight(&height);
i = 0;
PRInt32 rownum = 0; // XXX this better not have a decimal
PRInt32 wroteLen = 0;
do
{
PRUint8 *line = (PRUint8*)data + i*bpr;
mFrame->SetImageData(line, bpr, (rownum++)*bpr);
nsRect r(0, rownum, width, 1);
mObserver->OnDataAvailable(nsnull, nsnull, mFrame, &r);
wroteLen += bpr ;
i++;
} while(rownum < height);
// now we want to send in the alpha data...
for (rownum = 0; rownum < height; rownum ++)
{
PRUint8 * line = (PRUint8*) data + abpr * rownum + height*bpr;
mFrame->SetAlphaData(line, abpr, (rownum)*abpr);
}
PR_FREEIF(buf);
return NS_OK;
}
NS_IMETHODIMP nsIconDecoder::WriteSegments(nsReadSegmentFun reader, void * closure, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconDecoder::GetNonBlocking(PRBool *aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconDecoder::SetNonBlocking(PRBool aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconDecoder::GetObserver(nsIOutputStreamObserver * *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconDecoder::SetObserver(nsIOutputStreamObserver * aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,79 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Scott MacGregor <mscott@netscape.com>
*/
#ifndef nsIconDecoder_h__
#define nsIconDecoder_h__
#include "imgIDecoder.h"
#include "nsCOMPtr.h"
#include "imgIContainer.h"
#include "imgIDecoderObserver.h"
#include "gfxIImageFrame.h"
#include "imgIRequest.h"
#define NS_ICONDECODER_CID \
{ /* FFC08380-256C-11d5-9905-001083010E9B */ \
0xffc08380, \
0x256c, \
0x11d5, \
{ 0x99, 0x5, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b } \
}
//////////////////////////////////////////////////////////////////////////////////////////////
// The icon decoder is a decoder specifically tailored for loading icons
// from the OS. We've defined our own little format to represent these icons
// and this decoder takes that format and converts it into 24-bit RGB with alpha channel
// support. It was modeled a bit off the PPM decoder.
//
// Assumptions about the decoder:
// (1) We receive ALL of the data from the icon channel in one OnDataAvailable call. We don't
// support multiple ODA calls yet.
// (2) the format of the incoming data is as follows:
// The first two bytes contain the width and the height of the icon.
// Followed by 3 bytes per pixel for the color bitmap row after row. (for heigh * width * 3 bytes)
// Followed by bit mask data (used for transparency on the alpha channel).
//
//
//////////////////////////////////////////////////////////////////////////////////////////////
class nsIconDecoder : public imgIDecoder
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMGIDECODER
NS_DECL_NSIOUTPUTSTREAM
nsIconDecoder();
virtual ~nsIconDecoder();
private:
nsCOMPtr<imgIContainer> mImage;
nsCOMPtr<gfxIImageFrame> mFrame;
nsCOMPtr<imgIRequest> mRequest;
nsCOMPtr<imgIDecoderObserver> mObserver; // this is just qi'd from mRequest for speed
};
#endif // nsIconDecoder_h__

View File

@@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Scott MacGregor <mscott@netscape.com>
*/
#include "nsIGenericFactory.h"
#include "nsIModule.h"
#include "nsIconDecoder.h"
#include "nsIconProtocolHandler.h"
// objects that just require generic constructors
/******************************************************************************
* Protocol CIDs
*/
#define NS_ICONPROTOCOL_CID { 0xd0f9db12, 0x249c, 0x11d5, { 0x99, 0x5, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b } }
NS_GENERIC_FACTORY_CONSTRUCTOR(nsIconDecoder)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsIconProtocolHandler)
static nsModuleComponentInfo components[] =
{
{ "icon decoder",
NS_ICONDECODER_CID,
"@mozilla.org/image/decoder;2?type=image/icon",
nsIconDecoderConstructor, },
{ "Icon Protocol Handler",
NS_ICONPROTOCOL_CID,
NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "icon",
nsIconProtocolHandlerConstructor
}
};
NS_IMPL_NSGETMODULE("nsIconDecoderModule", components)

View File

@@ -0,0 +1,90 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Brian Ryner.
* Portions created by Brian Ryner are Copyright (C) 2000 Brian Ryner.
* All Rights Reserved.
*
* Contributor(s):
* Scott MacGregor <mscott@netscape.com>
*/
#include "nsIconChannel.h"
#include "nsIconProtocolHandler.h"
#include "nsIURL.h"
#include "nsCRT.h"
#include "nsCOMPtr.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
static NS_DEFINE_CID(kStandardURICID, NS_STANDARDURL_CID);
////////////////////////////////////////////////////////////////////////////////
nsIconProtocolHandler::nsIconProtocolHandler()
{
NS_INIT_REFCNT();
}
nsIconProtocolHandler::~nsIconProtocolHandler()
{}
NS_IMPL_ISUPPORTS2(nsIconProtocolHandler, nsIProtocolHandler, nsISupportsWeakReference)
////////////////////////////////////////////////////////////////////////////////
// nsIProtocolHandler methods:
NS_IMETHODIMP nsIconProtocolHandler::GetScheme(char* *result)
{
*result = nsCRT::strdup("icon");
if (!*result) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP nsIconProtocolHandler::GetDefaultPort(PRInt32 *result)
{
*result = 0;
return NS_OK;
}
NS_IMETHODIMP nsIconProtocolHandler::NewURI(const char *aSpec, nsIURI *aBaseURI, nsIURI **result)
{
nsresult rv;
// no concept of a relative icon url
NS_ASSERTION(!aBaseURI, "base url passed into icon protocol handler");
nsCOMPtr<nsIURI> url = do_CreateInstance(kStandardURICID, &rv);
if (NS_FAILED(rv)) return rv;
rv = url->SetSpec((char*)aSpec);
*result = url;
NS_IF_ADDREF(*result);
return rv;
}
NS_IMETHODIMP nsIconProtocolHandler::NewChannel(nsIURI* url, nsIChannel* *result)
{
nsCOMPtr<nsIChannel> channel;
NS_NEWXPCOM(channel, nsIconChannel);
if (channel)
NS_STATIC_CAST(nsIconChannel*,NS_STATIC_CAST(nsIChannel*, channel))->Init(url);
*result = channel;
NS_IF_ADDREF(*result);
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,43 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.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):
* Scott MacGregor <mscott@netscape.com>
*/
#ifndef nsIconProtocolHandler_h___
#define nsIconProtocolHandler_h___
#include "nsWeakReference.h"
#include "nsIProtocolHandler.h"
class nsIconProtocolHandler : public nsIProtocolHandler, public nsSupportsWeakReference
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPROTOCOLHANDLER
// nsIconProtocolHandler methods:
nsIconProtocolHandler();
virtual ~nsIconProtocolHandler();
protected:
};
#endif /* nsIconProtocolHandler_h___ */

View File

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

View File

@@ -0,0 +1,377 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Brian Ryner.
* Portions created by Brian Ryner are Copyright (C) 2000 Brian Ryner.
* All Rights Reserved.
*
* Contributor(s):
* Scott MacGregor <mscott@netscape.com>
*/
#include "nsIconChannel.h"
#include "nsIServiceManager.h"
#include "nsIInterfaceRequestor.h"
#include "nsXPIDLString.h"
#include "nsMimeTypes.h"
#include "nsMemory.h"
#include "nsIStringStream.h"
#include "nsIURL.h"
#include "nsNetUtil.h"
// we need windows.h to read out registry information...
#include <windows.h>
#include <shellapi.h>
// nsIconChannel methods
nsIconChannel::nsIconChannel()
{
NS_INIT_REFCNT();
mStatus = NS_OK;
}
nsIconChannel::~nsIconChannel()
{}
NS_IMPL_THREADSAFE_ISUPPORTS2(nsIconChannel,
nsIChannel,
nsIRequest)
nsresult nsIconChannel::Init(nsIURI* uri)
{
nsresult rv;
NS_ASSERTION(uri, "no uri");
mUrl = uri;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// nsIRequest methods:
NS_IMETHODIMP nsIconChannel::GetName(PRUnichar* *result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconChannel::IsPending(PRBool *result)
{
NS_NOTREACHED("nsIconChannel::IsPending");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconChannel::GetStatus(nsresult *status)
{
*status = mStatus;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::Cancel(nsresult status)
{
NS_ASSERTION(NS_FAILED(status), "shouldn't cancel with a success code");
nsresult rv = NS_ERROR_FAILURE;
mStatus = status;
return rv;
}
NS_IMETHODIMP nsIconChannel::Suspend(void)
{
NS_NOTREACHED("nsIconChannel::Suspend");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconChannel::Resume(void)
{
NS_NOTREACHED("nsIconChannel::Resume");
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIChannel methods:
NS_IMETHODIMP nsIconChannel::GetOriginalURI(nsIURI* *aURI)
{
*aURI = mOriginalURI ? mOriginalURI : mUrl;
NS_ADDREF(*aURI);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetOriginalURI(nsIURI* aURI)
{
mOriginalURI = aURI;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetURI(nsIURI* *aURI)
{
*aURI = mUrl;
NS_IF_ADDREF(*aURI);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetURI(nsIURI* aURI)
{
mUrl = aURI;
return NS_OK;
}
NS_IMETHODIMP
nsIconChannel::Open(nsIInputStream **_retval)
{
return NS_ERROR_FAILURE;
}
void InvertRows(unsigned char * aInitialBuffer, PRUint32 sizeOfBuffer, PRUint32 numBytesPerRow)
{
PRUint32 numRows = sizeOfBuffer / numBytesPerRow;
void * temporaryRowHolder = (void *) nsMemory::Alloc(numBytesPerRow);
PRUint32 currentRow = 0;
PRUint32 lastRow = (numRows - 1) * numBytesPerRow;
while (currentRow < lastRow)
{
// store the current row into a temporary buffer
nsCRT::memcpy(temporaryRowHolder, (void *) &aInitialBuffer[currentRow], numBytesPerRow);
nsCRT::memcpy((void *) &aInitialBuffer[currentRow], (void *)&aInitialBuffer[lastRow], numBytesPerRow);
nsCRT::memcpy((void *) &aInitialBuffer[lastRow], temporaryRowHolder, numBytesPerRow);
lastRow -= numBytesPerRow;
currentRow += numBytesPerRow;
}
}
NS_IMETHODIMP nsIconChannel::AsyncOpen(nsIStreamListener *aListener, nsISupports *ctxt)
{
// get the file name from the url
nsXPIDLCString fileName; // will contain a dummy file we'll use to figure out the type of icon desired.
nsXPIDLCString filePath; // will contain an optional parameter for small vs. large icon. default is small
mUrl->GetHost(getter_Copies(fileName));
nsCOMPtr<nsIURL> url (do_QueryInterface(mUrl));
if (url)
url->GetFileBaseName(getter_Copies(filePath));
// 1) get a hIcon for the file.
SHFILEINFO sfi;
UINT infoFlags = SHGFI_USEFILEATTRIBUTES | SHGFI_ICON;
if (filePath && !nsCRT::strcmp(filePath, "large"))
infoFlags |= SHGFI_LARGEICON;
else // default to small
infoFlags |= SHGFI_SMALLICON;
LONG result= SHGetFileInfo(fileName, FILE_ATTRIBUTE_ARCHIVE, &sfi, sizeof(sfi), infoFlags);
if (result > 0 && sfi.hIcon)
{
// we got a handle to an icon. Now we want to get a bitmap for the icon using GetIconInfo....
ICONINFO pIconInfo;
result = GetIconInfo(sfi.hIcon, &pIconInfo);
if (result > 0)
{
// now we have the bit map we need to get info about the bitmap
BITMAPINFO pBitMapInfo;
BITMAPINFOHEADER pBitMapInfoHeader;
pBitMapInfo.bmiHeader.biBitCount = 0;
pBitMapInfo.bmiHeader.biSize = sizeof(pBitMapInfoHeader);
HDC pDC = CreateCompatibleDC(NULL); // get a device context for the screen.
result = GetDIBits(pDC, pIconInfo.hbmColor, 0, 0, NULL, &pBitMapInfo, DIB_RGB_COLORS);
if (result > 0 && pBitMapInfo.bmiHeader.biSizeImage > 0)
{
// allocate a buffer to hold the bit map....this should be a buffer that's biSizeImage...
unsigned char * buffer = (PRUint8 *) nsMemory::Alloc(pBitMapInfo.bmiHeader.biSizeImage);
result = GetDIBits(pDC, pIconInfo.hbmColor, 0, pBitMapInfo.bmiHeader.biHeight, (void *) buffer, &pBitMapInfo, DIB_RGB_COLORS);
if (result > 0)
{
PRUint32 bytesPerPixel = pBitMapInfo.bmiHeader.biBitCount / 8;
InvertRows(buffer, pBitMapInfo.bmiHeader.biSizeImage, pBitMapInfo.bmiHeader.biWidth * bytesPerPixel);
// Convert our little icon buffer which is padded to 4 bytes per pixel into a nice 3 byte per pixel
// description.
nsCString iconBuffer;
iconBuffer.Assign((char) pBitMapInfo.bmiHeader.biWidth);
iconBuffer.Append((char) pBitMapInfo.bmiHeader.biHeight);
PRInt32 index = 0;
if (pBitMapInfo.bmiHeader.biBitCount == 16)
{
PRUint8 redValue, greenValue, blueValue, partialGreen;
while (index < pBitMapInfo.bmiHeader.biSizeImage)
{
DWORD dst=(DWORD) buffer[index];
PRUint16 num = 0;
num = (PRUint8) buffer[index];
num <<= 8;
num |= (PRUint8) buffer[index+1];
//blueValue = (PRUint8)((*dst)&(0x1F));
//greenValue = (PRUint8)(((*dst)>>5)&(0x1F));
//redValue = (PRUint8)(((*dst)>>10)&(0x1F));
redValue = ((PRUint32) (((float)(num & 0x7c00) / 0x7c00) * 0xFF0000) & 0xFF0000)>> 16;
greenValue = ((PRUint32)(((float)(num & 0x03E0) / 0x03E0) * 0x00FF00) & 0x00FF00)>> 8;
blueValue = ((PRUint32)(((float)(num & 0x001F) / 0x001F) * 0x0000FF) & 0x0000FF);
// now we have the right RGB values...
iconBuffer.Append((char) redValue);
iconBuffer.Append((char) greenValue);
iconBuffer.Append((char) blueValue);
index += bytesPerPixel;
}
}
else
{
while (index <pBitMapInfo.bmiHeader.biSizeImage)
{
iconBuffer.Append((char) buffer[index]);
iconBuffer.Append((char) buffer[index+1]);
iconBuffer.Append((char) buffer[index+2]);
index += bytesPerPixel;
}
}
// now we need to tack on the alpha data...which is hbmMask
pBitMapInfo.bmiHeader.biBitCount = 0;
pBitMapInfo.bmiHeader.biSize = sizeof(pBitMapInfoHeader);
result = GetDIBits(pDC, pIconInfo.hbmMask, 0, 0, NULL, &pBitMapInfo, DIB_RGB_COLORS);
if (result > 0 && pBitMapInfo.bmiHeader.biSizeImage > 0)
{
// allocate a buffer to hold the bit map....this should be a buffer that's biSizeImage...
unsigned char * maskBuffer = (PRUint8 *) nsMemory::Alloc(pBitMapInfo.bmiHeader.biSizeImage);
result = GetDIBits(pDC, pIconInfo.hbmMask, 0, pBitMapInfo.bmiHeader.biHeight, (void *) maskBuffer, &pBitMapInfo, DIB_RGB_COLORS);
if (result > 0)
{
InvertRows(maskBuffer, pBitMapInfo.bmiHeader.biSizeImage, 4);
index = 0;
// for some reason the bit mask on windows are flipped from the values we really want for transparency.
// So complement each byte in the bit mask.
while (index < pBitMapInfo.bmiHeader.biSizeImage)
{
maskBuffer[index]^=255;
index += 1;
}
iconBuffer.Append((char *) maskBuffer, pBitMapInfo.bmiHeader.biSizeImage);
}
nsMemory::Free(maskBuffer);
} // if we have a mask buffer to apply
// turn our nsString into a stream looking object...
aListener->OnStartRequest(this, ctxt);
// turn our string into a stream...
nsCOMPtr<nsISupports> streamSupports;
NS_NewByteInputStream(getter_AddRefs(streamSupports), iconBuffer.get(), iconBuffer.Length());
nsCOMPtr<nsIInputStream> inputStr (do_QueryInterface(streamSupports));
aListener->OnDataAvailable(this, ctxt, inputStr, 0, iconBuffer.Length());
aListener->OnStopRequest(this, ctxt, NS_OK, nsnull);
} // if we got valid bits for the main bitmap mask
nsMemory::Free(buffer);
}
DeleteDC(pDC);
}
}
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetLoadAttributes(PRUint32 *aLoadAttributes)
{
*aLoadAttributes = mLoadAttributes;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetLoadAttributes(PRUint32 aLoadAttributes)
{
mLoadAttributes = aLoadAttributes;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetContentType(char* *aContentType)
{
if (!aContentType) return NS_ERROR_NULL_POINTER;
*aContentType = nsCRT::strdup("image/icon");
if (!*aContentType) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsIconChannel::SetContentType(const char *aContentType)
{
//It doesn't make sense to set the content-type on this type
// of channel...
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsIconChannel::GetContentLength(PRInt32 *aContentLength)
{
*aContentLength = mContentLength;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetContentLength(PRInt32 aContentLength)
{
NS_NOTREACHED("nsIconChannel::SetContentLength");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIconChannel::GetLoadGroup(nsILoadGroup* *aLoadGroup)
{
*aLoadGroup = mLoadGroup;
NS_IF_ADDREF(*aLoadGroup);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetLoadGroup(nsILoadGroup* aLoadGroup)
{
mLoadGroup = aLoadGroup;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetOwner(nsISupports* *aOwner)
{
*aOwner = mOwner.get();
NS_IF_ADDREF(*aOwner);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetOwner(nsISupports* aOwner)
{
mOwner = aOwner;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetNotificationCallbacks(nsIInterfaceRequestor* *aNotificationCallbacks)
{
*aNotificationCallbacks = mCallbacks.get();
NS_IF_ADDREF(*aNotificationCallbacks);
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::SetNotificationCallbacks(nsIInterfaceRequestor* aNotificationCallbacks)
{
mCallbacks = aNotificationCallbacks;
return NS_OK;
}
NS_IMETHODIMP nsIconChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)
{
*aSecurityInfo = nsnull;
return NS_OK;
}

View File

@@ -0,0 +1,56 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Brian Ryner.
* Portions created by Brian Ryner are Copyright (C) 2000 Brian Ryner.
* All Rights Reserved.
*
* Contributor(s):
* Scott MacGregor <mscott@netscape.com>
*/
#ifndef nsIconChannel_h___
#define nsIconChannel_h___
#include "nsCOMPtr.h"
#include "nsXPIDLString.h"
#include "nsIChannel.h"
#include "nsILoadGroup.h"
#include "nsIInterfaceRequestor.h"
#include "nsIURI.h"
class nsIconChannel : public nsIChannel
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIREQUEST
NS_DECL_NSICHANNEL
nsIconChannel();
virtual ~nsIconChannel();
nsresult Init(nsIURI* uri);
protected:
nsCOMPtr<nsIURI> mUrl;
nsCOMPtr<nsIURI> mOriginalURI;
PRUint32 mLoadAttributes;
PRInt32 mContentLength;
nsCOMPtr<nsILoadGroup> mLoadGroup;
nsCOMPtr<nsIInterfaceRequestor> mCallbacks;
nsCOMPtr<nsISupports> mOwner;
nsresult mStatus;
};
#endif /* nsIconChannel_h___ */

View File

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

View File

@@ -0,0 +1,52 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Stuart Parmenter <pavlov@netscape.com>
#
DEPTH=..\..\..\..
include <$(DEPTH)/config/config.mak>
MODULE = imgjpeg
LIBRARY_NAME = imgjpeg
DLL = $(OBJDIR)\$(LIBRARY_NAME).dll
MAKE_OBJ_TYPE = DLL
OBJS = \
.\$(OBJDIR)\nsJPEGDecoder.obj \
.\$(OBJDIR)\nsJPEGFactory.obj \
$(NULL)
LLIBS=\
$(LIBNSPR) \
$(DIST)\lib\jpeg3250.lib \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\gkgfxwin.lib \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).lib $(DIST)\lib
clobber::
rm -f $(DIST)\bin\components\$(LIBRARY_NAME).dll
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,829 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*
*/
#include "nsJPEGDecoder.h"
#include "nsIInputStream.h"
#include "nspr.h"
#include "nsCRT.h"
#include "nsIComponentManager.h"
#include "imgIContainerObserver.h"
#include "ImageLogging.h"
NS_IMPL_ISUPPORTS2(nsJPEGDecoder, imgIDecoder, nsIOutputStream)
#if defined(PR_LOGGING)
PRLogModuleInfo *gJPEGlog = PR_NewLogModule("JPEGDecoder");
#else
#define gJPEGlog
#endif
void PR_CALLBACK init_source (j_decompress_ptr jd);
boolean PR_CALLBACK fill_input_buffer (j_decompress_ptr jd);
void PR_CALLBACK skip_input_data (j_decompress_ptr jd, long num_bytes);
void PR_CALLBACK term_source (j_decompress_ptr jd);
void PR_CALLBACK my_error_exit (j_common_ptr cinfo);
/* Normal JFIF markers can't have more bytes than this. */
#define MAX_JPEG_MARKER_LENGTH (((PRUint32)1 << 16) - 1)
/* Possible states for JPEG source manager */
enum data_source_state {
READING_BACK = 0, /* Must be zero for init purposes */
READING_NEW
};
/*
* Implementation of a JPEG src object that understands our state machine
*/
typedef struct {
/* public fields; must be first in this struct! */
struct jpeg_source_mgr pub;
nsJPEGDecoder *decoder;
} decoder_source_mgr;
nsJPEGDecoder::nsJPEGDecoder()
{
NS_INIT_ISUPPORTS();
mState = JPEG_HEADER;
mFillState = READING_BACK;
mSamples = nsnull;
mSamples3 = nsnull;
mRGBPadRow = nsnull;
mRGBPadRowLength = 0;
mBytesToSkip = 0;
memset(&mInfo, 0, sizeof(jpeg_decompress_struct));
mCompletedPasses = 0;
mBuffer = nsnull;
mBufferLen = mBufferSize = 0;
mBackBuffer = nsnull;
mBackBufferLen = mBackBufferSize = mBackBufferUnreadLen = 0;
}
nsJPEGDecoder::~nsJPEGDecoder()
{
if (mBuffer)
PR_Free(mBuffer);
if (mBackBuffer)
PR_Free(mBackBuffer);
if (mRGBPadRow)
PR_Free(mRGBPadRow);
}
/** imgIDecoder methods **/
/* void init (in imgIRequest aRequest); */
NS_IMETHODIMP nsJPEGDecoder::Init(imgIRequest *aRequest)
{
mRequest = aRequest;
mObserver = do_QueryInterface(mRequest);
aRequest->GetImage(getter_AddRefs(mImage));
/* We set up the normal JPEG error routines, then override error_exit. */
mInfo.err = jpeg_std_error(&mErr.pub);
/* mInfo.err = jpeg_std_error(&mErr.pub); */
mErr.pub.error_exit = my_error_exit;
/* Establish the setjmp return context for my_error_exit to use. */
if (setjmp(mErr.setjmp_buffer)) {
/* If we get here, the JPEG code has signaled an error.
* We need to clean up the JPEG object, close the input file, and return.
*/
return NS_ERROR_FAILURE;
}
/* Step 1: allocate and initialize JPEG decompression object */
jpeg_create_decompress(&mInfo);
decoder_source_mgr *src;
if (mInfo.src == NULL) {
//mInfo.src = PR_NEWZAP(decoder_source_mgr);
src = PR_NEWZAP(decoder_source_mgr);
if (!src) {
return PR_FALSE;
}
mInfo.src = (struct jpeg_source_mgr *) src;
}
/* Step 2: specify data source (eg, a file) */
/* Setup callback functions. */
src->pub.init_source = init_source;
src->pub.fill_input_buffer = fill_input_buffer;
src->pub.skip_input_data = skip_input_data;
src->pub.resync_to_restart = jpeg_resync_to_restart;
src->pub.term_source = term_source;
src->decoder = this;
return NS_OK;
}
/* readonly attribute imgIRequest request; */
NS_IMETHODIMP nsJPEGDecoder::GetRequest(imgIRequest * *aRequest)
{
*aRequest = mRequest;
NS_ADDREF(*aRequest);
return NS_OK;
}
/** nsIOutputStream methods **/
/* void close (); */
NS_IMETHODIMP nsJPEGDecoder::Close()
{
PR_LOG(gJPEGlog, PR_LOG_DEBUG,
("[this=%p] nsJPEGDecoder::Close\n", this));
if (mState != JPEG_DONE && mState != JPEG_SINK_NON_JPEG_TRAILER)
NS_WARNING("Never finished decoding the JPEG.");
/* Step 8: Release JPEG decompression object */
/* This is an important step since it will release a good deal of memory. */
jpeg_destroy_decompress(&mInfo);
return NS_OK;
}
/* void flush (); */
NS_IMETHODIMP nsJPEGDecoder::Flush()
{
LOG_SCOPE(gJPEGlog, "nsJPEGDecoder::Flush");
PRUint32 ret;
if (mState != JPEG_DONE && mState != JPEG_SINK_NON_JPEG_TRAILER)
return this->WriteFrom(nsnull, 0, &ret);
return NS_OK;
}
/* unsigned long write (in string buf, in unsigned long count); */
NS_IMETHODIMP nsJPEGDecoder::Write(const char *buf, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long writeFrom (in nsIInputStream inStr, in unsigned long count); */
NS_IMETHODIMP nsJPEGDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PRUint32 *_retval)
{
LOG_SCOPE_WITH_PARAM(gJPEGlog, "nsJPEGDecoder::WriteFrom", "count", count);
/* We use our private extension JPEG error handler.
* Note that this struct must live as long as the main JPEG parameter
* struct, to avoid dangling-pointer problems.
*/
// XXX above what is this?
if (inStr) {
if (!mBuffer) {
mBuffer = (JOCTET *)PR_Malloc(count);
mBufferSize = count;
} else if (count > mBufferSize) {
mBuffer = (JOCTET *)PR_Realloc(mBuffer, count);
mBufferSize = count;
}
nsresult rv = inStr->Read((char*)mBuffer, count, &mBufferLen);
*_retval = mBufferLen;
//nsresult rv = mOutStream->WriteFrom(inStr, count, _retval);
NS_ASSERTION(NS_SUCCEEDED(rv), "nsJPEGDecoder::WriteFrom -- mOutStream->WriteFrom failed");
}
// else no input stream.. Flush() ?
nsresult error_code = NS_ERROR_FAILURE;
/* Return here if there is a fatal error. */
if ((error_code = setjmp(mErr.setjmp_buffer)) != 0) {
return error_code;
}
PR_LOG(gJPEGlog, PR_LOG_DEBUG,
("[this=%p] nsJPEGDecoder::WriteFrom -- processing JPEG data\n", this));
decoder_source_mgr *src = NS_REINTERPRET_CAST(decoder_source_mgr *, mInfo.src);
switch (mState) {
case JPEG_HEADER:
{
LOG_SCOPE(gJPEGlog, "nsJPEGDecoder::WriteFrom -- entering JPEG_HEADER case");
/* Step 3: read file parameters with jpeg_read_header() */
if (jpeg_read_header(&mInfo, TRUE) == JPEG_SUSPENDED)
return NS_OK; /* I/O suspension */
/*
* Don't allocate a giant and superfluous memory buffer
* when the image is a sequential JPEG.
*/
mInfo.buffered_image = jpeg_has_multiple_scans(&mInfo);
/* Used to set up image size so arrays can be allocated */
jpeg_calc_output_dimensions(&mInfo);
mObserver->OnStartDecode(nsnull, nsnull);
mImage->Init(mInfo.image_width, mInfo.image_height, mObserver);
mObserver->OnStartContainer(nsnull, nsnull, mImage);
mFrame = do_CreateInstance("@mozilla.org/gfx/image/frame;2");
gfx_format format;
#ifdef XP_PC
format = gfxIFormats::BGR;
#else
format = gfxIFormats::RGB;
#endif
mFrame->Init(0, 0, mInfo.image_width, mInfo.image_height, format);
mImage->AppendFrame(mFrame);
mObserver->OnStartFrame(nsnull, nsnull, mFrame);
/*
* Make a one-row-high sample array that will go away
* when done with image. Always make it big enough to
* hold an RGB row. Since this uses the IJG memory
* manager, it must be allocated before the call to
* jpeg_start_compress().
*/
int row_stride;
if(mInfo.output_components == 1)
row_stride = mInfo.output_width;
else
row_stride = mInfo.output_width * 4; // use 4 instead of mInfo.output_components
// so we don't have to fuss with byte alignment.
// Mac wants 4 anyways.
mSamples = (*mInfo.mem->alloc_sarray)((j_common_ptr) &mInfo,
JPOOL_IMAGE,
row_stride, 1);
#if defined(XP_PC) || defined(XP_MAC)
// allocate buffer to do byte flipping if needed
if (mInfo.output_components == 3) {
mRGBPadRow = (PRUint8*) PR_MALLOC(row_stride);
mRGBPadRowLength = row_stride;
memset(mRGBPadRow, 0, mRGBPadRowLength);
}
#endif
/* Allocate RGB buffer for conversion from greyscale. */
if (mInfo.output_components != 3) {
row_stride = mInfo.output_width * 4;
mSamples3 = (*mInfo.mem->alloc_sarray)((j_common_ptr) &mInfo,
JPOOL_IMAGE,
row_stride, 1);
}
mState = JPEG_START_DECOMPRESS;
}
case JPEG_START_DECOMPRESS:
{
LOG_SCOPE(gJPEGlog, "nsJPEGDecoder::WriteFrom -- entering JPEG_START_DECOMPRESS case");
/* Step 4: set parameters for decompression */
/* FIXME -- Should reset dct_method and dither mode
* for final pass of progressive JPEG
*/
mInfo.dct_method = JDCT_FASTEST;
mInfo.dither_mode = JDITHER_ORDERED;
mInfo.do_fancy_upsampling = FALSE;
mInfo.enable_2pass_quant = FALSE;
mInfo.do_block_smoothing = TRUE;
/* Step 5: Start decompressor */
if (jpeg_start_decompress(&mInfo) == FALSE)
return NS_OK; /* I/O suspension */
/* If this is a progressive JPEG ... */
if (mInfo.buffered_image) {
mState = JPEG_DECOMPRESS_PROGRESSIVE;
} else {
mState = JPEG_DECOMPRESS_SEQUENTIAL;
}
}
case JPEG_DECOMPRESS_SEQUENTIAL:
{
if (mState == JPEG_DECOMPRESS_SEQUENTIAL)
{
LOG_SCOPE(gJPEGlog, "nsJPEGDecoder::WriteFrom -- JPEG_DECOMPRESS_SEQUENTIAL case");
if (OutputScanlines(-1) == PR_FALSE)
return NS_OK; /* I/O suspension */
/* If we've completed image output ... */
NS_ASSERTION(mInfo.output_scanline == mInfo.output_height, "We didn't process all of the data!");
mState = JPEG_DONE;
}
}
case JPEG_DECOMPRESS_PROGRESSIVE:
{
if (mState == JPEG_DECOMPRESS_PROGRESSIVE)
{
LOG_SCOPE(gJPEGlog, "nsJPEGDecoder::WriteFrom -- JPEG_DECOMPRESS_PROGRESSIVE case");
int status;
do {
status = jpeg_consume_input(&mInfo);
} while (!((status == JPEG_SUSPENDED) ||
(status == JPEG_REACHED_EOI)));
switch (status) {
case JPEG_REACHED_EOI:
// End of image
mState = JPEG_FINAL_PROGRESSIVE_SCAN_OUTPUT;
break;
case JPEG_SUSPENDED:
PR_LOG(gJPEGlog, PR_LOG_DEBUG,
("[this=%p] nsJPEGDecoder::WriteFrom -- suspending\n", this));
return NS_OK; /* I/O suspension */
default:
printf("got someo other state!?\n");
}
}
}
case JPEG_FINAL_PROGRESSIVE_SCAN_OUTPUT:
{
if (mState == JPEG_FINAL_PROGRESSIVE_SCAN_OUTPUT)
{
LOG_SCOPE(gJPEGlog, "nsJPEGDecoder::WriteFrom -- entering JPEG_FINAL_PROGRESSIVE_SCAN_OUTPUT case");
// XXX progressive? ;)
// not really progressive according to the state machine... -saari
jpeg_start_output(&mInfo, mInfo.input_scan_number);
if (OutputScanlines(-1) == PR_FALSE)
return NS_OK; /* I/O suspension */
jpeg_finish_output(&mInfo);
mState = JPEG_DONE;
}
}
case JPEG_DONE:
{
LOG_SCOPE(gJPEGlog, "nsJPEGDecoder::WriteFrom -- entering JPEG_DONE case");
/* Step 7: Finish decompression */
if (jpeg_finish_decompress(&mInfo) == FALSE)
return NS_OK; /* I/O suspension */
mState = JPEG_SINK_NON_JPEG_TRAILER;
/* we're done dude */
break;
}
case JPEG_SINK_NON_JPEG_TRAILER:
PR_LOG(gJPEGlog, PR_LOG_DEBUG,
("[this=%p] nsJPEGDecoder::WriteFrom -- entering JPEG_SINK_NON_JPEG_TRAILER case\n", this));
break;
}
return NS_OK;
}
int
nsJPEGDecoder::OutputScanlines(int num_scanlines)
{
int pass = 0;
if (mState == JPEG_FINAL_PROGRESSIVE_SCAN_OUTPUT)
pass = -1;
else
pass = mCompletedPasses + 1;
while ((mInfo.output_scanline < mInfo.output_height) && num_scanlines--) {
JSAMPROW samples;
/* Request one scanline. Returns 0 or 1 scanlines. */
int ns = jpeg_read_scanlines(&mInfo, mSamples, 1);
if (ns != 1) {
return PR_FALSE; /* suspend */
}
/* If grayscale image ... */
if (mInfo.output_components == 1) {
JSAMPLE j;
JSAMPLE *j1 = mSamples[0];
const JSAMPLE *j1end = j1 + mInfo.output_width;
JSAMPLE *j3 = mSamples3[0];
/* Convert from grayscale to RGB. */
while (j1 < j1end) {
#ifdef XP_MAC
j = *j1++;
j3[0] = 0;
j3[1] = j;
j3[2] = j;
j3[3] = j;
j3 += 4;
#else
j = *j1++;
j3[0] = j;
j3[1] = j;
j3[2] = j;
j3 += 3;
#endif
}
samples = mSamples3[0];
} else {
/* 24-bit color image */
#ifdef XP_PC
memset(mRGBPadRow, 0, mInfo.output_width * 4);
PRUint8 *ptrOutputBuf = mRGBPadRow;
JSAMPLE *j1 = mSamples[0];
for (PRUint32 i=0;i<mInfo.output_width;++i) {
ptrOutputBuf[2] = *j1++;
ptrOutputBuf[1] = *j1++;
ptrOutputBuf[0] = *j1++;
ptrOutputBuf += 3;
}
samples = mRGBPadRow;
#else
#ifdef XP_MAC
memset(mRGBPadRow, 0, mInfo.output_width * 4);
PRUint8 *ptrOutputBuf = mRGBPadRow;
JSAMPLE *j1 = mSamples[0];
for (PRUint32 i=0;i<mInfo.output_width;++i) {
ptrOutputBuf[0] = 0;
ptrOutputBuf[1] = *j1++;
ptrOutputBuf[2] = *j1++;
ptrOutputBuf[3] = *j1++;
ptrOutputBuf += 4;
}
samples = mRGBPadRow;
#else
samples = mSamples[0];
#endif
#endif
}
PRUint32 bpr;
mFrame->GetImageBytesPerRow(&bpr);
mFrame->SetImageData(
samples, // data
bpr, // length
(mInfo.output_scanline-1) * bpr); // offset
nsRect r(0, mInfo.output_scanline, mInfo.output_width, 1);
mObserver->OnDataAvailable(nsnull, nsnull, mFrame, &r);
}
return PR_TRUE;
}
/* [noscript] unsigned long writeSegments (in nsReadSegmentFun reader, in voidPtr closure, in unsigned long count); */
NS_IMETHODIMP nsJPEGDecoder::WriteSegments(nsReadSegmentFun reader, void * closure, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean nonBlocking; */
NS_IMETHODIMP nsJPEGDecoder::GetNonBlocking(PRBool *aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsJPEGDecoder::SetNonBlocking(PRBool aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIOutputStreamObserver observer; */
NS_IMETHODIMP nsJPEGDecoder::GetObserver(nsIOutputStreamObserver * *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsJPEGDecoder::SetObserver(nsIOutputStreamObserver * aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* Override the standard error method in the IJG JPEG decoder code. */
void PR_CALLBACK
my_error_exit (j_common_ptr cinfo)
{
nsresult error_code = NS_ERROR_FAILURE;
decoder_error_mgr *err = (decoder_error_mgr *) cinfo->err;
#if 0
#ifdef DEBUG
/*ptn fix later */
if (il_debug >= 1) {
char buffer[JMSG_LENGTH_MAX];
/* Create the message */
(*cinfo->err->format_message) (cinfo, buffer);
ILTRACE(1,("%s\n", buffer));
}
#endif
/* Convert error to a browser error code */
if (cinfo->err->msg_code == JERR_OUT_OF_MEMORY)
error_code = MK_OUT_OF_MEMORY;
else
error_code = MK_IMAGE_LOSSAGE;
#endif
char buffer[JMSG_LENGTH_MAX];
/* Create the message */
(*cinfo->err->format_message) (cinfo, buffer);
fprintf(stderr, "my_error_exit()\n%s\n", buffer);
/* Return control to the setjmp point. */
longjmp(err->setjmp_buffer, error_code);
}
/******************************************************************************/
/*-----------------------------------------------------------------------------
* This is the callback routine from the IJG JPEG library used to supply new
* data to the decompressor when its input buffer is exhausted. It juggles
* multiple buffers in an attempt to avoid unnecessary copying of input data.
*
* (A simpler scheme is possible: It's much easier to use only a single
* buffer; when fill_input_buffer() is called, move any unconsumed data
* (beyond the current pointer/count) down to the beginning of this buffer and
* then load new data into the remaining buffer space. This approach requires
* a little more data copying but is far easier to get right.)
*
* At any one time, the JPEG decompressor is either reading from the necko
* input buffer, which is volatile across top-level calls to the IJG library,
* or the "backtrack" buffer. The backtrack buffer contains the remaining
* unconsumed data from the necko buffer after parsing was suspended due
* to insufficient data in some previous call to the IJG library.
*
* When suspending, the decompressor will back up to a convenient restart
* point (typically the start of the current MCU). The variables
* next_input_byte & bytes_in_buffer indicate where the restart point will be
* if the current call returns FALSE. Data beyond this point must be
* rescanned after resumption, so it must be preserved in case the decompressor
* decides to backtrack.
*
* Returns:
* TRUE if additional data is available, FALSE if no data present and
* the JPEG library should therefore suspend processing of input stream
*---------------------------------------------------------------------------*/
/******************************************************************************/
/* data source manager method
/******************************************************************************/
/******************************************************************************/
/* data source manager method
Initialize source. This is called by jpeg_read_header() before any
data is actually read. May leave
bytes_in_buffer set to 0 (in which case a fill_input_buffer() call
will occur immediately).
*/
void PR_CALLBACK
init_source (j_decompress_ptr jd)
{
}
/******************************************************************************/
/* data source manager method
Skip num_bytes worth of data. The buffer pointer and count should
be advanced over num_bytes input bytes, refilling the buffer as
needed. This is used to skip over a potentially large amount of
uninteresting data (such as an APPn marker). In some applications
it may be possible to optimize away the reading of the skipped data,
but it's not clear that being smart is worth much trouble; large
skips are uncommon. bytes_in_buffer may be zero on return.
A zero or negative skip count should be treated as a no-op.
*/
void PR_CALLBACK
skip_input_data (j_decompress_ptr jd, long num_bytes)
{
decoder_source_mgr *src = (decoder_source_mgr *)jd->src;
if (num_bytes > (long)src->pub.bytes_in_buffer) {
/*
* Can't skip it all right now until we get more data from
* network stream. Set things up so that fill_input_buffer
* will skip remaining amount.
*/
src->decoder->mBytesToSkip = (size_t)num_bytes - src->pub.bytes_in_buffer;
src->pub.next_input_byte += src->pub.bytes_in_buffer;
src->pub.bytes_in_buffer = 0;
} else {
/* Simple case. Just advance buffer pointer */
src->pub.bytes_in_buffer -= (size_t)num_bytes;
src->pub.next_input_byte += num_bytes;
}
}
/******************************************************************************/
/* data source manager method
This is called whenever bytes_in_buffer has reached zero and more
data is wanted. In typical applications, it should read fresh data
into the buffer (ignoring the current state of next_input_byte and
bytes_in_buffer), reset the pointer & count to the start of the
buffer, and return TRUE indicating that the buffer has been reloaded.
It is not necessary to fill the buffer entirely, only to obtain at
least one more byte. bytes_in_buffer MUST be set to a positive value
if TRUE is returned. A FALSE return should only be used when I/O
suspension is desired.
*/
boolean PR_CALLBACK
fill_input_buffer (j_decompress_ptr jd)
{
decoder_source_mgr *src = (decoder_source_mgr *)jd->src;
unsigned char *new_buffer = (unsigned char *)src->decoder->mBuffer;
PRUint32 new_buflen = src->decoder->mBufferLen;
PRUint32 bytesToSkip = src->decoder->mBytesToSkip;
switch(src->decoder->mFillState) {
case READING_BACK:
{
if (!new_buffer || new_buflen == 0)
return PR_FALSE; /* suspend */
src->decoder->mBufferLen = 0;
if (bytesToSkip != 0) {
if (bytesToSkip < new_buflen) {
/* All done skipping bytes; Return what's left. */
new_buffer += bytesToSkip;
new_buflen -= bytesToSkip;
src->decoder->mBytesToSkip = 0;
} else {
/* Still need to skip some more data in the future */
src->decoder->mBytesToSkip -= (size_t)new_buflen;
return PR_FALSE; /* suspend */
}
}
src->decoder->mBackBufferUnreadLen = src->pub.bytes_in_buffer;
src->pub.next_input_byte = new_buffer;
src->pub.bytes_in_buffer = (size_t)new_buflen;
src->decoder->mFillState = READING_NEW;
return PR_TRUE;
}
break;
case READING_NEW:
{
if (src->pub.next_input_byte != src->decoder->mBuffer) {
/* Backtrack data has been permanently consumed. */
src->decoder->mBackBufferUnreadLen = 0;
src->decoder->mBackBufferLen = 0;
}
/* Save remainder of netlib buffer in backtrack buffer */
PRUint32 new_backtrack_buflen = src->pub.bytes_in_buffer + src->decoder->mBackBufferLen;
/* Make sure backtrack buffer is big enough to hold new data. */
if (src->decoder->mBackBufferSize < new_backtrack_buflen) {
/* Round up to multiple of 16 bytes. */
PRUint32 roundup_buflen = ((new_backtrack_buflen + 15) >> 4) << 4;
if (src->decoder->mBackBufferSize) {
src->decoder->mBackBuffer =
(JOCTET *)PR_REALLOC(src->decoder->mBackBuffer, roundup_buflen);
} else {
src->decoder->mBackBuffer = (JOCTET*)PR_MALLOC(roundup_buflen);
}
/* Check for OOM */
if (!src->decoder->mBackBuffer) {
#if 0
j_common_ptr cinfo = (j_common_ptr)(&src->js->jd);
cinfo->err->msg_code = JERR_OUT_OF_MEMORY;
my_error_exit(cinfo);
#endif
}
src->decoder->mBackBufferSize = (size_t)roundup_buflen;
/* Check for malformed MARKER segment lengths. */
if (new_backtrack_buflen > MAX_JPEG_MARKER_LENGTH) {
my_error_exit((j_common_ptr)(&src->decoder->mInfo));
}
}
/* Copy remainder of netlib buffer into backtrack buffer. */
nsCRT::memmove(src->decoder->mBackBuffer + src->decoder->mBackBufferLen,
src->pub.next_input_byte,
src->pub.bytes_in_buffer);
/* Point to start of data to be rescanned. */
src->pub.next_input_byte = src->decoder->mBackBuffer + src->decoder->mBackBufferLen - src->decoder->mBackBufferUnreadLen;
src->pub.bytes_in_buffer += src->decoder->mBackBufferUnreadLen;
src->decoder->mBackBufferLen = (size_t)new_backtrack_buflen;
src->decoder->mFillState = READING_BACK;
return PR_FALSE;
}
break;
}
return PR_FALSE;
}
/******************************************************************************/
/* data source manager method */
/*
* Terminate source --- called by jpeg_finish_decompress() after all
* data has been read to clean up JPEG source manager. NOT called by
* jpeg_abort() or jpeg_destroy().
*/
void PR_CALLBACK
term_source (j_decompress_ptr jd)
{
decoder_source_mgr *src = (decoder_source_mgr *)jd->src;
if (src->decoder->mObserver) {
src->decoder->mObserver->OnStopFrame(nsnull, nsnull, src->decoder->mFrame);
src->decoder->mObserver->OnStopContainer(nsnull, nsnull, src->decoder->mImage);
src->decoder->mObserver->OnStopDecode(nsnull, nsnull, NS_OK, nsnull);
}
/* No work necessary here */
}

View File

@@ -0,0 +1,121 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#ifndef nsJPEGDecoder_h__
#define nsJPEGDecoder_h__
#include "imgIDecoder.h"
#include "nsCOMPtr.h"
#include "imgIContainer.h"
#include "gfxIImageFrame.h"
#include "imgIDecoderObserver.h"
#include "imgIRequest.h"
#include "nsIInputStream.h"
#include "nsIPipe.h"
extern "C" {
#include "jpeglib.h"
}
#include <setjmp.h>
#define NS_JPEGDECODER_CID \
{ /* 5871a422-1dd2-11b2-ab3f-e2e56be5da9c */ \
0x5871a422, \
0x1dd2, \
0x11b2, \
{0xab, 0x3f, 0xe2, 0xe5, 0x6b, 0xe5, 0xda, 0x9c} \
}
typedef struct {
struct jpeg_error_mgr pub; /* "public" fields for IJG library*/
jmp_buf setjmp_buffer; /* For handling catastropic errors */
} decoder_error_mgr;
typedef enum {
JPEG_HEADER, /* Reading JFIF headers */
JPEG_START_DECOMPRESS,
JPEG_DECOMPRESS_PROGRESSIVE, /* Output progressive pixels */
JPEG_DECOMPRESS_SEQUENTIAL, /* Output sequential pixels */
JPEG_FINAL_PROGRESSIVE_SCAN_OUTPUT,
JPEG_DONE,
JPEG_SINK_NON_JPEG_TRAILER, /* Some image files have a */
/* non-JPEG trailer */
JPEG_ERROR
} jstate;
class nsJPEGDecoder : public imgIDecoder
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMGIDECODER
NS_DECL_NSIOUTPUTSTREAM
nsJPEGDecoder();
virtual ~nsJPEGDecoder();
PRBool FillInput(j_decompress_ptr jd);
PRUint32 mBytesToSkip;
protected:
int OutputScanlines(int num_scanlines);
public:
nsCOMPtr<imgIContainer> mImage;
nsCOMPtr<gfxIImageFrame> mFrame;
nsCOMPtr<imgIRequest> mRequest;
nsCOMPtr<imgIDecoderObserver> mObserver;
struct jpeg_decompress_struct mInfo;
decoder_error_mgr mErr;
jstate mState;
JSAMPARRAY mSamples;
JSAMPARRAY mSamples3;
PRUint8* mRGBPadRow;
PRUint32 mRGBPadRowLength;
PRInt32 mCompletedPasses;
PRInt32 mPasses;
int mFillState;
JOCTET *mBuffer;
PRUint32 mBufferLen; // amount of data currently in mBuffer
PRUint32 mBufferSize; // size in bytes what mBuffer was created with
JOCTET *mBackBuffer;
PRUint32 mBackBufferLen; // Offset of end of active backtrack data
PRUint32 mBackBufferSize; // size in bytes what mBackBuffer was created with
PRUint32 mBackBufferUnreadLen; // amount of data currently in mBackBuffer
};
#endif // nsJPEGDecoder_h__

View File

@@ -0,0 +1,42 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsIGenericFactory.h"
#include "nsIModule.h"
#include "nsJPEGDecoder.h"
// objects that just require generic constructors
NS_GENERIC_FACTORY_CONSTRUCTOR(nsJPEGDecoder)
static nsModuleComponentInfo components[] =
{
{ "ppm decoder",
NS_JPEGDECODER_CID,
"@mozilla.org/image/decoder;2?type=image/jpeg",
nsJPEGDecoderConstructor, },
};
NS_IMPL_NSGETMODULE("nsJPEGDecoderModule", components)

View File

@@ -0,0 +1,16 @@
?Release@nsJPEGDecoder@@UAGKXZ ; 172
?AddRef@nsJPEGDecoder@@UAGKXZ ; 172
?fill_input_buffer@@YAEPAUjpeg_decompress_struct@@@Z ; 126
?skip_input_data@@YAXPAUjpeg_decompress_struct@@J@Z ; 109
?WriteFrom@nsJPEGDecoder@@UAGIPAVnsIInputStream@@IPAI@Z ; 106
?OutputScanlines@nsJPEGDecoder@@IAEHH@Z ; 93
?init_source@@YAXPAUjpeg_decompress_struct@@@Z ; 86
??1nsJPEGDecoder@@UAE@XZ ; 86
?Close@nsJPEGDecoder@@UAGIXZ ; 86
?term_source@@YAXPAUjpeg_decompress_struct@@@Z ; 86
?Init@nsJPEGDecoder@@UAGIPAVimgIRequest@@@Z ; 86
??0nsJPEGDecoder@@QAE@XZ ; 86
?Flush@nsJPEGDecoder@@UAGIXZ ; 86
?QueryInterface@nsJPEGDecoder@@UAGIABUnsID@@PAPAX@Z ; 86
??_EnsJPEGDecoder@@UAEPAXI@Z ; 86
_NSGetModule ; 1

View File

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

View File

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

View File

@@ -0,0 +1,53 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Stuart Parmenter <pavlov@netscape.com>
#
DEPTH=..\..\..\..
include <$(DEPTH)/config/config.mak>
MODULE = imgpng
LIBRARY_NAME = imgpng
DLL = $(OBJDIR)\$(LIBRARY_NAME).dll
MAKE_OBJ_TYPE = DLL
OBJS = \
.\$(OBJDIR)\nsPNGDecoder.obj \
.\$(OBJDIR)\nsPNGFactory.obj \
$(NULL)
LLIBS=\
$(LIBNSPR) \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\png.lib \
$(DIST)\lib\zlib.lib \
$(DIST)\lib\gkgfxwin.lib \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).lib $(DIST)\lib
clobber::
rm -f $(DIST)\bin\components\$(LIBRARY_NAME).dll
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,553 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*
*/
#include "nsPNGDecoder.h"
#include "nsIInputStream.h"
#include "nspr.h"
#include "nsIComponentManager.h"
#include "png.h"
#include "nsIStreamObserver.h"
#include "nsRect.h"
#include "nsMemory.h"
#include "imgIContainerObserver.h"
// XXX we need to be sure to fire onStopDecode messages to mObserver in error cases.
NS_IMPL_ISUPPORTS2(nsPNGDecoder, imgIDecoder, nsIOutputStream)
nsPNGDecoder::nsPNGDecoder()
{
NS_INIT_ISUPPORTS();
mPNG = nsnull;
mInfo = nsnull;
colorLine = 0;
alphaLine = 0;
interlacebuf = 0;
}
nsPNGDecoder::~nsPNGDecoder()
{
if (colorLine)
nsMemory::Free(colorLine);
if (alphaLine)
nsMemory::Free(alphaLine);
if (interlacebuf)
nsMemory::Free(interlacebuf);
}
/** imgIDecoder methods **/
/* void init (in imgIRequest aRequest); */
NS_IMETHODIMP nsPNGDecoder::Init(imgIRequest *aRequest)
{
mRequest = aRequest;
mObserver = do_QueryInterface(aRequest); // we're holding 2 strong refs to the request.
aRequest->GetImage(getter_AddRefs(mImage));
/* do png init stuff */
/* Initialize the container's source image header. */
/* Always decode to 24 bit pixdepth */
mPNG = png_create_read_struct(PNG_LIBPNG_VER_STRING,
NULL, NULL,
NULL);
if (!mPNG) {
return NS_ERROR_FAILURE;
}
mInfo = png_create_info_struct(mPNG);
if (!mInfo) {
png_destroy_read_struct(&mPNG, NULL, NULL);
return NS_ERROR_FAILURE;
}
/* use ic as libpng "progressive pointer" (retrieve in callbacks) */
png_set_progressive_read_fn(mPNG, NS_STATIC_CAST(png_voidp, this), nsPNGDecoder::info_callback, nsPNGDecoder::row_callback, nsPNGDecoder::end_callback);
return NS_OK;
}
/* readonly attribute imgIRequest request; */
NS_IMETHODIMP nsPNGDecoder::GetRequest(imgIRequest * *aRequest)
{
*aRequest = mRequest;
NS_ADDREF(*aRequest);
return NS_OK;
}
/** nsIOutputStream methods **/
/* void close (); */
NS_IMETHODIMP nsPNGDecoder::Close()
{
if (mPNG)
png_destroy_read_struct(&mPNG, mInfo ? &mInfo : NULL, NULL);
return NS_OK;
}
/* void flush (); */
NS_IMETHODIMP nsPNGDecoder::Flush()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long write (in string buf, in unsigned long count); */
NS_IMETHODIMP nsPNGDecoder::Write(const char *buf, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
static NS_METHOD ReadDataOut(nsIInputStream* in,
void* closure,
const char* fromRawSegment,
PRUint32 toOffset,
PRUint32 count,
PRUint32 *writeCount)
{
nsPNGDecoder *decoder = NS_STATIC_CAST(nsPNGDecoder*, closure);
// we need to do the setjmp here otherwise bad things will happen
if (setjmp(decoder->mPNG->jmpbuf)) {
png_destroy_read_struct(&decoder->mPNG, &decoder->mInfo, NULL);
// is this NS_ERROR_FAILURE enough?
decoder->mRequest->Cancel(NS_BINDING_ABORTED); // XXX is this the correct error ?
return NS_ERROR_FAILURE;
}
*writeCount = decoder->ProcessData((unsigned char*)fromRawSegment, count);
return NS_OK;
}
PRUint32 nsPNGDecoder::ProcessData(unsigned char *data, PRUint32 count)
{
png_process_data(mPNG, mInfo, data, count);
return count; // we always consume all the data
}
/* unsigned long writeFrom (in nsIInputStream inStr, in unsigned long count); */
NS_IMETHODIMP nsPNGDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PRUint32 *_retval)
{
// PRUint32 sourceOffset = *_retval;
inStr->ReadSegments(ReadDataOut, this, count, _retval);
return NS_OK;
}
/* [noscript] unsigned long writeSegments (in nsReadSegmentFun reader, in voidPtr closure, in unsigned long count); */
NS_IMETHODIMP nsPNGDecoder::WriteSegments(nsReadSegmentFun reader, void * closure, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean nonBlocking; */
NS_IMETHODIMP nsPNGDecoder::GetNonBlocking(PRBool *aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPNGDecoder::SetNonBlocking(PRBool aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIOutputStreamObserver observer; */
NS_IMETHODIMP nsPNGDecoder::GetObserver(nsIOutputStreamObserver * *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPNGDecoder::SetObserver(nsIOutputStreamObserver * aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
void
nsPNGDecoder::info_callback(png_structp png_ptr, png_infop info_ptr)
{
/* int number_passes; NOT USED */
png_uint_32 width, height;
int bit_depth, color_type, interlace_type, compression_type, filter_type;
int channels;
double LUT_exponent, CRT_exponent = 2.2, display_exponent, aGamma;
png_bytep trans=NULL;
int num_trans =0;
/* always decode to 24-bit RGB or 32-bit RGBA */
png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
&interlace_type, &compression_type, &filter_type);
if (color_type == PNG_COLOR_TYPE_PALETTE)
png_set_expand(png_ptr);
if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
png_set_expand(png_ptr);
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) {
png_get_tRNS(png_ptr, info_ptr, &trans, &num_trans, NULL);
png_set_expand(png_ptr);
}
if (bit_depth == 16)
png_set_strip_16(png_ptr);
if (color_type == PNG_COLOR_TYPE_GRAY ||
color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
png_set_gray_to_rgb(png_ptr);
#ifdef XP_PC
// windows likes BGR
png_set_bgr(png_ptr);
#endif
/* set up gamma correction for Mac, Unix and (Win32 and everything else)
* using educated guesses for display-system exponents; do preferences
* later */
#if defined(XP_MAC)
LUT_exponent = 1.8 / 2.61;
#elif defined(XP_UNIX)
# if defined(__sgi)
LUT_exponent = 1.0 / 1.7; /* typical default for SGI console */
# elif defined(NeXT)
LUT_exponent = 1.0 / 2.2; /* typical default for NeXT cube */
# else
LUT_exponent = 1.0; /* default for most other Unix workstations */
# endif
#else
LUT_exponent = 1.0; /* virtually all PCs and most other systems */
#endif
/* (alternatively, could check for SCREEN_GAMMA environment variable) */
display_exponent = LUT_exponent * CRT_exponent;
if (png_get_gAMA(png_ptr, info_ptr, &aGamma))
png_set_gamma(png_ptr, display_exponent, aGamma);
else
png_set_gamma(png_ptr, display_exponent, 0.45455);
/* let libpng expand interlaced images */
if (interlace_type == PNG_INTERLACE_ADAM7) {
/* number_passes = */
png_set_interlace_handling(png_ptr);
}
/* now all of those things we set above are used to update various struct
* members and whatnot, after which we can get channels, rowbytes, etc. */
png_read_update_info(png_ptr, info_ptr);
channels = png_get_channels(png_ptr, info_ptr);
PR_ASSERT(channels == 3 || channels == 4);
/*---------------------------------------------------------------*/
/* copy PNG info into imagelib structs (formerly png_set_dims()) */
/*---------------------------------------------------------------*/
PRInt32 alpha_bits = 1;
if (channels > 3) {
/* check if alpha is coming from a tRNS chunk and is binary */
if (num_trans) {
/* if it's not a indexed color image, tRNS means binary */
if (color_type == PNG_COLOR_TYPE_PALETTE) {
for (int i=0; i<num_trans; i++) {
if ((trans[i] != 0) && (trans[i] != 255)) {
alpha_bits = 8;
break;
}
}
}
} else {
alpha_bits = 8;
}
}
nsPNGDecoder *decoder = NS_STATIC_CAST(nsPNGDecoder*, png_get_progressive_ptr(png_ptr));
if (decoder->mObserver)
decoder->mObserver->OnStartDecode(nsnull, nsnull);
// since the png is only 1 frame, initalize the container to the width and height of the frame
decoder->mImage->Init(width, height, decoder->mObserver);
if (decoder->mObserver)
decoder->mObserver->OnStartContainer(nsnull, nsnull, decoder->mImage);
decoder->mFrame = do_CreateInstance("@mozilla.org/gfx/image/frame;2");
#if 0
// XXX should we longjmp to png_ptr->jumpbuf here if we failed?
if (!decoder->mFrame)
return NS_ERROR_FAILURE;
#endif
gfx_format format;
if (channels == 3) {
format = gfxIFormats::RGB;
} else if (channels > 3) {
if (alpha_bits == 8) {
decoder->mImage->GetPreferredAlphaChannelFormat(&format);
} else if (alpha_bits == 1) {
format = gfxIFormats::RGB_A1;
}
}
#ifdef XP_PC
// XXX this works...
format += 1; // RGB to BGR
#endif
// then initalize the frame and append it to the container
decoder->mFrame->Init(0, 0, width, height, format);
decoder->mImage->AppendFrame(decoder->mFrame);
if (decoder->mObserver)
decoder->mObserver->OnStartFrame(nsnull, nsnull, decoder->mFrame);
PRUint32 bpr, abpr;
decoder->mFrame->GetImageBytesPerRow(&bpr);
decoder->mFrame->GetAlphaBytesPerRow(&abpr);
decoder->colorLine = (PRUint8 *)nsMemory::Alloc(bpr);
if (channels > 3)
decoder->alphaLine = (PRUint8 *)nsMemory::Alloc(abpr);
if (interlace_type == PNG_INTERLACE_ADAM7) {
decoder->interlacebuf = (PRUint8 *)nsMemory::Alloc(channels*width*height);
decoder->ibpr = channels*width;
if (!decoder->interlacebuf) {
// return NS_ERROR_FAILURE;
}
}
return;
}
void
nsPNGDecoder::row_callback(png_structp png_ptr, png_bytep new_row,
png_uint_32 row_num, int pass)
{
/* libpng comments:
*
* this function is called for every row in the image. If the
* image is interlacing, and you turned on the interlace handler,
* this function will be called for every row in every pass.
* Some of these rows will not be changed from the previous pass.
* When the row is not changed, the new_row variable will be NULL.
* The rows and passes are called in order, so you don't really
* need the row_num and pass, but I'm supplying them because it
* may make your life easier.
*
* For the non-NULL rows of interlaced images, you must call
* png_progressive_combine_row() passing in the row and the
* old row. You can call this function for NULL rows (it will
* just return) and for non-interlaced images (it just does the
* memcpy for you) if it will make the code easier. Thus, you
* can just do this for all cases:
*
* png_progressive_combine_row(png_ptr, old_row, new_row);
*
* where old_row is what was displayed for previous rows. Note
* that the first pass (pass == 0 really) will completely cover
* the old row, so the rows do not have to be initialized. After
* the first pass (and only for interlaced images), you will have
* to pass the current row, and the function will combine the
* old row and the new row.
*/
nsPNGDecoder *decoder = NS_STATIC_CAST(nsPNGDecoder*, png_get_progressive_ptr(png_ptr));
PRUint32 bpr, abpr;
decoder->mFrame->GetImageBytesPerRow(&bpr);
decoder->mFrame->GetAlphaBytesPerRow(&abpr);
png_bytep line;
if (decoder->interlacebuf) {
line = decoder->interlacebuf+(row_num*decoder->ibpr);
png_progressive_combine_row(png_ptr, line, new_row);
}
else
line = new_row;
if (new_row) {
nscoord width;
decoder->mFrame->GetWidth(&width);
PRUint32 iwidth = width;
gfx_format format;
decoder->mFrame->GetFormat(&format);
PRUint8 *aptr, *cptr;
// The mac specific ifdefs in the code below are there to make sure we
// always fill in 4 byte pixels right now, which is what the mac always
// allocates for its pixel buffers in true color mode. This will change
// when we start storing images with color palettes when they don't need
// true color support (GIFs).
switch (format) {
case gfxIFormats::RGB:
case gfxIFormats::BGR:
#ifdef XP_MAC
cptr = decoder->colorLine;
for (PRUint32 x=0; x<iwidth; x++) {
*cptr++ = 0;
*cptr++ = *line++;
*cptr++ = *line++;
*cptr++ = *line++;
}
decoder->mFrame->SetImageData(decoder->colorLine, bpr, row_num*bpr);
#else
decoder->mFrame->SetImageData((PRUint8*)line, bpr, row_num*bpr);
#endif
break;
case gfxIFormats::RGB_A1:
case gfxIFormats::BGR_A1:
{
cptr = decoder->colorLine;
aptr = decoder->alphaLine;
memset(aptr, 0, abpr);
for (PRUint32 x=0; x<iwidth; x++) {
#ifdef XP_MAC
*cptr++ = 0;
#endif
*cptr++ = *line++;
*cptr++ = *line++;
*cptr++ = *line++;
if (*line++) {
aptr[x>>3] |= 1<<(7-x&0x7);
}
}
decoder->mFrame->SetImageData(decoder->colorLine, bpr, row_num*bpr);
decoder->mFrame->SetAlphaData(decoder->alphaLine, abpr, row_num*abpr);
}
break;
case gfxIFormats::RGB_A8:
case gfxIFormats::BGR_A8:
{
cptr = decoder->colorLine;
aptr = decoder->alphaLine;
for (PRUint32 x=0; x<iwidth; x++) {
#ifdef XP_MAC
*cptr++ = 0;
#endif
*cptr++ = *line++;
*cptr++ = *line++;
*cptr++ = *line++;
*aptr++ = *line++;
}
decoder->mFrame->SetImageData(decoder->colorLine, bpr, row_num*bpr);
decoder->mFrame->SetAlphaData(decoder->alphaLine, abpr, row_num*abpr);
}
break;
case gfxIFormats::RGBA:
case gfxIFormats::BGRA:
#ifdef XP_MAC
{
cptr = decoder->colorLine;
aptr = decoder->alphaLine;
for (PRUint32 x=0; x<iwidth; x++) {
*cptr++ = 0;
*cptr++ = *line++;
*cptr++ = *line++;
*cptr++ = *line++;
*aptr++ = *line++;
}
decoder->mFrame->SetImageData(decoder->colorLine, bpr, row_num*bpr);
decoder->mFrame->SetAlphaData(decoder->alphaLine, abpr, row_num*abpr);
}
#else
decoder->mFrame->SetImageData(line, bpr, row_num*bpr);
#endif
break;
}
nsRect r(0, row_num, width, 1);
decoder->mObserver->OnDataAvailable(nsnull, nsnull, decoder->mFrame, &r);
}
}
void
nsPNGDecoder::end_callback(png_structp png_ptr, png_infop info_ptr)
{
/* libpng comments:
*
* this function is called when the whole image has been read,
* including any chunks after the image (up to and including
* the IEND). You will usually have the same info chunk as you
* had in the header, although some data may have been added
* to the comments and time fields.
*
* Most people won't do much here, perhaps setting a flag that
* marks the image as finished.
*/
nsPNGDecoder *decoder = NS_STATIC_CAST(nsPNGDecoder*, png_get_progressive_ptr(png_ptr));
if (decoder->mObserver) {
decoder->mObserver->OnStopFrame(nsnull, nsnull, decoder->mFrame);
decoder->mObserver->OnStopContainer(nsnull, nsnull, decoder->mImage);
decoder->mObserver->OnStopDecode(nsnull, nsnull, NS_OK, nsnull);
}
}

View File

@@ -0,0 +1,82 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#ifndef nsPNGDecoder_h__
#define nsPNGDecoder_h__
#include "imgIDecoder.h"
#include "imgIContainer.h"
#include "imgIDecoderObserver.h"
#include "gfxIImageFrame.h"
#include "imgIRequest.h"
#include "nsCOMPtr.h"
#include "png.h"
#define NS_PNGDECODER_CID \
{ /* 36fa00c2-1dd2-11b2-be07-d16eeb4c50ed */ \
0x36fa00c2, \
0x1dd2, \
0x11b2, \
{0xbe, 0x07, 0xd1, 0x6e, 0xeb, 0x4c, 0x50, 0xed} \
}
class nsPNGDecoder : public imgIDecoder
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMGIDECODER
NS_DECL_NSIOUTPUTSTREAM
nsPNGDecoder();
virtual ~nsPNGDecoder();
PR_STATIC_CALLBACK(void)
info_callback(png_structp png_ptr, png_infop info_ptr);
PR_STATIC_CALLBACK(void)
row_callback(png_structp png_ptr, png_bytep new_row,
png_uint_32 row_num, int pass);
PR_STATIC_CALLBACK(void)
end_callback(png_structp png_ptr, png_infop info_ptr);
inline PRUint32 ProcessData(unsigned char *data, PRUint32 count);
public:
nsCOMPtr<imgIContainer> mImage;
nsCOMPtr<gfxIImageFrame> mFrame;
nsCOMPtr<imgIRequest> mRequest;
nsCOMPtr<imgIDecoderObserver> mObserver; // this is just qi'd from mRequest for speed
png_structp mPNG;
png_infop mInfo;
PRUint8 *colorLine, *alphaLine;
PRUint8 *interlacebuf;
PRUint32 ibpr;
};
#endif // nsPNGDecoder_h__

View File

@@ -0,0 +1,46 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsIGenericFactory.h"
#include "nsIModule.h"
#include "nsPNGDecoder.h"
// objects that just require generic constructors
NS_GENERIC_FACTORY_CONSTRUCTOR(nsPNGDecoder)
static nsModuleComponentInfo components[] =
{
{ "PNG decoder",
NS_PNGDECODER_CID,
"@mozilla.org/image/decoder;2?type=image/png",
nsPNGDecoderConstructor, },
{ "PNG decoder",
NS_PNGDECODER_CID,
"@mozilla.org/image/decoder;2?type=image/x-png",
nsPNGDecoderConstructor, },
};
NS_IMPL_NSGETMODULE("nsPNGDecoderModule", components)

View File

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

View File

@@ -0,0 +1,51 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Stuart Parmenter <pavlov@netscape.com>
#
DEPTH=..\..\..\..
include <$(DEPTH)/config/config.mak>
MODULE = imgppm
LIBRARY_NAME = imgppm
DLL = $(OBJDIR)\$(LIBRARY_NAME).dll
MAKE_OBJ_TYPE = DLL
OBJS = \
.\$(OBJDIR)\nsPPMDecoder.obj \
.\$(OBJDIR)\nsPPMFactory.obj \
$(NULL)
LLIBS=\
$(LIBNSPR) \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\gkgfxwin.lib \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).lib $(DIST)\lib
clobber::
rm -f $(DIST)\bin\components\$(LIBRARY_NAME).dll
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,305 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*
*/
#include "nsPPMDecoder.h"
#include "nsIInputStream.h"
#include "imgIContainer.h"
#include "imgIContainerObserver.h"
#include "nspr.h"
#include "nsIComponentManager.h"
#include "nsRect.h"
NS_IMPL_ISUPPORTS2(nsPPMDecoder, imgIDecoder, nsIOutputStream)
nsPPMDecoder::nsPPMDecoder()
{
NS_INIT_ISUPPORTS();
mDataReceived = 0;
mDataWritten = 0;
mDataLeft = 0;
mPrevData = nsnull;
}
nsPPMDecoder::~nsPPMDecoder()
{
}
/** imgIDecoder methods **/
/* void init (in imgIRequest aRequest); */
NS_IMETHODIMP nsPPMDecoder::Init(imgIRequest *aRequest)
{
mRequest = aRequest;
mObserver = do_QueryInterface(aRequest); // we're holding 2 strong refs to the request.
aRequest->GetImage(getter_AddRefs(mImage));
mFrame = do_CreateInstance("@mozilla.org/gfx/image/frame;2");
if (!mFrame)
return NS_ERROR_FAILURE;
return NS_OK;
}
/* readonly attribute imgIRequest request; */
NS_IMETHODIMP nsPPMDecoder::GetRequest(imgIRequest * *aRequest)
{
*aRequest = mRequest;
NS_ADDREF(*aRequest);
return NS_OK;
}
/** nsIOutputStream methods **/
/* void close (); */
NS_IMETHODIMP nsPPMDecoder::Close()
{
if (mObserver) {
mObserver->OnStopFrame(nsnull, nsnull, mFrame);
mObserver->OnStopContainer(nsnull, nsnull, mImage);
mObserver->OnStopDecode(nsnull, nsnull, NS_OK, nsnull);
}
return NS_OK;
}
/* void flush (); */
NS_IMETHODIMP nsPPMDecoder::Flush()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long write (in string buf, in unsigned long count); */
NS_IMETHODIMP nsPPMDecoder::Write(const char *buf, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
static char *__itoa(int n)
{
char *s;
int i, j, sign, tmp;
/* check sign and convert to positive to stringify numbers */
if ( (sign = n) < 0)
n = -n;
i = 0;
s = (char*) malloc(sizeof(char));
/* grow string as needed to add numbers from powers of 10
* down till none left
*/
do
{
s = (char*) realloc(s, (i+1)*sizeof(char));
s[i++] = n % 10 + '0'; /* '0' or 30 is where ASCII numbers start */
s[i] = '\0';
}
while( (n /= 10) > 0);
/* tack on minus sign if we found earlier that this was negative */
if (sign < 0)
{
s = (char*) realloc(s, (i+1)*sizeof(char));
s[i++] = '-';
}
s[i] = '\0';
/* pop numbers (and sign) off of string to push back into right direction */
for (i = 0, j = strlen(s) - 1; i < j; i++, j--)
{
tmp = s[i];
s[i] = s[j];
s[j] = tmp;
}
return s;
}
/* unsigned long writeFrom (in nsIInputStream inStr, in unsigned long count); */
NS_IMETHODIMP nsPPMDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PRUint32 *_retval)
{
nsresult rv;
char *buf = (char *)PR_Malloc(count + mDataLeft);
if (!buf)
return NS_ERROR_OUT_OF_MEMORY; /* we couldn't allocate the object */
// read the data from the input stram...
PRUint32 readLen;
rv = inStr->Read(buf+mDataLeft, count, &readLen);
PRUint32 dataLen = readLen + mDataLeft;
if (mPrevData) {
strncpy(buf, mPrevData, mDataLeft);
PR_Free(mPrevData);
mPrevData = nsnull;
mDataLeft = 0;
}
char *data = buf;
if (NS_FAILED(rv)) return rv;
if (mDataReceived == 0) {
mObserver->OnStartDecode(nsnull, nsnull);
// Check the magic number
char type;
if ((sscanf(data, "P%c\n", &type) !=1) || (type != '6')) {
return NS_ERROR_FAILURE;
}
int i = 3;
data += i;
#if 0
// XXX
// Ignore comments
while ((input = fgetc(f)) == '#')
fgets(junk, 512, f);
ungetc(input, f);
#endif
// Read size
int w, h, mcv;
if (sscanf(data, "%d %d\n%d\n", &w, &h, &mcv) != 3) {
return NS_ERROR_FAILURE;
}
char *ws = __itoa(w), *hs = __itoa(h), *mcvs = __itoa(mcv);
int j = strlen(ws) + strlen(hs) + strlen(mcvs) + 3;
data += j;
// free(ws);
// free(hs);
// free(mcvs);
readLen -= i + j;
dataLen = readLen; // since this is the first pass, we don't have any data waiting that we need to keep track of
mImage->Init(w, h, mObserver);
if (mObserver)
mObserver->OnStartContainer(nsnull, nsnull, mImage);
mFrame->Init(0, 0, w, h, gfxIFormats::RGB);
mImage->AppendFrame(mFrame);
if (mObserver)
mObserver->OnStartFrame(nsnull, nsnull, mFrame);
}
PRUint32 bpr;
nscoord width;
mFrame->GetImageBytesPerRow(&bpr);
mFrame->GetWidth(&width);
// XXX ceil?
PRUint32 real_bpr = width * 3;
PRUint32 i = 0;
PRUint32 rownum = mDataWritten / real_bpr; // XXX this better not have a decimal
PRUint32 wroteLen = 0;
if (readLen > real_bpr) {
do {
PRUint8 *line = (PRUint8*)data + i*real_bpr;
mFrame->SetImageData(line, real_bpr, (rownum++)*bpr);
nsRect r(0, rownum, width, 1);
mObserver->OnDataAvailable(nsnull, nsnull, mFrame, &r);
wroteLen += real_bpr ;
i++;
} while(dataLen >= real_bpr * (i+1));
}
mDataReceived += readLen; // don't double count previous data that is in 'dataLen'
mDataWritten += wroteLen;
PRUint32 dataLeft = dataLen - wroteLen;
if (dataLeft > 0) {
if (mPrevData) {
mPrevData = (char *)PR_Realloc(mPrevData, mDataLeft + dataLeft);
strncpy(mPrevData + mDataLeft, data+wroteLen, dataLeft);
mDataLeft += dataLeft;
} else {
mDataLeft = dataLeft;
mPrevData = (char *)PR_Malloc(mDataLeft);
strncpy(mPrevData, data+wroteLen, mDataLeft);
}
}
PR_FREEIF(buf);
return NS_OK;
}
/* [noscript] unsigned long writeSegments (in nsReadSegmentFun reader, in voidPtr closure, in unsigned long count); */
NS_IMETHODIMP nsPPMDecoder::WriteSegments(nsReadSegmentFun reader, void * closure, PRUint32 count, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean nonBlocking; */
NS_IMETHODIMP nsPPMDecoder::GetNonBlocking(PRBool *aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPPMDecoder::SetNonBlocking(PRBool aNonBlocking)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIOutputStreamObserver observer; */
NS_IMETHODIMP nsPPMDecoder::GetObserver(nsIOutputStreamObserver * *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPPMDecoder::SetObserver(nsIOutputStreamObserver * aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#ifndef nsPPMDecoder_h__
#define nsPPMDecoder_h__
#include "imgIDecoder.h"
#include "nsCOMPtr.h"
#include "imgIContainer.h"
#include "imgIDecoderObserver.h"
#include "gfxIImageFrame.h"
#include "imgIRequest.h"
#define NS_PPMDECODER_CID \
{ /* e90bfa06-1dd1-11b2-8217-f38fe5d431a2 */ \
0xe90bfa06, \
0x1dd1, \
0x11b2, \
{0x82, 0x17, 0xf3, 0x8f, 0xe5, 0xd4, 0x31, 0xa2} \
}
class nsPPMDecoder : public imgIDecoder
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMGIDECODER
NS_DECL_NSIOUTPUTSTREAM
nsPPMDecoder();
virtual ~nsPPMDecoder();
private:
nsCOMPtr<imgIContainer> mImage;
nsCOMPtr<gfxIImageFrame> mFrame;
nsCOMPtr<imgIRequest> mRequest;
nsCOMPtr<imgIDecoderObserver> mObserver; // this is just qi'd from mRequest for speed
PRUint32 mDataReceived;
PRUint32 mDataWritten;
PRUint32 mDataLeft;
char *mPrevData;
};
#endif // nsPPMDecoder_h__

View File

@@ -0,0 +1,42 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsIGenericFactory.h"
#include "nsIModule.h"
#include "nsPPMDecoder.h"
// objects that just require generic constructors
NS_GENERIC_FACTORY_CONSTRUCTOR(nsPPMDecoder)
static nsModuleComponentInfo components[] =
{
{ "ppm decoder",
NS_PPMDECODER_CID,
"@mozilla.org/image/decoder;2?type=image/x-portable-pixmap",
nsPPMDecoderConstructor, },
};
NS_IMPL_NSGETMODULE("nsPPMDecoderModule", components)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

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

View File

@@ -0,0 +1,111 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "prlog.h"
#include "nsString.h"
#if defined(PR_LOGGING)
extern PRLogModuleInfo *gImgLog;
class LogScope {
public:
LogScope(PRLogModuleInfo *aLog, void *from, const nsAReadableCString &fn) :
mLog(aLog), mFrom(from), mFunc(fn)
{
PR_LOG(mLog, PR_LOG_DEBUG, ("[this=%p] %s {ENTER}\n",
mFrom, mFunc.get()));
}
/* const char * constructor */
LogScope(PRLogModuleInfo *aLog, void *from, const nsAReadableCString &fn,
const nsLiteralCString &paramName, const char *paramValue) :
mLog(aLog), mFrom(from), mFunc(fn)
{
PR_LOG(mLog, PR_LOG_DEBUG, ("[this=%p] %s (%s=\"%s\") {ENTER}\n",
mFrom, mFunc.get(),
paramName.get(),
paramValue));
}
/* void ptr constructor */
LogScope(PRLogModuleInfo *aLog, void *from, const nsAReadableCString &fn,
const nsLiteralCString &paramName, const void *paramValue) :
mLog(aLog), mFrom(from), mFunc(fn)
{
PR_LOG(mLog, PR_LOG_DEBUG, ("[this=%p] %s (%s=%p) {ENTER}\n",
mFrom, mFunc.get(),
paramName.get(),
paramValue));
}
/* PRInt32 constructor */
LogScope(PRLogModuleInfo *aLog, void *from, const nsAReadableCString &fn,
const nsLiteralCString &paramName, PRInt32 paramValue) :
mLog(aLog), mFrom(from), mFunc(fn)
{
PR_LOG(mLog, PR_LOG_DEBUG, ("[this=%p] %s (%s=\"%d\") {ENTER}\n",
mFrom, mFunc.get(),
paramName.get(),
paramValue));
}
/* PRUint32 constructor */
LogScope(PRLogModuleInfo *aLog, void *from, const nsAReadableCString &fn,
const nsLiteralCString &paramName, PRUint32 paramValue) :
mLog(aLog), mFrom(from), mFunc(fn)
{
PR_LOG(mLog, PR_LOG_DEBUG, ("[this=%p] %s (%s=\"%d\") {ENTER}\n",
mFrom, mFunc.get(),
paramName.get(),
paramValue));
}
~LogScope() {
PR_LOG(mLog, PR_LOG_DEBUG, ("[this=%p] %s {EXIT}\n",
mFrom, mFunc.get()));
}
private:
PRLogModuleInfo *mLog;
void *mFrom;
nsCAutoString mFunc;
};
#define LOG_SCOPE(l, s) \
LogScope LOG_SCOPE_TMP_VAR ##__LINE__ (l, \
NS_STATIC_CAST(void *, this), \
NS_LITERAL_CSTRING(s))
#define LOG_SCOPE_WITH_PARAM(l, s, pn, pv) \
LogScope LOG_SCOPE_TMP_VAR ##__LINE__ (l, \
NS_STATIC_CAST(void *, this), \
NS_LITERAL_CSTRING(s), \
NS_LITERAL_CSTRING(pn), pv)
#else
#define LOG_SCOPE(l, s)
#define LOG_SCOPE_WITH_PARAM(l, s, pn, pv)
#endif

View File

@@ -0,0 +1 @@
ImageLogging.h

View File

@@ -0,0 +1,6 @@
imgIContainer.idl
imgIContainerObserver.idl
imgIDecoder.idl
imgIDecoderObserver.idl
imgILoader.idl
imgIRequest.idl

View File

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

View File

@@ -0,0 +1,109 @@
/** -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsISupports.idl"
#include "gfxtypes.idl"
#include "gfxIFormats.idl"
interface gfxIImageFrame;
interface nsIEnumerator;
interface imgIContainerObserver;
/**
* gfxIImageContainer interface
*
* @author Stuart Parmenter <pavlov@netscape.com>
* @version 0.1
* @see "gfx2"
*/
[scriptable, uuid(5e8405a4-1dd2-11b2-8385-bc8e3446cad3)]
interface imgIContainer : nsISupports
{
/**
* Create a new \a aWidth x \a aHeight sized image container.
*
* @param aWidth The width of the container in which all the
* gfxIImageFrame children will fit.
* @param aHeight The height of the container in which all the
* gfxIImageFrame children will fit.
* @param aObserver Observer to send animation notifications to.
*/
void init(in nscoord aWidth,
in nscoord aHeight,
in imgIContainerObserver aObserver);
/* this should probably be on the device context (or equiv) */
readonly attribute gfx_format preferredAlphaChannelFormat;
/**
* The width of the container rectangle.
*/
readonly attribute nscoord width;
/**
* The height of the container rectangle.
*/
readonly attribute nscoord height;
/**
* Get the current frame that would be drawn if the image was to be drawn now
*/
readonly attribute gfxIImageFrame currentFrame;
readonly attribute unsigned long numFrames;
gfxIImageFrame getFrameAt(in unsigned long index);
/**
* Adds \a item to the end of the list of frames.
* @param item frame to add.
*/
void appendFrame(in gfxIImageFrame item);
void removeFrame(in gfxIImageFrame item);
/* notification when the current frame is done decoding */
void endFrameDecode(in unsigned long framenumber, in unsigned long timeout);
/* notification that the entire image has been decoded */
void decodingComplete();
nsIEnumerator enumerate();
void clear();
void startAnimation();
void stopAnimation();
/* animation stuff */
/**
* number of times to loop the image.
* @note -1 means forever.
*/
attribute long loopCount;
};

View File

@@ -0,0 +1,46 @@
/** -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsISupports.idl"
#include "gfxtypes.idl"
%{C++
#include "nsRect.h"
%}
interface imgIContainer;
interface gfxIImageFrame;
/**
* imgIContainerObserver interface
*
* @author Stuart Parmenter <pavlov@netscape.com>
* @version 0.1
*/
[uuid(153f1518-1dd2-11b2-b9cd-b16eb63e0471)]
interface imgIContainerObserver : nsISupports
{
[noscript] void frameChanged(in imgIContainer aContainer, in nsISupports aCX,
in gfxIImageFrame aFrame, in nsRect aDirtyRect);
};

View File

@@ -0,0 +1,53 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsISupports.idl"
#include "nsIOutputStream.idl"
#include "gfxtypes.idl"
interface imgIRequest;
/**
* imgIDecoder interface
*
* @author Stuart Parmenter <pavlov@netscape.com>
* @version 0.1
* @see imagelib2
*/
[scriptable, uuid(9eebf43a-1dd1-11b2-953e-f1782f4cbad3)]
interface imgIDecoder : nsIOutputStream
{
/**
* Initalize an image decoder.
* @param aRequest the request that owns the decoder.
*
* @note The decode should QI \a aRequest to an imgIDecoderObserver
* and should send decoder notifications to the request.
* The decoder should always pass NULL as the first two parameters to
* all of the imgIDecoderObserver APIs.
*/
void init(in imgIRequest aRequest);
/// allows access to the nsIImage we have to put bits in to.
readonly attribute imgIRequest request;
};

View File

@@ -0,0 +1,80 @@
/** -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "imgIContainerObserver.idl"
interface imgIRequest;
interface imgIContainer;
interface gfxIImageFrame;
%{C++
#include "nsRect.h"
%}
/**
* imgIDecoderObserver interface
*
* @author Stuart Parmenter <pavlov@netscape.com>
* @version 0.1
* @see imagelib2
*/
[scriptable, uuid(350163d2-1dd2-11b2-9e69-89959ecec1f3)]
interface imgIDecoderObserver : imgIContainerObserver
{
/**
* called as soon as the image begins getting decoded
*/
void onStartDecode(in imgIRequest aRequest, in nsISupports cx);
/**
* called once the image has been inited and therefore has a width and height
*/
void onStartContainer(in imgIRequest aRequest, in nsISupports cx, in imgIContainer aContainer);
/**
* called when each frame is created
*/
void onStartFrame(in imgIRequest aRequest, in nsISupports cx, in gfxIImageFrame aFrame);
/**
* called when some part of the frame has new data in it
*/
[noscript] void onDataAvailable(in imgIRequest aRequest, in nsISupports cx, in gfxIImageFrame aFrame, [const] in nsRect aRect);
/**
* called when a frame is finished decoding
*/
void onStopFrame(in imgIRequest aRequest, in nsISupports cx, in gfxIImageFrame aFrame);
/**
* probably not needed. called right before onStopDecode
*/
void onStopContainer(in imgIRequest aRequest, in nsISupports cx, in imgIContainer aContainer);
/**
* called when the decoder is dying off
*/
void onStopDecode(in imgIRequest aRequest, in nsISupports cx,
in nsresult status, in wstring statusArg);
};

View File

@@ -0,0 +1,62 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsISupports.idl"
#include "gfxtypes.idl"
interface imgIDecoderObserver;
interface imgIRequest;
interface nsIChannel;
interface nsILoadGroup;
interface nsIStreamListener;
interface nsIURI;
interface nsISimpleEnumerator;
/**
* imgILoader interface
*
* @author Stuart Parmenter <pavlov@netscape.com>
* @version 0.1
* @see imagelib2
*/
[scriptable, uuid(4c8cf1e0-1dd2-11b2-aff9-c51cdbfcb6da)]
interface imgILoader : nsISupports
{
/**
* Start the load and decode of an image.
* @param uri the URI to load
* @param aObserver the observer
* @param cx some random data
*/
imgIRequest loadImage(in nsIURI uri, in nsILoadGroup aLoadGroup, in imgIDecoderObserver aObserver, in nsISupports cx);
/**
* Start the load and decode of an image.
* @param uri the URI to load
* @param aObserver the observer
* @param cx some random data
*/
imgIRequest loadImageWithChannel(in nsIChannel aChannel, in imgIDecoderObserver aObserver, in nsISupports cx, out nsIStreamListener aListener);
};

View File

@@ -0,0 +1,80 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsISupports.idl"
#include "nsIRequest.idl"
interface imgIContainer;
interface imgIDecoderObserver;
interface nsIURI;
/**
* imgIRequest interface
*
* @author Stuart Parmenter <pavlov@netscape.com>
* @version 0.1
* @see imagelib2
*/
[scriptable, uuid(ccf705f6-1dd1-11b2-82ef-e18eccf7f7ec)]
interface imgIRequest : nsIRequest
{
/**
* the image container...
* @return the image object associated with the request.
* @attention NEED DOCS
*/
readonly attribute imgIContainer image;
/**
* Bits set in the return value from imageStatus
* @name statusflags
*/
//@{
const long STATUS_NONE = 0x0;
const long STATUS_SIZE_AVAILABLE = 0x1;
const long STATUS_LOAD_COMPLETE = 0x2;
const long STATUS_ERROR = 0x4;
//@}
/**
* something
* @attention NEED DOCS
*/
readonly attribute unsigned long imageStatus;
readonly attribute nsIURI URI;
readonly attribute imgIDecoderObserver decoderObserver;
};
%{C++
/**
* imagelib specific nsresult success and error codes
*/
#define NS_IMAGELIB_SUCCESS_LOAD_FINISHED NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_IMGLIB, 0)
#define NS_IMAGELIB_ERROR_FAILURE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_IMGLIB, 5)
#define NS_IMAGELIB_ERROR_NO_DECODER NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_IMGLIB, 6)
%}

View File

@@ -0,0 +1,43 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Stuart Parmenter <pavlov@netscape.com>
#
DEPTH = ..\..\..
include <$(DEPTH)/config/config.mak>
MODULE = imglib2
XPIDL_MODULE = imglib2
EXPORTS = ImageLogging.h
XPIDLSRCS = \
.\imgIContainer.idl \
.\imgIContainerObserver.idl \
.\imgIDecoder.idl \
.\imgIDecoderObserver.idl \
.\imgILoader.idl \
.\imgIRequest.idl \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,146 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "DummyChannel.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
NS_IMPL_ISUPPORTS1(DummyChannel, nsIChannel)
DummyChannel::DummyChannel(imgIRequest *aRequest, nsILoadGroup *aLoadGroup) :
mRequest(aRequest),
mLoadGroup(aLoadGroup),
mLoadFlags(nsIChannel::LOAD_NORMAL)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}
DummyChannel::~DummyChannel()
{
/* destructor code */
}
/* attribute nsIURI originalURI; */
NS_IMETHODIMP DummyChannel::GetOriginalURI(nsIURI * *aOriginalURI)
{
return mRequest->GetURI(aOriginalURI);
}
NS_IMETHODIMP DummyChannel::SetOriginalURI(nsIURI * aOriginalURI)
{
return NS_ERROR_FAILURE;
}
/* attribute nsIURI URI; */
NS_IMETHODIMP DummyChannel::GetURI(nsIURI * *aURI)
{
return mRequest->GetURI(aURI);
}
NS_IMETHODIMP DummyChannel::SetURI(nsIURI * aURI)
{
return NS_ERROR_FAILURE;
}
/* attribute nsISupports owner; */
NS_IMETHODIMP DummyChannel::GetOwner(nsISupports * *aOwner)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP DummyChannel::SetOwner(nsISupports * aOwner)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsILoadGroup loadGroup; */
NS_IMETHODIMP DummyChannel::GetLoadGroup(nsILoadGroup * *aLoadGroup)
{
*aLoadGroup = mLoadGroup;
NS_IF_ADDREF(*aLoadGroup);
return NS_OK;
}
NS_IMETHODIMP DummyChannel::SetLoadGroup(nsILoadGroup * aLoadGroup)
{
return NS_ERROR_FAILURE;
}
/* attribute nsLoadFlags loadAttributes; */
NS_IMETHODIMP DummyChannel::GetLoadAttributes(nsLoadFlags *aLoadAttributes)
{
*aLoadAttributes = mLoadFlags;
return NS_OK;
}
NS_IMETHODIMP DummyChannel::SetLoadAttributes(nsLoadFlags aLoadAttributes)
{
mLoadFlags = aLoadAttributes;
return NS_OK;
}
/* attribute nsIInterfaceRequestor notificationCallbacks; */
NS_IMETHODIMP DummyChannel::GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks)
{
return NS_OK;
}
NS_IMETHODIMP DummyChannel::SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallbacks)
{
return NS_OK;
}
/* readonly attribute nsISupports securityInfo; */
NS_IMETHODIMP DummyChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute string contentType; */
NS_IMETHODIMP DummyChannel::GetContentType(char * *aContentType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP DummyChannel::SetContentType(const char * aContentType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long contentLength; */
NS_IMETHODIMP DummyChannel::GetContentLength(PRInt32 *aContentLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP DummyChannel::SetContentLength(PRInt32 aContentLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIInputStream open (); */
NS_IMETHODIMP DummyChannel::Open(nsIInputStream **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void asyncOpen (in nsIStreamListener listener, in nsISupports ctxt); */
NS_IMETHODIMP DummyChannel::AsyncOpen(nsIStreamListener *listener, nsISupports *ctxt)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#ifndef DummyChannel_h__
#define DummyChannel_h__
#include "nsIChannel.h"
#include "nsIRequest.h"
#include "nsILoadGroup.h"
#include "imgIRequest.h"
#include "nsCOMPtr.h"
class DummyChannel : public nsIChannel
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICHANNEL
NS_FORWARD_NSIREQUEST(mRequest->)
DummyChannel(imgIRequest *aRequest, nsILoadGroup *aLoadGroup);
~DummyChannel();
private:
/* additional members */
nsCOMPtr<imgIRequest> mRequest;
nsCOMPtr<nsILoadGroup> mLoadGroup;
nsLoadFlags mLoadFlags;
};
#endif

View File

@@ -0,0 +1,166 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "ImageCache.h"
#ifdef MOZ_NEW_CACHE
#include "prlog.h"
#if defined(PR_LOGGING)
extern PRLogModuleInfo *gImgLog;
#else
#define gImgLog
#endif
#include "nsXPIDLString.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsICache.h"
#include "nsICacheService.h"
#include "nsICacheSession.h"
#include "nsICacheEntryDescriptor.h"
static nsCOMPtr<nsICacheSession> gSession = nsnull;
ImageCache::ImageCache()
{
/* member initializers and constructor code */
}
ImageCache::~ImageCache()
{
/* destructor code */
}
void GetCacheSession(nsICacheSession **_retval)
{
if (!gSession) {
nsCOMPtr<nsICacheService> cacheService(do_GetService("@mozilla.org/network/cache-service;1"));
NS_ASSERTION(cacheService, "Unable to get the cache service");
cacheService->CreateSession("images", nsICache::NOT_STREAM_BASED, PR_FALSE, getter_AddRefs(gSession));
NS_ASSERTION(gSession, "Unable to create a cache session");
}
*_retval = gSession;
NS_IF_ADDREF(*_retval);
}
void ImageCache::Shutdown()
{
gSession = nsnull;
}
PRBool ImageCache::Put(nsIURI *aKey, imgRequest *request, nsICacheEntryDescriptor **aEntry)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("ImageCache::Put\n"));
nsresult rv;
nsCOMPtr<nsICacheSession> ses;
GetCacheSession(getter_AddRefs(ses));
nsXPIDLCString spec;
aKey->GetSpec(getter_Copies(spec));
nsCOMPtr<nsICacheEntryDescriptor> entry;
rv = ses->OpenCacheEntry(spec, nsICache::ACCESS_WRITE, getter_AddRefs(entry));
if (!entry || NS_FAILED(rv))
return PR_FALSE;
entry->SetCacheElement(NS_STATIC_CAST(nsISupports *, NS_STATIC_CAST(imgIRequest*, request)));
entry->MarkValid();
*aEntry = entry;
NS_ADDREF(*aEntry);
return PR_TRUE;
}
PRBool ImageCache::Get(nsIURI *aKey, imgRequest **aRequest, nsICacheEntryDescriptor **aEntry)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("ImageCache::Get\n"));
nsresult rv;
nsCOMPtr<nsICacheSession> ses;
GetCacheSession(getter_AddRefs(ses));
nsXPIDLCString spec;
aKey->GetSpec(getter_Copies(spec));
nsCOMPtr<nsICacheEntryDescriptor> entry;
rv = ses->OpenCacheEntry(spec, nsICache::ACCESS_READ, getter_AddRefs(entry));
if (!entry || NS_FAILED(rv))
return PR_FALSE;
nsCOMPtr<nsISupports> sup;
entry->GetCacheElement(getter_AddRefs(sup));
nsCOMPtr<imgIRequest> req(do_QueryInterface(sup));
*aRequest = NS_REINTERPRET_CAST(imgRequest*, req.get());
NS_IF_ADDREF(*aRequest);
*aEntry = entry;
NS_ADDREF(*aEntry);
return PR_TRUE;
}
PRBool ImageCache::Remove(nsIURI *aKey)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("ImageCache::Remove\n"));
nsresult rv;
nsCOMPtr<nsICacheSession> ses;
GetCacheSession(getter_AddRefs(ses));
nsXPIDLCString spec;
aKey->GetSpec(getter_Copies(spec));
nsCOMPtr<nsICacheEntryDescriptor> entry;
rv = ses->OpenCacheEntry(spec, nsICache::ACCESS_READ, getter_AddRefs(entry));
if (!entry || NS_FAILED(rv))
return PR_FALSE;
entry->Doom();
return PR_TRUE;
}
#endif /* MOZ_NEW_CACHE */

View File

@@ -0,0 +1,72 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#ifndef ImageCache_h__
#define ImageCache_h__
#include "nsIURI.h"
#include "imgRequest.h"
#include "prtypes.h"
#ifdef MOZ_NEW_CACHE
#include "nsICacheEntryDescriptor.h"
#else
class nsICacheEntryDescriptor;
#endif
class ImageCache
{
public:
#ifdef MOZ_NEW_CACHE
ImageCache();
~ImageCache();
static void Shutdown(); // for use by the factory
/* additional members */
static PRBool Put(nsIURI *aKey, imgRequest *request, nsICacheEntryDescriptor **aEntry);
static PRBool Get(nsIURI *aKey, imgRequest **aRequest, nsICacheEntryDescriptor **aEntry);
static PRBool Remove(nsIURI *aKey);
#else
ImageCache() { }
~ImageCache() { }
static void Shutdown() { }
/* additional members */
static PRBool Put(nsIURI *aKey, imgRequest *request, nsICacheEntryDescriptor **aEntry) {
return PR_FALSE;
}
static PRBool Get(nsIURI *aKey, imgRequest **aRequest, nsICacheEntryDescriptor **aEntry) {
return PR_FALSE;
}
static PRBool Remove(nsIURI *aKey) {
return PR_FALSE;
}
#endif /* MOZ_NEW_CACHE */
};
#endif

View File

@@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsIGenericFactory.h"
#include "nsIModule.h"
#include "imgContainer.h"
#include "imgLoader.h"
#include "imgRequest.h"
#include "imgRequestProxy.h"
#include "ImageCache.h"
// objects that just require generic constructors
NS_GENERIC_FACTORY_CONSTRUCTOR(imgContainer)
NS_GENERIC_FACTORY_CONSTRUCTOR(imgLoader)
NS_GENERIC_FACTORY_CONSTRUCTOR(imgRequest)
NS_GENERIC_FACTORY_CONSTRUCTOR(imgRequestProxy)
static nsModuleComponentInfo components[] =
{
{ "image container",
NS_IMGCONTAINER_CID,
"@mozilla.org/image/container;1",
imgContainerConstructor, },
{ "image loader",
NS_IMGLOADER_CID,
"@mozilla.org/image/loader;1",
imgLoaderConstructor, },
{ "image request",
NS_IMGREQUEST_CID,
"@mozilla.org/image/request/real;1",
imgRequestConstructor, },
{ "image request proxy",
NS_IMGREQUESTPROXY_CID,
"@mozilla.org/image/request/proxy;1",
imgRequestProxyConstructor, },
};
PR_STATIC_CALLBACK(void)
ImageModuleDestructor(nsIModule *self)
{
ImageCache::Shutdown();
}
NS_IMPL_NSGETMODULE_WITH_DTOR("nsImageLib2Module", components, ImageModuleDestructor)

View File

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

View File

@@ -0,0 +1,555 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
* Chris Saari <saari@netscape.com>
*/
#include "imgContainer.h"
#include "nsIServiceManager.h"
#include "nsIInterfaceRequestor.h"
#include "gfxIImageFrame.h"
#include "nsIImage.h"
NS_IMPL_ISUPPORTS3(imgContainer, imgIContainer, nsITimerCallback,imgIDecoderObserver)
//******************************************************************************
imgContainer::imgContainer()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
mCurrentDecodingFrameIndex = 0;
mCurrentAnimationFrameIndex = 0;
mCurrentFrameIsFinishedDecoding = PR_FALSE;
mDoneDecoding = PR_FALSE;
mAnimating = PR_FALSE;
mObserver = nsnull;
}
//******************************************************************************
imgContainer::~imgContainer()
{
if (mTimer)
mTimer->Cancel();
/* destructor code */
mFrames.Clear();
}
//******************************************************************************
/* void init (in nscoord aWidth, in nscoord aHeight, in imgIContainerObserver aObserver); */
NS_IMETHODIMP imgContainer::Init(nscoord aWidth, nscoord aHeight, imgIContainerObserver *aObserver)
{
if (aWidth <= 0 || aHeight <= 0) {
NS_WARNING("error - negative image size\n");
return NS_ERROR_FAILURE;
}
mSize.SizeTo(aWidth, aHeight);
mObserver = getter_AddRefs(NS_GetWeakReference(aObserver));
return NS_OK;
}
//******************************************************************************
/* readonly attribute gfx_format preferredAlphaChannelFormat; */
NS_IMETHODIMP imgContainer::GetPreferredAlphaChannelFormat(gfx_format *aFormat)
{
/* default.. platform's should probably overwrite this */
*aFormat = gfxIFormats::RGB_A8;
return NS_OK;
}
//******************************************************************************
/* readonly attribute nscoord width; */
NS_IMETHODIMP imgContainer::GetWidth(nscoord *aWidth)
{
*aWidth = mSize.width;
return NS_OK;
}
//******************************************************************************
/* readonly attribute nscoord height; */
NS_IMETHODIMP imgContainer::GetHeight(nscoord *aHeight)
{
*aHeight = mSize.height;
return NS_OK;
}
//******************************************************************************
/* readonly attribute gfxIImageFrame currentFrame; */
NS_IMETHODIMP imgContainer::GetCurrentFrame(gfxIImageFrame * *aCurrentFrame)
{
if(mCompositingFrame)
return mCompositingFrame->QueryInterface(NS_GET_IID(gfxIImageFrame), (void**)aCurrentFrame); // addrefs again
else
return this->GetFrameAt(mCurrentAnimationFrameIndex, aCurrentFrame);
}
//******************************************************************************
/* readonly attribute unsigned long numFrames; */
NS_IMETHODIMP imgContainer::GetNumFrames(PRUint32 *aNumFrames)
{
return mFrames.Count(aNumFrames);
}
//******************************************************************************
/* gfxIImageFrame getFrameAt (in unsigned long index); */
NS_IMETHODIMP imgContainer::GetFrameAt(PRUint32 index, gfxIImageFrame **_retval)
{
nsISupports *sup = mFrames.ElementAt(index); // addrefs
if (!sup)
return NS_ERROR_FAILURE;
nsresult rv;
rv = sup->QueryInterface(NS_GET_IID(gfxIImageFrame), (void**)_retval); // addrefs again
NS_RELEASE(sup);
return rv;
}
//******************************************************************************
/* void appendFrame (in gfxIImageFrame item); */
NS_IMETHODIMP imgContainer::AppendFrame(gfxIImageFrame *item)
{
// If we don't have a composite frame already allocated, make sure that our container
// size is the same the frame size. Otherwise, we'll either need the composite frame
// for animation compositing (GIF) or for filling in with a background color.
// XXX IMPORTANT: this means that the frame should be initialized BEFORE appending to container
PRUint32 numFrames;
this->GetNumFrames(&numFrames);
if(!mCompositingFrame) {
nsRect frameRect;
item->GetRect(frameRect);
// We used to create a compositing frame if any frame was smaller than the logical
// image size. You could create a single frame that was 10x10 in the middle of
// an 20x20 logical screen and have the extra screen space filled by the image
// background color. However, it turns out that neither NS4.x nor IE correctly
// support this, and as a result there are many GIFs out there that look "wrong"
// when this is correctly supported. So for now, we only create a compositing frame
// if we have more than one frame in the image.
if(/*(frameRect.x != 0) ||
(frameRect.y != 0) ||
(frameRect.width != mSize.width) ||
(frameRect.height != mSize.height) ||*/
(numFrames >= 1)) // Not sure if I want to create a composite frame for every anim. Could be smarter.
{
mCompositingFrame = do_CreateInstance("@mozilla.org/gfx/image/frame;2");
mCompositingFrame->Init(0, 0, mSize.width, mSize.height, gfxIFormats::RGB);
nsCOMPtr<nsIImage> img(do_GetInterface(mCompositingFrame));
img->SetDecodedRect(0, 0, mSize.width, mSize.height);
nsCOMPtr<gfxIImageFrame> firstFrame;
this->GetFrameAt(0, getter_AddRefs(firstFrame));
firstFrame->DrawTo(mCompositingFrame, 0, 0, mSize.width, mSize.height);
}
}
// If this is our second frame, init a timer so we don't display
// the next frame until the delay timer has expired for the current
// frame.
if (!mTimer && (numFrames >= 1)) {
PRInt32 timeout;
nsCOMPtr<gfxIImageFrame> currentFrame;
this->GetFrameAt(mCurrentDecodingFrameIndex, getter_AddRefs(currentFrame));
currentFrame->GetTimeout(&timeout);
if (timeout != -1 &&
timeout >= 0) { // -1 means display this frame forever
if(mAnimating) {
// Since we have more than one frame we need a timer
mTimer = do_CreateInstance("@mozilla.org/timer;1");
mTimer->Init(
NS_STATIC_CAST(nsITimerCallback*, this),
timeout, NS_PRIORITY_NORMAL, NS_TYPE_REPEATING_SLACK);
}
}
}
if (numFrames > 0) mCurrentDecodingFrameIndex++;
mCurrentFrameIsFinishedDecoding = PR_FALSE;
return mFrames.AppendElement(NS_STATIC_CAST(nsISupports*, item));
}
//******************************************************************************
/* void removeFrame (in gfxIImageFrame item); */
NS_IMETHODIMP imgContainer::RemoveFrame(gfxIImageFrame *item)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* void endFrameDecode (in gfxIImageFrame item, in unsigned long timeout); */
NS_IMETHODIMP imgContainer::EndFrameDecode(PRUint32 aFrameNum, PRUint32 aTimeout)
{
// It is now okay to start the timer for the next frame in the animation
mCurrentFrameIsFinishedDecoding = PR_TRUE;
nsCOMPtr<gfxIImageFrame> currentFrame;
this->GetFrameAt(aFrameNum-1, getter_AddRefs(currentFrame));
currentFrame->SetTimeout(aTimeout);
if (!mTimer && mAnimating){
PRUint32 numFrames;
this->GetNumFrames(&numFrames);
if (numFrames > 1) {
if (aTimeout != -1 &&
aTimeout >= 0) { // -1 means display this frame forever
mAnimating = PR_TRUE;
mTimer = do_CreateInstance("@mozilla.org/timer;1");
mTimer->Init(NS_STATIC_CAST(nsITimerCallback*, this),
aTimeout, NS_PRIORITY_NORMAL, NS_TYPE_REPEATING_SLACK);
}
}
}
return NS_OK;
}
//******************************************************************************
/* void decodingComplete (); */
NS_IMETHODIMP imgContainer::DecodingComplete(void)
{
mDoneDecoding = PR_TRUE;
return NS_OK;
}
//******************************************************************************
/* nsIEnumerator enumerate (); */
NS_IMETHODIMP imgContainer::Enumerate(nsIEnumerator **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clear (); */
NS_IMETHODIMP imgContainer::Clear()
{
return mFrames.Clear();
}
//******************************************************************************
/* void startAnimation () */
NS_IMETHODIMP imgContainer::StartAnimation()
{
mAnimating = PR_TRUE;
if (mTimer)
return NS_OK;
PRUint32 numFrames;
this->GetNumFrames(&numFrames);
if (numFrames > 1) {
PRInt32 timeout;
nsCOMPtr<gfxIImageFrame> currentFrame;
this->GetCurrentFrame(getter_AddRefs(currentFrame));
if (currentFrame) {
currentFrame->GetTimeout(&timeout);
if (timeout != -1 &&
timeout >= 0) { // -1 means display this frame forever
mAnimating = PR_TRUE;
if(!mTimer) mTimer = do_CreateInstance("@mozilla.org/timer;1");
mTimer->Init(NS_STATIC_CAST(nsITimerCallback*, this),
timeout, NS_PRIORITY_NORMAL, NS_TYPE_REPEATING_SLACK);
}
} else {
// XXX hack.. the timer notify code will do the right thing, so just get that started
mAnimating = PR_TRUE;
if(!mTimer) mTimer = do_CreateInstance("@mozilla.org/timer;1");
mTimer->Init(NS_STATIC_CAST(nsITimerCallback*, this),
100, NS_PRIORITY_NORMAL, NS_TYPE_REPEATING_SLACK);
}
}
return NS_OK;
}
//******************************************************************************
/* void stopAnimation (); */
NS_IMETHODIMP imgContainer::StopAnimation()
{
mAnimating = PR_FALSE;
if (!mTimer)
return NS_OK;
mTimer->Cancel();
mTimer = nsnull;
// don't bother trying to change the frame (to 0, etc.) here.
// No one is listening.
return NS_OK;
}
//******************************************************************************
/* attribute long loopCount; */
NS_IMETHODIMP imgContainer::GetLoopCount(PRInt32 *aLoopCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imgContainer::SetLoopCount(PRInt32 aLoopCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP_(void) imgContainer::Notify(nsITimer *timer)
{
NS_ASSERTION(mTimer == timer, "uh");
if(!mAnimating || !mTimer)
return;
nsCOMPtr<imgIContainerObserver> observer(do_QueryReferent(mObserver));
if (!observer) {
// the imgRequest that owns us is dead, we should die now too.
this->StopAnimation();
return;
}
nsCOMPtr<gfxIImageFrame> nextFrame;
PRInt32 timeout = 100;
PRUint32 numFrames;
GetNumFrames(&numFrames);
if(!numFrames)
return;
// If we're done decoding the next frame, go ahead and display it now and reinit
// the timer with the next frame's delay time.
PRUint32 previousAnimationFrameIndex = mCurrentAnimationFrameIndex;
if (mCurrentFrameIsFinishedDecoding && !mDoneDecoding) {
// If we have the next frame in the sequence set the timer callback from it
GetFrameAt(mCurrentAnimationFrameIndex+1, getter_AddRefs(nextFrame));
if (nextFrame) {
// Go to next frame in sequence
nextFrame->GetTimeout(&timeout);
mCurrentAnimationFrameIndex++;
} else {
// twiddle our thumbs
GetFrameAt(mCurrentAnimationFrameIndex, getter_AddRefs(nextFrame));
if(!nextFrame) return;
nextFrame->GetTimeout(&timeout);
}
} else if (mDoneDecoding){
if ((numFrames-1) == mCurrentAnimationFrameIndex) {
// Go back to the beginning of the animation
GetFrameAt(0, getter_AddRefs(nextFrame));
if(!nextFrame) return;
mCurrentAnimationFrameIndex = 0;
nextFrame->GetTimeout(&timeout);
} else {
mCurrentAnimationFrameIndex++;
GetFrameAt(mCurrentAnimationFrameIndex, getter_AddRefs(nextFrame));
if(!nextFrame) return;
nextFrame->GetTimeout(&timeout);
}
} else {
GetFrameAt(mCurrentAnimationFrameIndex, getter_AddRefs(nextFrame));
if(!nextFrame) return;
}
if(timeout >= 0)
mTimer->SetDelay(timeout);
else
this->StopAnimation();
nsRect dirtyRect;
// update the composited frame
if(mCompositingFrame && (previousAnimationFrameIndex != mCurrentAnimationFrameIndex)) {
nsCOMPtr<gfxIImageFrame> frameToUse;
DoComposite(getter_AddRefs(frameToUse), &dirtyRect, previousAnimationFrameIndex, mCurrentAnimationFrameIndex);
// do notification to FE to draw this frame, but hand it the compositing frame
observer->FrameChanged(this, nsnull, mCompositingFrame, &dirtyRect);
}
else {
nextFrame->GetRect(dirtyRect);
// do notification to FE to draw this frame
observer->FrameChanged(this, nsnull, nextFrame, &dirtyRect);
}
}
//******************************************************************************
// DoComposite gets called when the timer for animation get fired and we have to
// update the composited frame of the animation.
void imgContainer::DoComposite(gfxIImageFrame** aFrameToUse, nsRect* aDirtyRect, PRInt32 aPrevFrame, PRInt32 aNextFrame)
{
NS_ASSERTION(aDirtyRect, "DoComposite aDirtyRect is null");
NS_ASSERTION(mCompositingFrame, "DoComposite mCompositingFrame is null");
*aFrameToUse = nsnull;
PRUint32 numFrames;
this->GetNumFrames(&numFrames);
PRInt32 nextFrameIndex = aNextFrame;
PRInt32 prevFrameIndex = aPrevFrame;
if(nextFrameIndex >= numFrames) nextFrameIndex = numFrames-1;
if(prevFrameIndex >= numFrames) prevFrameIndex = numFrames-1;
nsCOMPtr<gfxIImageFrame> prevFrame;
this->GetFrameAt(prevFrameIndex, getter_AddRefs(prevFrame));
PRInt32 prevFrameDisposalMethod;
prevFrame->GetFrameDisposalMethod(&prevFrameDisposalMethod);
nsCOMPtr<gfxIImageFrame> nextFrame;
this->GetFrameAt(nextFrameIndex, getter_AddRefs(nextFrame));
PRInt32 x;
PRInt32 y;
PRInt32 width;
PRInt32 height;
nextFrame->GetX(&x);
nextFrame->GetY(&y);
nextFrame->GetWidth(&width);
nextFrame->GetHeight(&height);
switch (prevFrameDisposalMethod) {
default:
case 0: // DISPOSE_NOT_SPECIFIED
case 1: // DISPOSE_KEEP Leave previous frame in the framebuffer
mCompositingFrame->QueryInterface(NS_GET_IID(gfxIImageFrame), (void**)aFrameToUse); // addrefs again
//XXX blit into the composite frame too!!!
nextFrame->DrawTo(mCompositingFrame, x, y, width, height);
// we're drawing only the updated frame
(*aDirtyRect).x = x;
(*aDirtyRect).y = y;
(*aDirtyRect).width = width;
(*aDirtyRect).height = height;
break;
case 2: // DISPOSE_OVERWRITE_BGCOLOR Overwrite with background color
//XXX overwrite mCompositeFrame with background color
gfx_color backgroundColor;
nextFrame->GetBackgroundColor(&backgroundColor);
//XXX Do background color overwrite of mCompositeFrame here
// blit next frame into this clean slate
nextFrame->DrawTo(mCompositingFrame, x, y, width, height);
// In this case we need to blit the whole composite frame
(*aDirtyRect).x = 0;
(*aDirtyRect).y = 0;
(*aDirtyRect).width = mSize.width;
(*aDirtyRect).height = mSize.height;
mCompositingFrame->QueryInterface(NS_GET_IID(gfxIImageFrame), (void**)aFrameToUse); // addrefs again
break;
case 4: // DISPOSE_OVERWRITE_PREVIOUS Save-under
//XXX Reblit previous composite into frame buffer
//
(*aDirtyRect).x = 0;
(*aDirtyRect).y = 0;
(*aDirtyRect).width = mSize.width;
(*aDirtyRect).height = mSize.height;
break;
}
// Get the next frame's disposal method, if it is it DISPOSE_OVER, save off
// this mCompositeFrame for reblitting when this timer gets fired again and
// we
PRInt32 nextFrameDisposalMethod;
nextFrame->GetFrameDisposalMethod(&nextFrameDisposalMethod);
//XXX if(nextFrameDisposalMethod == 4)
// blit mPreviousCompositeFrame with this frame
}
//******************************************************************************
/* void onStartDecode (in imgIRequest aRequest, in nsISupports cx); */
NS_IMETHODIMP imgContainer::OnStartDecode(imgIRequest *aRequest, nsISupports *cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* void onStartContainer (in imgIRequest aRequest, in nsISupports cx, in imgIContainer aContainer); */
NS_IMETHODIMP imgContainer::OnStartContainer(imgIRequest *aRequest, nsISupports *cx, imgIContainer *aContainer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* void onStartFrame (in imgIRequest aRequest, in nsISupports cx, in gfxIImageFrame aFrame); */
NS_IMETHODIMP imgContainer::OnStartFrame(imgIRequest *aRequest, nsISupports *cx, gfxIImageFrame *aFrame)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* [noscript] void onDataAvailable (in imgIRequest aRequest, in nsISupports cx, in gfxIImageFrame aFrame, [const] in nsRect aRect); */
NS_IMETHODIMP imgContainer::OnDataAvailable(imgIRequest *aRequest, nsISupports *cx, gfxIImageFrame *aFrame, const nsRect * aRect)
{
if(mCompositingFrame && !mCurrentDecodingFrameIndex) {
// Update the composite frame
PRInt32 x;
aFrame->GetX(&x);
aFrame->DrawTo(mCompositingFrame, x, aRect->y, aRect->width, aRect->height);
}
return NS_OK;
}
//******************************************************************************
/* void onStopFrame (in imgIRequest aRequest, in nsISupports cx, in gfxIImageFrame aFrame); */
NS_IMETHODIMP imgContainer::OnStopFrame(imgIRequest *aRequest, nsISupports *cx, gfxIImageFrame *aFrame)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* void onStopContainer (in imgIRequest aRequest, in nsISupports cx, in imgIContainer aContainer); */
NS_IMETHODIMP imgContainer::OnStopContainer(imgIRequest *aRequest, nsISupports *cx, imgIContainer *aContainer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* void onStopDecode (in imgIRequest aRequest, in nsISupports cx, in nsresult status, in wstring statusArg); */
NS_IMETHODIMP imgContainer::OnStopDecode(imgIRequest *aRequest, nsISupports *cx, nsresult status, const PRUnichar *statusArg)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//******************************************************************************
/* [noscript] void frameChanged (in imgIContainer aContainer, in nsISupports aCX, in gfxIImageFrame aFrame, in nsRect aDirtyRect); */
NS_IMETHODIMP imgContainer::FrameChanged(imgIContainer *aContainer, nsISupports *aCX, gfxIImageFrame *aFrame, nsRect * aDirtyRect)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,95 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
* Chris Saari <saari@netscape.com>
*/
#ifndef __imgContainer_h__
#define __imgContainer_h__
#include "imgIContainer.h"
#include "imgIContainerObserver.h"
#include "nsSize.h"
#include "nsSupportsArray.h"
#include "nsCOMPtr.h"
#include "nsITimer.h"
#include "nsITimerCallback.h"
#include "imgIDecoderObserver.h"
#include "gfxIImageFrame.h"
#include "nsWeakReference.h"
#define NS_IMGCONTAINER_CID \
{ /* 5e04ec5e-1dd2-11b2-8fda-c4db5fb666e0 */ \
0x5e04ec5e, \
0x1dd2, \
0x11b2, \
{0x8f, 0xda, 0xc4, 0xdb, 0x5f, 0xb6, 0x66, 0xe0} \
}
class imgContainer : public imgIContainer,
public nsITimerCallback,
public imgIDecoderObserver
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMGICONTAINER
NS_DECL_IMGIDECODEROBSERVER
NS_DECL_IMGICONTAINEROBSERVER
NS_IMETHOD_(void) Notify(nsITimer *timer);
imgContainer();
virtual ~imgContainer();
private:
/* additional members */
nsSupportsArray mFrames;
nsSize mSize;
PRUint32 mCurrentDecodingFrameIndex; // 0 to numFrames-1
PRUint32 mCurrentAnimationFrameIndex; // 0 to numFrames-1
PRBool mCurrentFrameIsFinishedDecoding;
PRBool mDoneDecoding;
PRBool mAnimating;
nsWeakPtr mObserver;
// GIF specific bits
nsCOMPtr<nsITimer> mTimer;
// GIF animations will use the mCompositingFrame to composite images
// and just hand this back to the caller when it is time to draw the frame.
nsCOMPtr<gfxIImageFrame> mCompositingFrame;
// Private function for doing the frame compositing of animations and in cases
// where there is a backgound color and single frame placed withing a larger
// logical screen size. Smart GIF compressors may do this to save space.
void DoComposite(gfxIImageFrame** aFrameToUse, nsRect* aDirtyRect,
PRInt32 aPrevFrame, PRInt32 aNextFrame);
};
#endif /* __imgContainer_h__ */

View File

@@ -0,0 +1,242 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "imgLoader.h"
#include "imgIRequest.h"
#include "nsIServiceManager.h"
#include "nsIChannel.h"
#include "nsIIOService.h"
#include "nsILoadGroup.h"
#include "nsIStreamListener.h"
#include "nsIURI.h"
#include "imgRequest.h"
#include "imgRequestProxy.h"
#include "ImageCache.h"
#include "nsXPIDLString.h"
#include "nsCOMPtr.h"
#include "ImageLogging.h"
NS_IMPL_ISUPPORTS1(imgLoader, imgILoader)
imgLoader::imgLoader()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}
imgLoader::~imgLoader()
{
/* destructor code */
}
/* imgIRequest loadImage (in nsIURI uri, in nsILoadGroup aLoadGroup, in imgIDecoderObserver aObserver, in nsISupports cx); */
NS_IMETHODIMP imgLoader::LoadImage(nsIURI *aURI, nsILoadGroup *aLoadGroup, imgIDecoderObserver *aObserver, nsISupports *cx, imgIRequest **_retval)
{
NS_ASSERTION(aURI, "imgLoader::LoadImage -- NULL URI pointer");
if (!aURI)
return NS_ERROR_NULL_POINTER;
#if defined(PR_LOGGING)
nsXPIDLCString spec;
aURI->GetSpec(getter_Copies(spec));
LOG_SCOPE_WITH_PARAM(gImgLog, "imgLoader::LoadImage", "aURI", spec.get());
#endif
imgRequest *request = nsnull;
#ifdef MOZ_NEW_CACHE
nsCOMPtr<nsICacheEntryDescriptor> entry;
ImageCache::Get(aURI, &request, getter_AddRefs(entry)); // addrefs request
if (request && entry && aLoadGroup) {
/* this isn't exactly what I want here. This code will re-doom every cache hit in a document while
it is force reloading. So for multiple copies of an image on a page, when you force reload, this
will cause you to get seperate loads for each copy of the image... this sucks.
*/
PRUint32 flags = 0;
PRBool doomRequest = PR_FALSE;
aLoadGroup->GetDefaultLoadAttributes(&flags);
if (flags & nsIChannel::FORCE_RELOAD)
doomRequest = PR_TRUE;
else {
nsCOMPtr<nsIRequest> r;
aLoadGroup->GetDefaultLoadRequest(getter_AddRefs(r));
if (r) {
nsCOMPtr<nsIChannel> c(do_QueryInterface(r));
if (c) {
c->GetLoadAttributes(&flags);
if (flags & nsIChannel::FORCE_RELOAD)
doomRequest = PR_TRUE;
}
}
}
if (doomRequest) {
entry->Doom(); // doom this thing.
entry = nsnull;
NS_RELEASE(request);
request = nsnull;
}
}
#endif
if (!request) {
/* no request from the cache. do a new load */
LOG_SCOPE(gImgLog, "imgLoader::LoadImage |cache miss|");
nsCOMPtr<nsIIOService> ioserv(do_GetService("@mozilla.org/network/io-service;1"));
if (!ioserv) return NS_ERROR_FAILURE;
nsCOMPtr<nsIChannel> newChannel;
ioserv->NewChannelFromURI(aURI, getter_AddRefs(newChannel));
if (!newChannel) return NS_ERROR_FAILURE;
if (aLoadGroup) {
PRUint32 flags;
aLoadGroup->GetDefaultLoadAttributes(&flags);
newChannel->SetLoadAttributes(flags);
}
NS_NEWXPCOM(request, imgRequest);
if (!request) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(request);
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgLoader::LoadImage -- Created new imgRequest [request=%p]\n", this, request));
#ifdef MOZ_NEW_CACHE
ImageCache::Put(aURI, request, getter_AddRefs(entry));
#endif
#ifdef MOZ_NEW_CACHE
request->Init(newChannel, entry);
#else
request->Init(newChannel, nsnull);
#endif
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgLoader::LoadImage -- Calling channel->AsyncOpen()\n", this));
// XXX are we calling this too early?
newChannel->AsyncOpen(NS_STATIC_CAST(nsIStreamListener *, request), nsnull);
} else {
/* request found in cache. use it */
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgLoader::LoadImage |cache hit| [request=%p]\n",
this, request));
}
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgLoader::LoadImage -- creating proxy request.\n", this));
imgRequestProxy *proxyRequest;
NS_NEWXPCOM(proxyRequest, imgRequestProxy);
if (!proxyRequest) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(proxyRequest);
// init adds itself to imgRequest's list of observers
proxyRequest->Init(request, aLoadGroup, aObserver, cx);
NS_RELEASE(request);
*_retval = NS_STATIC_CAST(imgIRequest*, proxyRequest);
NS_ADDREF(*_retval);
NS_RELEASE(proxyRequest);
return NS_OK;
}
/* imgIRequest loadImageWithChannel(in nsIChannel, in imgIDecoderObserver aObserver, in nsISupports cx, out nsIStreamListener); */
NS_IMETHODIMP imgLoader::LoadImageWithChannel(nsIChannel *channel, imgIDecoderObserver *aObserver, nsISupports *cx, nsIStreamListener **listener, imgIRequest **_retval)
{
NS_ASSERTION(channel, "imgLoader::LoadImageWithChannel -- NULL channel pointer");
imgRequest *request = nsnull;
nsCOMPtr<nsIURI> uri;
channel->GetOriginalURI(getter_AddRefs(uri));
#ifdef MOZ_NEW_CACHE
nsCOMPtr<nsICacheEntryDescriptor> entry;
ImageCache::Get(uri, &request, getter_AddRefs(entry)); // addrefs request
#endif
if (request) {
// we have this in our cache already.. cancel the current (document) load
// XXX
// if *listener is null when we return here, the caller should probably cancel
// the channel instead of us doing it here.
channel->Cancel(NS_BINDING_ABORTED); // this should fire an OnStopRequest
*listener = nsnull; // give them back a null nsIStreamListener
} else {
NS_NEWXPCOM(request, imgRequest);
if (!request) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(request);
#ifdef MOZ_NEW_CACHE
ImageCache::Put(uri, request, getter_AddRefs(entry));
#endif
#ifdef MOZ_NEW_CACHE
request->Init(channel, entry);
#else
request->Init(channel, nsnull);
#endif
*listener = NS_STATIC_CAST(nsIStreamListener*, request);
NS_IF_ADDREF(*listener);
}
imgRequestProxy *proxyRequest;
NS_NEWXPCOM(proxyRequest, imgRequestProxy);
if (!proxyRequest) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(proxyRequest);
// init adds itself to imgRequest's list of observers
proxyRequest->Init(request, nsnull, aObserver, cx);
NS_RELEASE(request);
*_retval = NS_STATIC_CAST(imgIRequest*, proxyRequest);
NS_ADDREF(*_retval);
NS_RELEASE(proxyRequest);
return NS_OK;
}

View File

@@ -0,0 +1,48 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "imgILoader.h"
#ifdef LOADER_THREADSAFE
#include "prlock.h"
#endif
#define NS_IMGLOADER_CID \
{ /* 9f6a0d2e-1dd1-11b2-a5b8-951f13c846f7 */ \
0x9f6a0d2e, \
0x1dd1, \
0x11b2, \
{0xa5, 0xb8, 0x95, 0x1f, 0x13, 0xc8, 0x46, 0xf7} \
}
class imgLoader : public imgILoader
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMGILOADER
imgLoader();
virtual ~imgLoader();
private:
};

View File

@@ -0,0 +1,821 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "imgRequest.h"
#include "nsIAtom.h"
#include "nsIChannel.h"
#include "nsILoadGroup.h"
#include "nsIHTTPChannel.h"
#include "nsIInputStream.h"
#include "imgILoader.h"
#include "nsIComponentManager.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsString.h"
#include "nsXPIDLString.h"
#include "gfxIImageFrame.h"
#ifdef MOZ_NEW_CACHE
#include "nsICachingChannel.h"
#endif
#include "ImageCache.h"
#include "ImageLogging.h"
#if defined(PR_LOGGING)
PRLogModuleInfo *gImgLog = PR_NewLogModule("imgRequest");
#endif
NS_IMPL_ISUPPORTS7(imgRequest, imgIRequest, nsIRequest,
imgIDecoderObserver, imgIContainerObserver,
nsIStreamListener, nsIStreamObserver,
nsISupportsWeakReference)
imgRequest::imgRequest() :
mObservers(0), mLoading(PR_FALSE), mProcessing(PR_FALSE), mStatus(imgIRequest::STATUS_NONE), mState(0)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}
imgRequest::~imgRequest()
{
/* destructor code */
}
nsresult imgRequest::Init(nsIChannel *aChannel, nsICacheEntryDescriptor *aCacheEntry)
{
// XXX we should save off the thread we are getting called on here so that we can proxy all calls to mDecoder to it.
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::Init\n", this));
NS_ASSERTION(!mImage, "imgRequest::Init -- Multiple calls to init");
NS_ASSERTION(aChannel, "imgRequest::Init -- No channel");
mChannel = aChannel;
#ifdef MOZ_NEW_CACHE
mCacheEntry = aCacheEntry;
#endif
// XXX do not init the image here. this has to be done from the image decoder.
mImage = do_CreateInstance("@mozilla.org/image/container;1");
return NS_OK;
}
nsresult imgRequest::AddObserver(imgIDecoderObserver *observer)
{
LOG_SCOPE_WITH_PARAM(gImgLog, "imgRequest::AddObserver", "observer", observer);
mObservers.AppendElement(NS_STATIC_CAST(void*, observer));
// OnStartDecode
if (mState & onStartDecode)
observer->OnStartDecode(nsnull, nsnull);
// OnStartContainer
if (mState & onStartContainer)
observer->OnStartContainer(nsnull, nsnull, mImage);
// Send frame messages (OnStartFrame, OnDataAvailable, OnStopFrame)
PRUint32 nframes;
mImage->GetNumFrames(&nframes);
if (nframes > 0) {
nsCOMPtr<gfxIImageFrame> frame;
// Is this a single frame image?
if (nframes == 1) {
// Get the first frame
mImage->GetFrameAt(0, getter_AddRefs(frame));
NS_ASSERTION(frame, "GetFrameAt gave back a null frame!");
} else if (nframes > 1) {
/* multiple frames, we'll use the current one */
mImage->GetCurrentFrame(getter_AddRefs(frame));
NS_ASSERTION(frame, "GetCurrentFrame gave back a null frame!");
}
// OnStartFrame
observer->OnStartFrame(nsnull, nsnull, frame);
if (!(mState & onStopContainer)) {
// OnDataAvailable
nsRect r;
frame->GetRect(r); // XXX we shouldn't send the whole rect here
observer->OnDataAvailable(nsnull, nsnull, frame, &r);
} else {
// OnDataAvailable
nsRect r;
frame->GetRect(r); // We're done loading this image, send the the whole rect
observer->OnDataAvailable(nsnull, nsnull, frame, &r);
// OnStopFrame
observer->OnStopFrame(nsnull, nsnull, frame);
}
}
// OnStopContainer
if (mState & onStopContainer)
observer->OnStopContainer(nsnull, nsnull, mImage);
nsresult status;
if (mStatus & imgIRequest::STATUS_LOAD_COMPLETE)
status = NS_IMAGELIB_SUCCESS_LOAD_FINISHED;
else if (mStatus & imgIRequest::STATUS_ERROR)
status = NS_IMAGELIB_ERROR_FAILURE;
// OnStopDecode
if (mState & onStopDecode)
observer->OnStopDecode(nsnull, nsnull, status, nsnull);
if (mImage && (mObservers.Count() == 1)) {
PRUint32 nframes;
mImage->GetNumFrames(&nframes);
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::AddObserver -- starting animation\n", this));
mImage->StartAnimation();
}
if (mState & onStopRequest) {
nsCOMPtr<nsIStreamObserver> ob(do_QueryInterface(observer));
PR_ASSERT(observer);
ob->OnStopRequest(nsnull, nsnull, status, nsnull);
}
return NS_OK;
}
nsresult imgRequest::RemoveObserver(imgIDecoderObserver *observer, nsresult status)
{
LOG_SCOPE_WITH_PARAM(gImgLog, "imgRequest::RemoveObserver", "observer", observer);
mObservers.RemoveElement(NS_STATIC_CAST(void*, observer));
if (mObservers.Count() == 0) {
if (mImage) {
PRUint32 nframes;
mImage->GetNumFrames(&nframes);
if (nframes > 1) {
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::RemoveObserver -- stopping animation\n", this));
mImage->StopAnimation();
}
}
if (mChannel && mLoading) {
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::RemoveObserver -- load in progress. canceling\n", this));
this->RemoveFromCache();
this->Cancel(NS_BINDING_ABORTED);
if (!(mState & onStopDecode)) {
// make sure that observer gets an onStopRequest message sent to it
observer->OnStopDecode(nsnull, nsnull, NS_IMAGELIB_ERROR_FAILURE, nsnull);
}
if (!(mState & onStopRequest)) {
// make sure that observer gets an onStopRequest message sent to it
nsCOMPtr<nsIStreamObserver> ob(do_QueryInterface(observer));
PR_ASSERT(observer);
ob->OnStopRequest(nsnull, nsnull, NS_BINDING_ABORTED, nsnull);
}
}
}
return NS_OK;
}
PRBool imgRequest::RemoveFromCache()
{
LOG_SCOPE(gImgLog, "imgRequest::RemoveFromCache");
#ifdef MOZ_NEW_CACHE
if (mCacheEntry) {
mCacheEntry->Doom();
mCacheEntry = nsnull;
} else {
NS_WARNING("imgRequest::RemoveFromCache -- no entry!");
}
#endif
return PR_TRUE;
}
/** nsIRequest / imgIRequest methods **/
/* readonly attribute wstring name; */
NS_IMETHODIMP imgRequest::GetName(PRUnichar * *aName)
{
NS_NOTYETIMPLEMENTED("imgRequest::GetName");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isPending (); */
NS_IMETHODIMP imgRequest::IsPending(PRBool *_retval)
{
NS_NOTYETIMPLEMENTED("imgRequest::IsPending");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsresult status; */
NS_IMETHODIMP imgRequest::GetStatus(nsresult *aStatus)
{
NS_NOTYETIMPLEMENTED("imgRequest::GetStatus");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void cancel (in nsresult status); */
NS_IMETHODIMP imgRequest::Cancel(nsresult status)
{
LOG_SCOPE(gImgLog, "imgRequest::Cancel");
if (mImage) {
PRUint32 nframes;
mImage->GetNumFrames(&nframes);
if (nframes > 1) {
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::RemoveObserver -- stopping animation\n", this));
mImage->StopAnimation();
}
}
if (mChannel && mLoading)
mChannel->Cancel(NS_BINDING_ABORTED); // should prolly use status here
return NS_OK;
}
/* void suspend (); */
NS_IMETHODIMP imgRequest::Suspend()
{
NS_NOTYETIMPLEMENTED("imgRequest::Suspend");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void resume (); */
NS_IMETHODIMP imgRequest::Resume()
{
NS_NOTYETIMPLEMENTED("imgRequest::Resume");
return NS_ERROR_NOT_IMPLEMENTED;
}
/** imgIRequest methods **/
/* readonly attribute imgIContainer image; */
NS_IMETHODIMP imgRequest::GetImage(imgIContainer * *aImage)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::GetImage\n", this));
*aImage = mImage;
NS_IF_ADDREF(*aImage);
return NS_OK;
}
/* readonly attribute unsigned long imageStatus; */
NS_IMETHODIMP imgRequest::GetImageStatus(PRUint32 *aStatus)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::GetImageStatus\n", this));
*aStatus = mStatus;
return NS_OK;
}
/* readonly attribute nsIURI URI; */
NS_IMETHODIMP imgRequest::GetURI(nsIURI **aURI)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::GetURI\n", this));
if (mChannel)
return mChannel->GetOriginalURI(aURI);
else if (mURI) {
*aURI = mURI;
NS_ADDREF(*aURI);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
/* readonly attribute imgIDecoderObserver decoderObserver; */
NS_IMETHODIMP imgRequest::GetDecoderObserver(imgIDecoderObserver **aDecoderObserver)
{
return NS_ERROR_FAILURE;
}
/** imgIContainerObserver methods **/
/* [noscript] void frameChanged (in imgIContainer container, in nsISupports cx, in gfxIImageFrame newframe, in nsRect dirtyRect); */
NS_IMETHODIMP imgRequest::FrameChanged(imgIContainer *container, nsISupports *cx, gfxIImageFrame *newframe, nsRect * dirtyRect)
{
LOG_SCOPE(gImgLog, "imgRequest::FrameChanged");
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
while (++i < count) {
imgIDecoderObserver *ob = NS_STATIC_CAST(imgIDecoderObserver*, mObservers[i]);
if (ob) ob->FrameChanged(container, cx, newframe, dirtyRect);
}
return NS_OK;
}
/** imgIDecoderObserver methods **/
/* void onStartDecode (in imgIRequest request, in nsISupports cx); */
NS_IMETHODIMP imgRequest::OnStartDecode(imgIRequest *request, nsISupports *cx)
{
LOG_SCOPE(gImgLog, "imgRequest::OnStartDecode");
mState |= onStartDecode;
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
while (++i < count) {
imgIDecoderObserver *ob = NS_STATIC_CAST(imgIDecoderObserver*, mObservers[i]);
if (ob) ob->OnStartDecode(request, cx);
}
return NS_OK;
}
/* void onStartContainer (in imgIRequest request, in nsISupports cx, in imgIContainer image); */
NS_IMETHODIMP imgRequest::OnStartContainer(imgIRequest *request, nsISupports *cx, imgIContainer *image)
{
LOG_SCOPE(gImgLog, "imgRequest::OnStartContainer");
mState |= onStartContainer;
mStatus |= imgIRequest::STATUS_SIZE_AVAILABLE;
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
while (++i < count) {
imgIDecoderObserver *ob = NS_STATIC_CAST(imgIDecoderObserver*, mObservers[i]);
if (ob) ob->OnStartContainer(request, cx, image);
}
return NS_OK;
}
/* void onStartFrame (in imgIRequest request, in nsISupports cx, in gfxIImageFrame frame); */
NS_IMETHODIMP imgRequest::OnStartFrame(imgIRequest *request, nsISupports *cx, gfxIImageFrame *frame)
{
LOG_SCOPE(gImgLog, "imgRequest::OnStartFrame");
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
while (++i < count) {
imgIDecoderObserver *ob = NS_STATIC_CAST(imgIDecoderObserver*, mObservers[i]);
if (ob) ob->OnStartFrame(request, cx, frame);
}
return NS_OK;
}
/* [noscript] void onDataAvailable (in imgIRequest request, in nsISupports cx, in gfxIImageFrame frame, [const] in nsRect rect); */
NS_IMETHODIMP imgRequest::OnDataAvailable(imgIRequest *request, nsISupports *cx, gfxIImageFrame *frame, const nsRect * rect)
{
LOG_SCOPE(gImgLog, "imgRequest::OnDataAvailable");
nsCOMPtr<imgIDecoderObserver> container = do_QueryInterface(mImage);
container->OnDataAvailable(request, cx, frame, rect);
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
while (++i < count) {
imgIDecoderObserver *ob = NS_STATIC_CAST(imgIDecoderObserver*, mObservers[i]);
if (ob) ob->OnDataAvailable(request, cx, frame, rect);
}
return NS_OK;
}
/* void onStopFrame (in imgIRequest request, in nsISupports cx, in gfxIImageFrame frame); */
NS_IMETHODIMP imgRequest::OnStopFrame(imgIRequest *request, nsISupports *cx, gfxIImageFrame *frame)
{
NS_ASSERTION(frame, "imgRequest::OnStopFrame called with NULL frame");
LOG_SCOPE(gImgLog, "imgRequest::OnStopFrame");
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
#ifdef MOZ_NEW_CACHE
if (mCacheEntry) {
PRUint32 cacheSize = 0;
mCacheEntry->GetDataSize(&cacheSize);
PRUint32 imageSize = 0;
PRUint32 alphaSize = 0;
frame->GetImageDataLength(&imageSize);
frame->GetAlphaDataLength(&alphaSize);
mCacheEntry->SetDataSize(cacheSize + imageSize + alphaSize);
}
#endif
while (++i < count) {
imgIDecoderObserver *ob = NS_STATIC_CAST(imgIDecoderObserver*, mObservers[i]);
if (ob) ob->OnStopFrame(request, cx, frame);
}
return NS_OK;
}
/* void onStopContainer (in imgIRequest request, in nsISupports cx, in imgIContainer image); */
NS_IMETHODIMP imgRequest::OnStopContainer(imgIRequest *request, nsISupports *cx, imgIContainer *image)
{
LOG_SCOPE(gImgLog, "imgRequest::OnStopContainer");
mState |= onStopContainer;
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
while (++i < count) {
imgIDecoderObserver *ob = NS_STATIC_CAST(imgIDecoderObserver*, mObservers[i]);
if (ob) ob->OnStopContainer(request, cx, image);
}
return NS_OK;
}
/* void onStopDecode (in imgIRequest request, in nsISupports cx, in nsresult status, in wstring statusArg); */
NS_IMETHODIMP imgRequest::OnStopDecode(imgIRequest *aRequest, nsISupports *aCX, nsresult aStatus, const PRUnichar *aStatusArg)
{
LOG_SCOPE(gImgLog, "imgRequest::OnStopDecode");
if (mState & onStopDecode) {
NS_WARNING("OnStopDecode called multiple times.");
return NS_OK;
}
mState |= onStopDecode;
if (!(mStatus & imgIRequest::STATUS_ERROR) && NS_FAILED(aStatus))
mStatus |= imgIRequest::STATUS_ERROR;
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
nsresult status;
if (mStatus & imgIRequest::STATUS_LOAD_COMPLETE)
status = NS_IMAGELIB_SUCCESS_LOAD_FINISHED;
else if (mStatus & imgIRequest::STATUS_ERROR)
status = NS_IMAGELIB_ERROR_FAILURE;
while (++i < count) {
imgIDecoderObserver *ob = NS_STATIC_CAST(imgIDecoderObserver*, mObservers[i]);
if (ob) ob->OnStopDecode(aRequest, aCX, status, aStatusArg);
}
return NS_OK;
}
/** nsIStreamObserver methods **/
/* void onStartRequest (in nsIRequest request, in nsISupports ctxt); */
NS_IMETHODIMP imgRequest::OnStartRequest(nsIRequest *aRequest, nsISupports *ctxt)
{
LOG_SCOPE(gImgLog, "imgRequest::OnStartRequest");
NS_ASSERTION(!mDecoder, "imgRequest::OnStartRequest -- we already have a decoder");
NS_ASSERTION(!mLoading, "imgRequest::OnStartRequest -- we are loading again?");
/* set our loading flag to true */
mLoading = PR_TRUE;
/* notify our kids */
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
while (++i < count) {
imgIDecoderObserver *iob = NS_STATIC_CAST(imgIDecoderObserver*, mObservers[i]);
if (iob) {
nsCOMPtr<nsIStreamObserver> ob(do_QueryInterface(iob));
if (ob) ob->OnStartRequest(aRequest, ctxt);
}
}
/* do our real work */
nsCOMPtr<nsIChannel> chan(do_QueryInterface(aRequest));
if (!mChannel) {
PR_LOG(gImgLog, PR_LOG_ALWAYS,
(" `-> Channel already stopped or no channel!?.\n"));
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIHTTPChannel> httpChannel(do_QueryInterface(chan));
if (httpChannel) {
PRUint32 httpStatus;
httpChannel->GetResponseStatus(&httpStatus);
if (httpStatus == 404) {
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::OnStartRequest -- http status = 404. canceling.\n", this));
mStatus |= imgIRequest::STATUS_ERROR;
this->Cancel(NS_BINDING_ABORTED);
this->RemoveFromCache();
return NS_BINDING_ABORTED;
}
}
/* get the expires info */
#if defined(MOZ_NEW_CACHE)
if (mCacheEntry) {
nsCOMPtr<nsICachingChannel> cacheChannel(do_QueryInterface(chan));
if (cacheChannel) {
nsCOMPtr<nsISupports> cacheToken;
cacheChannel->GetCacheToken(getter_AddRefs(cacheToken));
if (cacheToken) {
nsCOMPtr<nsICacheEntryDescriptor> entryDesc(do_QueryInterface(cacheToken));
if (entryDesc) {
PRUint32 expiration;
/* get the expiration time from the caching channel's token */
entryDesc->GetExpirationTime(&expiration);
/* set the expiration time on our entry */
mCacheEntry->SetExpirationTime(expiration);
}
}
}
}
#endif
return NS_OK;
}
/* void onStopRequest (in nsIRequest request, in nsISupports ctxt, in nsresult status, in wstring statusArg); */
NS_IMETHODIMP imgRequest::OnStopRequest(nsIRequest *aRequest, nsISupports *ctxt, nsresult status, const PRUnichar *statusArg)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::OnStopRequest\n", this));
NS_ASSERTION(mChannel && mLoading, "imgRequest::OnStopRequest -- received multiple OnStopRequest");
mState |= onStopRequest;
/* set our loading flag to false */
mLoading = PR_FALSE;
/* set our processing flag to false */
mProcessing = PR_FALSE;
#ifdef MOZ_NEW_CACHE
/* break the cycle from the cache entry. */
mCacheEntry = nsnull;
#endif
if (NS_FAILED(status)) {
mStatus |= imgIRequest::STATUS_ERROR;
this->RemoveFromCache();
this->Cancel(status); // stops animations
} else {
mStatus |= imgIRequest::STATUS_LOAD_COMPLETE;
}
mChannel->GetOriginalURI(getter_AddRefs(mURI));
mChannel = nsnull; // we no longer need the channel
if (mDecoder) {
mDecoder->Flush();
mDecoder->Close();
mDecoder = nsnull; // release the decoder so that it can rest peacefully ;)
}
/* notify the kids */
PRInt32 i = -1;
PRInt32 count = mObservers.Count();
while (++i < count) {
void *item = NS_STATIC_CAST(void *, mObservers[i]);
if (item) {
imgIDecoderObserver *iob = NS_STATIC_CAST(imgIDecoderObserver*, item);
if (iob) {
nsCOMPtr<nsIStreamObserver> ob(do_QueryInterface(iob));
if (ob) ob->OnStopRequest(aRequest, ctxt, status, statusArg);
}
}
}
// if there was an error loading the image, (mState & onStopDecode) won't be true.
// Send an onStopDecode message
if (!(mState & onStopDecode)) {
this->OnStopDecode(nsnull, nsnull, status, statusArg);
}
return NS_OK;
}
/* prototype for this defined below */
static NS_METHOD sniff_mimetype_callback(nsIInputStream* in, void* closure, const char* fromRawSegment,
PRUint32 toOffset, PRUint32 count, PRUint32 *writeCount);
/** nsIStreamListener methods **/
/* void onDataAvailable (in nsIRequest request, in nsISupports ctxt, in nsIInputStream inStr, in unsigned long sourceOffset, in unsigned long count); */
NS_IMETHODIMP imgRequest::OnDataAvailable(nsIRequest *aRequest, nsISupports *ctxt, nsIInputStream *inStr, PRUint32 sourceOffset, PRUint32 count)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::OnDataAvailable\n", this));
NS_ASSERTION(mChannel, "imgRequest::OnDataAvailable -- no channel!");
if (!mProcessing) {
/* set our processing flag to true if this is the first OnDataAvailable() */
mProcessing = PR_TRUE;
/* look at the first few bytes and see if we can tell what the data is from that
* since servers tend to lie. :(
*/
PRUint32 out;
inStr->ReadSegments(sniff_mimetype_callback, this, count, &out);
#ifdef NS_DEBUG
/* NS_WARNING if the content type from the channel isn't the same if the sniffing */
#endif
if (!mContentType.get()) {
nsXPIDLCString contentType;
nsresult rv = mChannel->GetContentType(getter_Copies(contentType));
if (NS_FAILED(rv)) {
PR_LOG(gImgLog, PR_LOG_ERROR,
("[this=%p] imgRequest::OnStartRequest -- Content type unavailable from the channel\n",
this));
this->RemoveFromCache();
return NS_BINDING_ABORTED; //NS_BASE_STREAM_CLOSED;
}
mContentType = contentType;
}
#if defined(PR_LOGGING)
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequest::OnStartRequest -- Content type is %s\n", this, mContentType.get()));
#endif
nsCAutoString conid("@mozilla.org/image/decoder;2?type=");
conid += mContentType.get();
mDecoder = do_CreateInstance(conid);
if (!mDecoder) {
PR_LOG(gImgLog, PR_LOG_WARNING,
("[this=%p] imgRequest::OnStartRequest -- Decoder not available\n", this));
// no image decoder for this mimetype :(
this->Cancel(NS_BINDING_ABORTED);
this->RemoveFromCache();
// XXX notify the person that owns us now that wants the imgIContainer off of us?
return NS_IMAGELIB_ERROR_NO_DECODER;
}
mDecoder->Init(NS_STATIC_CAST(imgIRequest*, this));
}
if (!mDecoder) {
PR_LOG(gImgLog, PR_LOG_WARNING,
("[this=%p] imgRequest::OnDataAvailable -- no decoder\n", this));
return NS_BASE_STREAM_CLOSED;
}
PRUint32 wrote;
nsresult rv = mDecoder->WriteFrom(inStr, count, &wrote);
return NS_OK;
}
static NS_METHOD sniff_mimetype_callback(nsIInputStream* in,
void* closure,
const char* fromRawSegment,
PRUint32 toOffset,
PRUint32 count,
PRUint32 *writeCount)
{
imgRequest *request = NS_STATIC_CAST(imgRequest*, closure);
NS_ASSERTION(request, "request is null!");
if (count > 0)
request->SniffMimeType(fromRawSegment, count);
*writeCount = 0;
return NS_ERROR_FAILURE;
}
void
imgRequest::SniffMimeType(const char *buf, PRUint32 len)
{
/* Is it a GIF? */
if (len >= 4 && !nsCRT::strncmp(buf, "GIF8", 4)) {
mContentType = NS_LITERAL_CSTRING("image/gif");
return;
}
/* or a PNG? */
if (len >= 4 && ((unsigned char)buf[0]==0x89 &&
(unsigned char)buf[1]==0x50 &&
(unsigned char)buf[2]==0x4E &&
(unsigned char)buf[3]==0x47))
{
mContentType = NS_LITERAL_CSTRING("image/png");
return;
}
/* maybe a JPEG (JFIF)? */
/* JFIF files start with SOI APP0 but older files can start with SOI DQT
* so we test for SOI followed by any marker, i.e. FF D8 FF
* this will also work for SPIFF JPEG files if they appear in the future.
*
* (JFIF is 0XFF 0XD8 0XFF 0XE0 <skip 2> 0X4A 0X46 0X49 0X46 0X00)
*/
if (len >= 3 &&
((unsigned char)buf[0])==0xFF &&
((unsigned char)buf[1])==0xD8 &&
((unsigned char)buf[2])==0xFF)
{
mContentType = NS_LITERAL_CSTRING("image/jpeg");
return;
}
/* or how about ART? */
/* ART begins with JG (4A 47). Major version offset 2.
* Minor version offset 3. Offset 4 must be NULL.
*/
if (len >= 5 &&
((unsigned char) buf[0])==0x4a &&
((unsigned char) buf[1])==0x47 &&
((unsigned char) buf[4])==0x00 )
{
mContentType = NS_LITERAL_CSTRING("image/x-jg");
return;
}
/* none of the above? I give up */
}

View File

@@ -0,0 +1,113 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#ifndef imgRequest_h__
#define imgRequest_h__
#include "imgIRequest.h"
#include "nsIRunnable.h"
#include "nsIChannel.h"
#include "nsIURI.h"
#include "imgIContainer.h"
#include "imgIDecoder.h"
#include "imgIDecoderObserver.h"
#include "nsIStreamListener.h"
#include "nsCOMPtr.h"
#include "nsVoidArray.h"
#include "nsWeakReference.h"
#include "nsString.h"
#ifdef MOZ_NEW_CACHE
#include "nsICacheEntryDescriptor.h"
#else
class nsICacheEntryDescriptor;
#endif
#define NS_IMGREQUEST_CID \
{ /* 9f733dd6-1dd1-11b2-8cdf-effb70d1ea71 */ \
0x9f733dd6, \
0x1dd1, \
0x11b2, \
{0x8c, 0xdf, 0xef, 0xfb, 0x70, 0xd1, 0xea, 0x71} \
}
enum {
onStartDecode = 0x1,
onStartContainer = 0x2,
onStopContainer = 0x4,
onStopDecode = 0x8,
onStopRequest = 0x16
};
class imgRequest : public imgIRequest,
public imgIDecoderObserver,
public nsIStreamListener,
public nsSupportsWeakReference
{
public:
imgRequest();
virtual ~imgRequest();
/* additional members */
nsresult Init(nsIChannel *aChannel, nsICacheEntryDescriptor *aCacheEntry);
nsresult AddObserver(imgIDecoderObserver *observer);
nsresult RemoveObserver(imgIDecoderObserver *observer, nsresult status);
PRBool RemoveFromCache();
void SniffMimeType(const char *buf, PRUint32 len);
NS_DECL_ISUPPORTS
NS_DECL_IMGIREQUEST
NS_DECL_NSIREQUEST
NS_DECL_IMGIDECODEROBSERVER
NS_DECL_IMGICONTAINEROBSERVER
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSISTREAMOBSERVER
private:
nsCOMPtr<nsIChannel> mChannel;
nsCOMPtr<nsIURI> mURI;
nsCOMPtr<imgIContainer> mImage;
nsCOMPtr<imgIDecoder> mDecoder;
nsVoidArray mObservers;
PRBool mLoading;
PRBool mProcessing;
PRUint32 mStatus;
PRUint32 mState;
nsCString mContentType;
#ifdef MOZ_NEW_CACHE
nsCOMPtr<nsICacheEntryDescriptor> mCacheEntry; /* we hold on to this to this so long as we have observers */
#endif
};
#endif

View File

@@ -0,0 +1,316 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "imgRequestProxy.h"
#include "nsXPIDLString.h"
#include "nsIInputStream.h"
#include "imgILoader.h"
#include "nsIComponentManager.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "imgRequest.h"
#include "nsString.h"
#include "DummyChannel.h"
#include "nspr.h"
#include "ImageLogging.h"
NS_IMPL_ISUPPORTS5(imgRequestProxy, imgIRequest, nsIRequest, imgIDecoderObserver, imgIContainerObserver, nsIStreamObserver)
imgRequestProxy::imgRequestProxy() :
mCanceled(PR_FALSE)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}
imgRequestProxy::~imgRequestProxy()
{
/* destructor code */
// XXX pav
// it isn't the job of the request proxy to cancel itself.
// if your object goes away and you want to cancel the load, then do it yourself.
// cancel here for now until i make this work right like the above comment
Cancel(NS_ERROR_FAILURE);
}
nsresult imgRequestProxy::Init(imgRequest *request, nsILoadGroup *aLoadGroup, imgIDecoderObserver *aObserver, nsISupports *cx)
{
PR_ASSERT(request);
LOG_SCOPE_WITH_PARAM(gImgLog, "imgRequestProxy::Init", "request", request);
mOwner = NS_STATIC_CAST(imgIRequest*, request);
mObserver = aObserver;
// XXX we should save off the thread we are getting called on here so that we can proxy all calls to mDecoder to it.
mContext = cx;
// XXX we should only create a channel, etc if the image isn't finished loading already.
nsISupports *inst = nsnull;
inst = new DummyChannel(this, aLoadGroup);
NS_ADDREF(inst);
nsresult res = inst->QueryInterface(NS_GET_IID(nsIChannel), getter_AddRefs(mDummyChannel));
NS_RELEASE(inst);
nsCOMPtr<nsILoadGroup> loadGroup;
mDummyChannel->GetLoadGroup(getter_AddRefs(loadGroup));
if (loadGroup) {
loadGroup->AddRequest(mDummyChannel, cx);
}
request->AddObserver(this);
return NS_OK;
}
/** nsIRequest / imgIRequest methods **/
/* readonly attribute wstring name; */
NS_IMETHODIMP imgRequestProxy::GetName(PRUnichar * *aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isPending (); */
NS_IMETHODIMP imgRequestProxy::IsPending(PRBool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsresult status; */
NS_IMETHODIMP imgRequestProxy::GetStatus(nsresult *aStatus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void cancel (in nsresult status); */
NS_IMETHODIMP imgRequestProxy::Cancel(nsresult status)
{
if (mCanceled)
return NS_ERROR_FAILURE;
LOG_SCOPE(gImgLog, "imgRequestProxy::Cancel");
mCanceled = PR_TRUE;
NS_ASSERTION(mOwner, "canceling request proxy twice");
nsresult rv = NS_REINTERPRET_CAST(imgRequest*, mOwner.get())->RemoveObserver(this, status);
mOwner = nsnull;
return rv;
}
/* void suspend (); */
NS_IMETHODIMP imgRequestProxy::Suspend()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void resume (); */
NS_IMETHODIMP imgRequestProxy::Resume()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/** imgIRequest methods **/
/* readonly attribute imgIContainer image; */
NS_IMETHODIMP imgRequestProxy::GetImage(imgIContainer * *aImage)
{
if (!mOwner)
return NS_ERROR_FAILURE;
return mOwner->GetImage(aImage);
}
/* readonly attribute unsigned long imageStatus; */
NS_IMETHODIMP imgRequestProxy::GetImageStatus(PRUint32 *aStatus)
{
if (!mOwner) {
*aStatus = imgIRequest::STATUS_ERROR;
return NS_ERROR_FAILURE;
}
return mOwner->GetImageStatus(aStatus);
}
/* readonly attribute nsIURI URI; */
NS_IMETHODIMP imgRequestProxy::GetURI(nsIURI **aURI)
{
if (!mOwner)
return NS_ERROR_FAILURE;
return mOwner->GetURI(aURI);
}
/* readonly attribute imgIDecoderObserver decoderObserver; */
NS_IMETHODIMP imgRequestProxy::GetDecoderObserver(imgIDecoderObserver **aDecoderObserver)
{
*aDecoderObserver = mObserver;
NS_IF_ADDREF(*aDecoderObserver);
return NS_OK;
}
/** imgIContainerObserver methods **/
/* [noscript] void frameChanged (in imgIContainer container, in nsISupports cx, in gfxIImageFrame newframe, in nsRect dirtyRect); */
NS_IMETHODIMP imgRequestProxy::FrameChanged(imgIContainer *container, nsISupports *cx, gfxIImageFrame *newframe, nsRect * dirtyRect)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequestProxy::FrameChanged\n", this));
if (mObserver)
mObserver->FrameChanged(container, mContext, newframe, dirtyRect);
return NS_OK;
}
/** imgIDecoderObserver methods **/
/* void onStartDecode (in imgIRequest request, in nsISupports cx); */
NS_IMETHODIMP imgRequestProxy::OnStartDecode(imgIRequest *request, nsISupports *cx)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequestProxy::OnStartDecode\n", this));
if (mObserver)
mObserver->OnStartDecode(this, mContext);
return NS_OK;
}
/* void onStartContainer (in imgIRequest request, in nsISupports cx, in imgIContainer image); */
NS_IMETHODIMP imgRequestProxy::OnStartContainer(imgIRequest *request, nsISupports *cx, imgIContainer *image)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequestProxy::OnStartContainer\n", this));
if (mObserver)
mObserver->OnStartContainer(this, mContext, image);
return NS_OK;
}
/* void onStartFrame (in imgIRequest request, in nsISupports cx, in gfxIImageFrame frame); */
NS_IMETHODIMP imgRequestProxy::OnStartFrame(imgIRequest *request, nsISupports *cx, gfxIImageFrame *frame)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequestProxy::OnStartFrame\n", this));
if (mObserver)
mObserver->OnStartFrame(this, mContext, frame);
return NS_OK;
}
/* [noscript] void onDataAvailable (in imgIRequest request, in nsISupports cx, in gfxIImageFrame frame, [const] in nsRect rect); */
NS_IMETHODIMP imgRequestProxy::OnDataAvailable(imgIRequest *request, nsISupports *cx, gfxIImageFrame *frame, const nsRect * rect)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequestProxy::OnDataAvailable\n", this));
if (mObserver)
mObserver->OnDataAvailable(this, mContext, frame, rect);
return NS_OK;
}
/* void onStopFrame (in imgIRequest request, in nsISupports cx, in gfxIImageFrame frame); */
NS_IMETHODIMP imgRequestProxy::OnStopFrame(imgIRequest *request, nsISupports *cx, gfxIImageFrame *frame)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequestProxy::OnStopFrame\n", this));
if (mObserver)
mObserver->OnStopFrame(this, mContext, frame);
return NS_OK;
}
/* void onStopContainer (in imgIRequest request, in nsISupports cx, in imgIContainer image); */
NS_IMETHODIMP imgRequestProxy::OnStopContainer(imgIRequest *request, nsISupports *cx, imgIContainer *image)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequestProxy::OnStopContainer\n", this));
if (mObserver)
mObserver->OnStopContainer(this, mContext, image);
return NS_OK;
}
/* void onStopDecode (in imgIRequest request, in nsISupports cx, in nsresult status, in wstring statusArg); */
NS_IMETHODIMP imgRequestProxy::OnStopDecode(imgIRequest *request, nsISupports *cx, nsresult status, const PRUnichar *statusArg)
{
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgRequestProxy::OnStopDecode\n", this));
if (mObserver)
mObserver->OnStopDecode(this, mContext, status, statusArg);
return NS_OK;
}
/* void onStartRequest (in nsIRequest request, in nsISupports ctxt); */
NS_IMETHODIMP imgRequestProxy::OnStartRequest(nsIRequest *request, nsISupports *ctxt)
{
return NS_OK;
}
/* void onStopRequest (in nsIRequest request, in nsISupports ctxt, in nsresult statusCode, in wstring statusText); */
NS_IMETHODIMP imgRequestProxy::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult statusCode, const PRUnichar *statusText)
{
if (!mDummyChannel)
return NS_OK;
nsCOMPtr<nsILoadGroup> loadGroup;
mDummyChannel->GetLoadGroup(getter_AddRefs(loadGroup));
if (loadGroup) {
loadGroup->RemoveRequest(mDummyChannel, mContext, statusCode, statusText);
}
mDummyChannel = nsnull;
return NS_OK;
}

View File

@@ -0,0 +1,70 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "imgRequest.h"
#include "imgIDecoderObserver.h"
#include "imgIContainer.h"
#include "imgIDecoder.h"
#include "nsIStreamObserver.h"
#include "nsIChannel.h"
#include "nsILoadGroup.h"
#include "nsCOMPtr.h"
#define NS_IMGREQUESTPROXY_CID \
{ /* 20557898-1dd2-11b2-8f65-9c462ee2bc95 */ \
0x20557898, \
0x1dd2, \
0x11b2, \
{0x8f, 0x65, 0x9c, 0x46, 0x2e, 0xe2, 0xbc, 0x95} \
}
class imgRequestProxy : public imgIRequest,
public imgIDecoderObserver,
public nsIStreamObserver
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMGIREQUEST
NS_DECL_NSIREQUEST
NS_DECL_IMGIDECODEROBSERVER
NS_DECL_IMGICONTAINEROBSERVER
NS_DECL_NSISTREAMOBSERVER
imgRequestProxy();
virtual ~imgRequestProxy();
/* additional members */
nsresult Init(imgRequest *request, nsILoadGroup *aLoadGroup, imgIDecoderObserver *aObserver, nsISupports *cx);
private:
nsCOMPtr<imgIDecoderObserver> mObserver;
nsCOMPtr<nsISupports> mContext;
nsCOMPtr<imgIRequest> mOwner;
nsCOMPtr<nsIChannel> mDummyChannel;
PRBool mCanceled;
};

View File

@@ -0,0 +1,56 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Stuart Parmenter <pavlov@netscape.com>
#
DEPTH=..\..\..
include <$(DEPTH)/config/config.mak>
MODULE = imglib2
LIBRARY_NAME = imglib2
DLL = $(OBJDIR)\$(LIBRARY_NAME).dll
MAKE_OBJ_TYPE = DLL
OBJS = \
.\$(OBJDIR)\DummyChannel.obj \
.\$(OBJDIR)\ImageCache.obj \
.\$(OBJDIR)\ImageFactory.obj \
.\$(OBJDIR)\imgContainer.obj \
.\$(OBJDIR)\imgLoader.obj \
.\$(OBJDIR)\imgRequest.obj \
.\$(OBJDIR)\imgRequestProxy.obj \
$(NULL)
LLIBS=\
$(LIBNSPR) \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\gkgfxwin.lib \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(LIBRARY_NAME).lib $(DIST)\lib
clobber::
rm -f $(DIST)\bin\components\$(LIBRARY_NAME).dll
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,90 @@
?AddRef@imgRequestProxy@@UAGKXZ ; 143798
?Release@imgContainer@@UAGKXZ ; 120291
?OnDataAvailable@imgRequestProxy@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVgfxIImageFrame@@PBUnsRect@@@Z ; 84442
?QueryInterface@imgContainer@@UAGIABUnsID@@PAPAX@Z ; 76980
?OnDataAvailable@imgContainer@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVgfxIImageFrame@@PBUnsRect@@@Z ; 75604
?OnDataAvailable@imgRequest@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVgfxIImageFrame@@PBUnsRect@@@Z ; 75604
?AddRef@DummyChannel@@UAGKXZ ; 45629
?QueryInterface@DummyChannel@@UAGIABUnsID@@PAPAX@Z ; 45310
?GetImage@imgRequest@@UAGIPAPAVimgIContainer@@@Z ; 41814
?Release@DummyChannel@@UAGKXZ ; 41716
?GetImage@imgRequestProxy@@UAGIPAPAVimgIContainer@@@Z ; 40453
?GetFrameAt@imgContainer@@UAGIIPAPAVgfxIImageFrame@@@Z ; 39613
?GetHeight@imgContainer@@UAGIPAH@Z ; 32348
?Release@imgRequest@@UAGKXZ ; 31603
?AddRef@imgRequest@@UAGKXZ ; 31603
?GetNumFrames@imgContainer@@UAGIPAI@Z ; 28342
?GetImageStatus@imgRequestProxy@@UAGIPAI@Z ; 27464
?Release@imgRequestProxy@@UAGKXZ ; 23383
?GetCurrentFrame@imgContainer@@UAGIPAPAVgfxIImageFrame@@@Z ; 19319
?QueryInterface@imgRequest@@UAGIABUnsID@@PAPAX@Z ; 16120
?assign_assuming_AddRef@nsCOMPtr_base@@IAEXPAVnsISupports@@@Z ; 13764
?FrameChanged@imgRequestProxy@@UAGIPAVimgIContainer@@PAVnsISupports@@PAVgfxIImageFrame@@PAUnsRect@@@Z ; 13455
?QueryInterface@imgRequestProxy@@UAGIABUnsID@@PAPAX@Z ; 10170
?Notify@imgContainer@@UAGXPAVnsITimer@@@Z ; 9611
??0nsQueryReferent@@QAE@PAVnsIWeakReference@@PAI@Z ; 9611
?FrameChanged@imgRequest@@UAGIPAVimgIContainer@@PAVnsISupports@@PAVgfxIImageFrame@@PAUnsRect@@@Z ; 9609
?DoComposite@imgContainer@@AAEXPAPAVgfxIImageFrame@@PAUnsRect@@HH@Z ; 9608
?GetLoadAttributes@DummyChannel@@UAGIPAI@Z ; 8258
?Cancel@imgRequestProxy@@UAGII@Z ; 7509
?GetLoadGroup@DummyChannel@@UAGIPAPAVnsILoadGroup@@@Z ; 7456
?GetURI@imgRequest@@UAGIPAPAVnsIURI@@@Z ; 5395
?GetURI@imgRequestProxy@@UAGIPAPAVnsIURI@@@Z ; 5395
?GetCacheSession@@YAXPAPAVnsICacheSession@@@Z ; 5165
?GetWidth@imgContainer@@UAGIPAH@Z ; 4675
?Release@imgLoader@@UAGKXZ ; 3791
?AddObserver@imgRequest@@QAEIPAVimgIDecoderObserver@@@Z ; 3789
?Get@ImageCache@@SAHPAVnsIURI@@PAPAVimgRequest@@PAPAVnsICacheEntryDescriptor@@@Z ; 3789
?RemoveObserver@imgRequest@@QAEIPAVimgIDecoderObserver@@I@Z ; 3789
?Init@imgRequestProxy@@QAEIPAVimgRequest@@PAVnsILoadGroup@@PAVimgIDecoderObserver@@PAVnsISupports@@@Z ; 3789
?QueryInterface@imgLoader@@UAGIABUnsID@@PAPAX@Z ; 3789
??0imgRequestProxy@@QAE@XZ ; 3789
??0DummyChannel@@QAE@PAVimgIRequest@@PAVnsILoadGroup@@@Z ; 3789
?LoadImage@imgLoader@@UAGIPAVnsIURI@@PAVnsILoadGroup@@PAVimgIDecoderObserver@@PAVnsISupports@@PAPAVimgIRequest@@@Z ; 3789
??1imgRequestProxy@@UAE@XZ ; 3667
??1DummyChannel@@QAE@XZ ; 3667
??_EimgRequestProxy@@UAEPAXI@Z ; 3667
?OnStopRequest@imgRequestProxy@@UAGIPAVnsIRequest@@PAVnsISupports@@IPBG@Z ; 3667
?OnStopDecode@imgRequestProxy@@UAGIPAVimgIRequest@@PAVnsISupports@@IPBG@Z ; 3652
?OnStartContainer@imgRequestProxy@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVimgIContainer@@@Z ; 3652
?OnStopContainer@imgRequestProxy@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVimgIContainer@@@Z ; 3652
?OnStartDecode@imgRequestProxy@@UAGIPAVimgIRequest@@PAVnsISupports@@@Z ; 3652
?OnStopFrame@imgRequestProxy@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVgfxIImageFrame@@@Z ; 3491
?OnStartFrame@imgRequestProxy@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVgfxIImageFrame@@@Z ; 3491
?OnStartRequest@imgRequestProxy@@UAGIPAVnsIRequest@@PAVnsISupports@@@Z ; 2714
?OnStopFrame@imgRequest@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVgfxIImageFrame@@@Z ; 2082
?AppendFrame@imgContainer@@UAGIPAVgfxIImageFrame@@@Z ; 2082
?OnStartFrame@imgRequest@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVgfxIImageFrame@@@Z ; 2082
?EndFrameDecode@imgContainer@@UAGIII@Z ; 1996
?StartAnimation@imgContainer@@UAGIXZ ; 1747
?OnDataAvailable@imgRequest@@UAGIPAVnsIRequest@@PAVnsISupports@@PAVnsIInputStream@@II@Z ; 1415
??0imgContainer@@QAE@XZ ; 1376
??1imgRequest@@UAE@XZ ; 1376
?OnStopRequest@imgRequest@@UAGIPAVnsIRequest@@PAVnsISupports@@IPBG@Z ; 1376
?Init@imgRequest@@QAEIPAVnsIChannel@@PAVnsICacheEntryDescriptor@@@Z ; 1376
??1imgContainer@@UAE@XZ ; 1376
?Put@ImageCache@@SAHPAVnsIURI@@PAVimgRequest@@PAPAVnsICacheEntryDescriptor@@@Z ; 1376
??_GimgRequest@@UAEPAXI@Z ; 1376
??_EimgContainer@@UAEPAXI@Z ; 1376
??0imgRequest@@QAE@XZ ; 1376
?OnStartRequest@imgRequest@@UAGIPAVnsIRequest@@PAVnsISupports@@@Z ; 1367
?OnStartContainer@imgRequest@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVimgIContainer@@@Z ; 1361
?Init@imgContainer@@UAGIHHPAVimgIContainerObserver@@@Z ; 1361
?OnStartDecode@imgRequest@@UAGIPAVimgIRequest@@PAVnsISupports@@@Z ; 1361
?SniffMimeType@imgRequest@@QAEXPBDI@Z ; 1361
?OnStopContainer@imgRequest@@UAGIPAVimgIRequest@@PAVnsISupports@@PAVimgIContainer@@@Z ; 1361
?OnStopDecode@imgRequest@@UAGIPAVimgIRequest@@PAVnsISupports@@IPBG@Z ; 1361
?GetContentType@DummyChannel@@UAGIPAPAD@Z ; 1275
?DecodingComplete@imgContainer@@UAGIXZ ; 1275
?Cancel@DummyChannel@@UAGII@Z ; 122
?StopAnimation@imgContainer@@UAGIXZ ; 121
?GetDecoderObserver@imgRequestProxy@@UAGIPAPAVimgIDecoderObserver@@@Z ; 84
??0nsGetInterface@@QAE@PAVnsISupports@@PAI@Z ; 77
_NSGetModule ; 1
??_EimgLoader@@UAEPAXI@Z ; 1
??1imgLoader@@UAE@XZ ; 1
?Shutdown@ImageCache@@SAXXZ ; 1
??0imgLoader@@QAE@XZ ; 1
?do_GetService@@YA?BVnsGetServiceByContractID@@PBDPAI@Z ; 1
?Cancel@imgRequest@@UAGII@Z ; 1
?RemoveFromCache@imgRequest@@QAEHXZ ; 1

View File

@@ -1,273 +0,0 @@
#!/bin/csh
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Startup file for csh and tcsh. It is meant to work on:
#
# SunOS 4.1.3_U1,
# Sun Solaris,
# Sun Solaris on Intel,
# SGI IRIX,
# SGI IRIX64,
# UNIX_SV,
# IBM AIX,
# Hewlett-Packard HP-UX,
# SCO_SV,
# FreeBSD,
# DEC OSF/1,
# Linux,
# and everything else.
#
###############################################
# Set operating system name and release level #
###############################################
set os_name=`uname -s`
set os_release=`uname -r`
##########################################################
# Set environment variables based upon operating system #
##########################################################
if ($os_name == "SunOS" && $os_release == "4.1.3_U1") then
##############################
# SunOS 4.1.3_U1
#
setenv NO_MDUPDATE 1
set path = ( /tools/ns/soft/gcc-2.6.3/run/default/sparc_sun_sunos4.1.3_U1/bin \
/tools/ns/bin \
/sbin \
/usr/bin \
/usr/openwin/bin \
/usr/openwin/include \
/usr/ucb \
/usr/local/bin \
/etc \
/usr/etc \
/usr/etc/install \
. )
else if ($os_name == "SunOS") then
################################
# Assume it is Sun Solaris
#
# To build Navigator on Solaris 2.5, I must set the environment
# variable NO_MDUPDATE and use gcc-2.6.3.
setenv NO_MDUPDATE 1
set path = ( /share/builds/components/jdk/1.2.2_01/SunOS \
/usr/ccs/bin \
/usr/opt/bin \
/tools/ns/bin \
/usr/sbin \
/sbin \
/usr/bin \
/usr/dt/bin \
/usr/openwin/bin \
/usr/openwin/include \
/usr/ucb \
/usr/opt/java/bin \
/usr/local/bin \
/etc \
/usr/etc \
/usr/etc/install \
/opt/Acrobat3/bin \
. )
# To get the native Solaris cc
if (`uname -m` == i86pc) then
set path = ( /h/solx86/export/home/opt/SUNWspro/SC3.0.1/bin \
$path )
else
set path = ( /tools/ns/workshop/bin \
/tools/ns/soft/gcc-2.6.3/run/default/sparc_sun_solaris2.4/bin \
$path )
endif
setenv LD_LIBRARY_PATH /share/builds/components/jdk/1.2.2_01/SunOS/lib/sparc/native_threads
setenv MANPATH /usr/local/man:/usr/local/lib/mh/man:/usr/local/lib/rcscvs/man:/usr/local/lib/fvwm/man:/usr/local/lib/xscreensaver/man:/usr/share/man:/usr/openwin/man:/usr/opt/man
# For Purify
setenv PURIFYHOME /usr/local-sparc-solaris/pure/purify-4.0-solaris2
setenv PATH ${PURIFYHOME}:$PATH
setenv MANPATH $PURIFYHOME/man:$MANPATH
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$PURIFYHOME
setenv PURIFYOPTIONS "-max_threads=1000 -follow-child-processes=yes"
else if ($os_name == "IRIX" || $os_name == "IRIX64") then
#############
# SGI Irix
#
set path = ( /share/builds/components/jdk/1.2.1/IRIX \
/tools/ns/bin \
/tools/contrib/bin \
/usr/local/bin \
/usr/sbin \
/usr/bsd \
/usr/bin \
/bin \
/etc \
/usr/etc \
/usr/bin/X11 \
. )
else if ($os_name == "UNIX_SV") then
#################
# UNIX_SV
#
set path = ( /usr/local/bin \
/tools/ns/bin \
/bin \
/usr/bin \
/usr/bin/X11 \
/X11/bin \
/usr/X/bin \
/usr/ucb \
/usr/sbin \
/sbin \
/usr/ccs/bin \
. )
else if ($os_name == "AIX") then
#################
# IBM AIX
#
set path = ( /share/builds/components/jdk/1.2.2/AIX \
/usr/ucb/ \
/tools/ns-arch/rs6000_ibm_aix4.1/bin \
/tools/ns-arch/rs6000_ibm_aix3.2.5/bin \
/share/tools/ns/soft/cvs-1.8/run/default/rs6000_ibm_aix3.2.5/bin \
/bin \
/usr/bin \
/usr/ccs/bin \
/usr/sbin \
/usr/local/bin \
/usr/bin/X11 \
/usr/etc \
/etc \
/sbin \
. )
else if ($os_name == "HP-UX") then
#################
# HP UX
#
set path = ( /share/builds/components/jdk/1.1.6/HP-UX \
/usr/bin \
/opt/ansic/bin \
/usr/ccs/bin \
/usr/contrib/bin \
/opt/nettladm/bin \
/opt/graphics/common/bin \
/usr/bin/X11 \
/usr/contrib/bin/X11 \
/opt/upgrade/bin \
/opt/CC/bin \
/opt/aCC/bin \
/opt/langtools/bin \
/opt/imake/bin \
/etc \
/usr/etc \
/usr/local/bin \
/tools/ns/bin \
/tools/contrib/bin \
/usr/sbin \
/usr/local/bin \
/tools/ns/bin \
/tools/contrib/bin \
/usr/sbin \
/usr/include/X11R5 \
. )
else if ($os_name == "SCO_SV") then
#################
# SCO
#
set path = ( /bin \
/usr/bin \
/tools/ns/bin \
/tools/contrib/bin \
/usr/sco/bin \
/usr/bin/X11 \
/usr/local/bin \
. )
else if ($os_name == "FreeBSD") then
#################
# FreeBSD
#
setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/java/bin:/usr/local/bin:/usr/ucb:/usr/ccs/bin:/tools/contrib/bin:/tools/ns/bin:.
else if ($os_name == "OSF1") then
#################
# DEC OSF1
#
set path = ( /share/builds/components/jdk/1.2.2_3/OSF1 \
/tools/ns-arch/alpha_dec_osf4.0/bin \
/tools/ns-arch/soft/cvs-1.8.3/run/default/alpha_dec_osf2.0/bin \
/usr/local-alpha-osf/bin \
/usr3/local/bin \
/usr/local/bin \
/usr/sbin \
/usr/bin \
/bin \
/usr/bin/X11 \
/usr/ucb \
. )
else if ($os_name == "Linux") then
#################
# Linux
#
set path = ( /share/builds/components/jdk/1.2.2/Linux \
$path )
endif
###############################
# Reset any "tracked" aliases #
###############################
rehash

View File

@@ -1,216 +0,0 @@
#!/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 the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Startup file for sh, ksh and bash. It is meant to work on:
#
# SunOS 4.1.3_U1,
# Sun Solaris,
# Sun Solaris on Intel,
# SGI IRIX,
# SGI IRIX64,
# UNIX_SV,
# IBM AIX,
# Hewlett-Packard HP-UX,
# SCO_SV,
# FreeBSD,
# DEC OSF/1,
# Linux,
# and everything else.
#
###############################################
# Set operating system name and release level #
###############################################
OS_NAME=`uname -s`
export OS_NAME
OS_RELEASE=`uname -r`
export OS_RELEASE
##########################################################
# Set environment variables based upon operating system #
##########################################################
case $OS_NAME in
SunOS)
##############################
# Sun
#
case $OS_RELEASE in
4.1.3_U1)
##############################
# SunOS 4.1.3_U1
#
NO_MDUPDATE=1
export NO_MDUPDATE
PATH=/tools/ns/soft/gcc-2.6.3/run/default/sparc_sun_sunos4.1.3_U1/bin:tools/ns/bin:/sbin:/usr/bin:/usr/openwin/bin:/usr/openwin/include:/usr/ucb:/usr/local/bin:/etc:/usr/etc:/usr/etc/install:.
export PATH
;;
*)
################################
# Assume it is Sun Solaris
#
# To build Navigator on Solaris 2.5, I must set the environment
# variable NO_MDUPDATE and use gcc-2.6.3.
NO_MDUPDATE=1
export NO_MDUPDATE
PATH=/share/builds/components/jdk/1.2.2_01/SunOS:/usr/ccs/bin:/usr/opt/bin:/tools/ns/bin:/usr/sbin:/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/openwin/include:/usr/ucb:/usr/opt/java/bin:/usr/local/bin:/etc:/usr/etc:/usr/etc/install:/opt/Acrobat3/bin:.
export PATH
# To get the native Solaris cc
OS_TEST=`uname -m`
export OS_TEST
case $OS_TEST in
i86pc)
PATH=/h/solx86/export/home/opt/SUNWspro/SC3.0.1/bin:$PATH
export PATH
;;
*)
PATH=/tools/ns/workshop/bin:/tools/ns/soft/gcc-2.6.3/run/default/sparc_sun_solaris2.4/bin:$PATH
export PATH
;;
esac
LD_LIBRARY_PATH=/share/builds/components/jdk/1.2.2_01/SunOS/lib/sparc/native_threads
export LD_LIBRARY_PATH
MANPATH=/usr/local/man:/usr/local/lib/mh/man:/usr/local/lib/rcscvs/man:/usr/local/lib/fvwm/man:/usr/local/lib/xscreensaver/man:/usr/share/man:/usr/openwin/man:/usr/opt/man
export MANPATH
# For Purify
PURIFYHOME=/usr/local-sparc-solaris/pure/purify-4.0-solaris2
export PURIFYHOME
PATH=/usr/local-sparc-solaris/pure/purify-4.0-solaris2:$PATH
export PATH
MANPATH=$PURIFYHOME/man:$MANPATH
export MANPATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local-sparc-solaris/pure/purify-4.0-solaris2
export LD_LIBRARY_PATH
PURIFYOPTIONS="-max_threads=1000 -follow-child-processes=yes"
export PURIFYOPTIONS
;;
esac
;;
IRIX | IRIX64)
#############
# SGI Irix
#
PATH=/share/builds/components/jdk/1.2.1/IRIX:/tools/ns/bin:/tools/contrib/bin:/usr/local/bin:/usr/sbin:/usr/bsd:/usr/bin:/bin:/etc:/usr/etc:/usr/bin/X11:.
export PATH
;;
UNIX_SV)
#################
# UNIX_SV
#
PATH=/usr/local/bin:/tools/ns/bin:/bin:/usr/bin:/usr/bin/X11:/X11/bin:/usr/X/bin:/usr/ucb:/usr/sbin:/sbin:/usr/ccs/bin:.
export PATH
;;
AIX)
#################
# IBM AIX
#
PATH=/share/builds/components/jdk/1.2.2/AIX:/usr/ucb/:/tools/ns-arch/rs6000_ibm_aix4.1/bin:/tools/ns-arch/rs6000_ibm_aix3.2.5/bin:/share/tools/ns/soft/cvs-1.8/run/default/rs6000_ibm_aix3.2.5/bin:/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/local/bin:/usr/bin/X11:/usr/etc:/etc:/sbin:.
export PATH
;;
HP-UX)
#################
# HP UX
#
PATH=/share/builds/components/jdk/1.1.6/HP-UX:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/graphics/common/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/upgrade/bin:/opt/CC/bin:/opt/aCC/bin:/opt/langtools/bin:/opt/imake/bin:/etc:/usr/etc:/usr/local/bin:/tools/ns/bin:/tools/contrib/bin:/usr/sbin:/usr/local/bin:/tools/ns/bin:/tools/contrib/bin:/usr/sbin:/usr/include/X11R5:.
export PATH
;;
SCO_SV)
#################
# SCO
#
PATH=/bin:/usr/bin:/tools/ns/bin:/tools/contrib/bin:/usr/sco/bin:/usr/bin/X11:/usr/local/bin:.
export PATH
;;
FreeBSD)
#################
# FreeBSD
#
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/java/bin:/usr/local/bin:/usr/ucb:/usr/ccs/bin:/tools/contrib/bin:/tools/ns/bin:.
export PATH
;;
OSF1)
#################
# DEC OSF1
#
PATH=/share/builds/components/jdk/1.2.2_3/OSF1:/tools/ns-arch/alpha_dec_osf4.0/bin:/tools/ns-arch/soft/cvs-1.8.3/run/default/alpha_dec_osf2.0/bin:/usr/local-alpha-osf/bin:/usr3/local/bin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/usr/bin/X11:/usr/ucb:.
export PATH
;;
Linux)
#################
# Linux
#
PATH=/share/builds/components/jdk/1.2.2/Linux:$PATH
export PATH
;;
esac
###############################
# Reset any "tracked" aliases #
###############################
hash -r

View File

@@ -1,74 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for AIX.
#
include $(CORECONF_SOURCE)/UNIX.mk
#
# There are two implementation strategies available on AIX:
# pthreads, and pthreads-user. The default is pthreads.
# In both strategies, we need to use pthread_user.c, instead of
# aix.c. The fact that aix.c is never used is somewhat strange.
#
# So we need to do the following:
# - Default (PTHREADS_USER not defined in the environment or on
# the command line):
# Set PTHREADS_USER=1, USE_PTHREADS=1
# - PTHREADS_USER=1 set in the environment or on the command line:
# Do nothing.
#
ifeq ($(PTHREADS_USER),1)
USE_PTHREADS = # just to be safe
IMPL_STRATEGY = _PTH_USER
else
USE_PTHREADS = 1
PTHREADS_USER = 1
endif
DEFAULT_COMPILER = xlC_r
CC = xlC_r
CCC = xlC_r
CPU_ARCH = rs6000
RANLIB = ranlib
OS_CFLAGS = -DAIX -DSYSV
ifeq ($(CC),xlC_r)
OS_CFLAGS += -qarch=com
endif
AIX_WRAP = $(DIST)/lib/aixwrap.o
AIX_TMP = $(OBJDIR)/_aix_tmp.o
OS_LIBS += -lsvld

View File

@@ -1,35 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for AIX3.2.5
#
include $(CORECONF_SOURCE)/AIX.mk

View File

@@ -1,46 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for AIX4.1
#
include $(CORECONF_SOURCE)/AIX.mk
AIX_LINK_OPTS += -bnso -berok
#AIX_LINK_OPTS += -bnso -berok -brename:.select,.wrap_select -brename:.poll,.wrap_poll -bI:/usr/lib/syscalls.exp
# The AIX4.1 linker had a bug which always looked for a dynamic library
# with an extension of .a. AIX4.2 fixed this problem
DLL_SUFFIX = a
OS_LIBS += -lsvld

View File

@@ -1,45 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for AIX4.2
#
include $(CORECONF_SOURCE)/AIX.mk
OS_CFLAGS += -DAIX4_2
DSO_LDOPTS = -brtl -bM:SRE -bnoentry $(EXPORT_RULES)
MKSHLIB = $(LD) $(DSO_LDOPTS) -lsvld -L/usr/lpp/xlC/lib -lc -lm
OS_LIBS += -L/usr/lpp/xlC/lib -lc -lm
EXPORT_RULES = -bexpall

View File

@@ -1,52 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for AIX4.3
#
include $(CORECONF_SOURCE)/AIX.mk
ifeq ($(USE_64), 1)
# Next line replaced by generic name handling in arch.mk
# COMPILER_TAG = _64
OS_CFLAGS += -DAIX_64BIT
OBJECT_MODE=64
export OBJECT_MODE
endif
OS_CFLAGS += -DAIX4_3
DSO_LDOPTS = -brtl -bM:SRE -bnoentry $(EXPORT_RULES)
MKSHLIB = $(LD) $(DSO_LDOPTS) -lsvld -L/usr/lpp/xlC/lib -lc -lm
OS_LIBS += -L/usr/lpp/xlC/lib -lc -lm
EXPORT_RULES = -bexpall

View File

@@ -1,83 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Kurt J. Lidl
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for BSD/OS
#
include $(CORECONF_SOURCE)/UNIX.mk
DEFAULT_COMPILER = gcc
CC = gcc
CCC = g++
RANLIB = ranlib
ifeq ($(OS_TEST),i386)
OS_REL_CFLAGS = -D__i386__
CPU_ARCH = x86
else
ifeq ($(OS_TEST),ppc)
OS_REL_CFLAGS = -D__ppc__
CPU_ARCH = ppc
else
ifeq ($(OS_TEST),sparc)
OS_REL_CFLAGS = -D__sparc__
CPU_ARCH = sparc
else
# treat the ultrasparc like a regular sparc, at least for now!
ifeq ($(OS_TEST),sparc_v9)
OS_REL_CFLAGS = -D__sparc__
CPU_ARCH = sparc
endif
endif
endif
endif
DLL_SUFFIX = so
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -DBSD_OS -DBSDI -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
ARCH = bsdos
DSO_CFLAGS = -fPIC -DPIC
DSO_LDOPTS = -shared
DSO_LDFLAGS =
DSO_LDOPTS += -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
ifdef LIBRUNPATH
DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
endif
MKSHLIB = $(CC) $(DSO_LDOPTS)
G++INCLUDES = -I/usr/include/g++
INCLUDES += -I/usr/X11R6/include

View File

@@ -1,79 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for FreeBSD
#
include $(CORECONF_SOURCE)/UNIX.mk
DEFAULT_COMPILER = gcc
CC = gcc
CCC = g++
RANLIB = ranlib
ifeq ($(OS_TEST),alpha)
CPU_ARCH = alpha
else
OS_REL_CFLAGS = -Di386
CPU_ARCH = x86
endif
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
#
# The default implementation strategy for FreeBSD is pthreads.
#
ifndef CLASSIC_NSPR
USE_PTHREADS = 1
DEFINES += -D_THREAD_SAFE
THREAD_FLAG = -pthread
endif
ARCH = freebsd
MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo aout)
ifeq ($(MOZ_OBJFORMAT),elf)
DLL_SUFFIX = so
else
DLL_SUFFIX = so.1.0
endif
DSO_CFLAGS = -fPIC
DSO_LDOPTS = -Bshareable
DSO_LDFLAGS =
MKSHLIB = $(LD) $(DSO_LDOPTS)
G++INCLUDES = -I/usr/include/g++
INCLUDES += -I/usr/X11R6/include

View File

@@ -1,36 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for FreeBSD2
#
include $(CORECONF_SOURCE)/FreeBSD.mk

View File

@@ -1,71 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for HP-UX
#
include $(CORECONF_SOURCE)/UNIX.mk
DEFAULT_COMPILER = cc
CPU_ARCH = hppa
DLL_SUFFIX = sl
CC = cc
CCC = CC
OS_CFLAGS += -Ae $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE
ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH)
USE_PTHREADS = 1
ifeq ($(CLASSIC_NSPR),1)
USE_PTHREADS =
IMPL_STRATEGY = _CLASSIC
endif
ifeq ($(PTHREADS_USER),1)
USE_PTHREADS =
IMPL_STRATEGY = _PTH_USER
endif
endif
ifdef PTHREADS_USER
OS_CFLAGS += -D_POSIX_C_SOURCE=199506L
endif
LDFLAGS = -z -Wl,+s
MKSHLIB = $(LD) $(DSO_LDOPTS)
DSO_LDOPTS = -b +h $(notdir $@)
DSO_LDFLAGS =
# +Z generates position independent code for use in shared libraries.
DSO_CFLAGS = +Z

View File

@@ -1,44 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# On HP-UX 9, the default (and only) implementation strategy is
# classic nspr.
#
ifeq ($(OS_RELEASE),A.09.03)
DEFAULT_IMPL_STRATEGY = _CLASSIC
endif
#
# Config stuff for HP-UXA.09.03
#
include $(CORECONF_SOURCE)/HP-UXA.09.mk

View File

@@ -1,43 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# On HP-UX 9, the default (and only) implementation strategy is
# classic nspr.
#
ifeq ($(OS_RELEASE),A.09.07)
DEFAULT_IMPL_STRATEGY = _CLASSIC
endif
#
# Config stuff for HP-UXA.09.07
#
include $(CORECONF_SOURCE)/HP-UXA.09.mk

View File

@@ -1,38 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for HP-UXA.09
#
include $(CORECONF_SOURCE)/HP-UX.mk
OS_CFLAGS += -DHPUX9

View File

@@ -1,40 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
ifeq ($(OS_RELEASE),B.10.01)
DEFAULT_IMPL_STRATEGY = _CLASSIC
endif
#
# Config stuff for HP-UXB.10.01
#
include $(CORECONF_SOURCE)/HP-UXB.10.mk

View File

@@ -1,50 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# On HP-UX 10.10 and 10.20, the default implementation strategy is
# pthreads (actually DCE threads). Classic nspr is also available.
#
ifeq ($(OS_RELEASE),B.10.10)
DEFAULT_IMPL_STRATEGY = _PTH
endif
#
# Config stuff for HP-UXB.10.10
#
include $(CORECONF_SOURCE)/HP-UXB.10.mk
OS_CFLAGS += -DHPUX10_10
ifeq ($(USE_PTHREADS),1)
OS_CFLAGS += -D_REENTRANT
endif

View File

@@ -1,50 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# On HP-UX 10.10 and 10.20, the default implementation strategy is
# pthreads (actually DCE threads). Classic nspr is also available.
#
ifeq ($(OS_RELEASE),B.10.20)
DEFAULT_IMPL_STRATEGY = _PTH
endif
#
# Config stuff for HP-UXB.10.20
#
include $(CORECONF_SOURCE)/HP-UXB.10.mk
OS_CFLAGS += -DHPUX10_20
ifeq ($(USE_PTHREADS),1)
OS_CFLAGS += -D_REENTRANT
endif

View File

@@ -1,56 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# On HP-UX 10.30 and 11.00, the default implementation strategy is
# pthreads. Classic nspr and pthreads-user are also available.
#
ifeq ($(OS_RELEASE),B.10.30)
DEFAULT_IMPL_STRATEGY = _PTH
endif
#
# Config stuff for HP-UXB.10.30.
#
include $(CORECONF_SOURCE)/HP-UXB.10.mk
OS_CFLAGS += -DHPUX10_30
#
# To use the true pthread (kernel thread) library on 10.30 and
# 11.00, we should define _POSIX_C_SOURCE to be 199506L.
# The _REENTRANT macro is deprecated.
#
ifdef USE_PTHREADS
OS_CFLAGS += -D_POSIX_C_SOURCE=199506L
endif

View File

@@ -1,38 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for HP-UXB.10
#
include $(CORECONF_SOURCE)/HP-UX.mk
OS_CFLAGS += -DHPUX10
OS_LIBS += -lpthread -lm

View File

@@ -1,55 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# On HP-UX 10.30 and 11.00, the default implementation strategy is
# pthreads. Classic nspr and pthreads-user are also available.
#
ifeq ($(OS_RELEASE),B.11.00)
OS_CFLAGS += -DHPUX10
DEFAULT_IMPL_STRATEGY = _PTH
endif
#
# To use the true pthread (kernel thread) library on 10.30 and
# 11.00, we should define _POSIX_C_SOURCE to be 199506L.
# The _REENTRANT macro is deprecated.
#
ifdef USE_PTHREADS
OS_CFLAGS += -D_POSIX_C_SOURCE=199506L
endif
#
# Config stuff for HP-UXB.11.00.
#
include $(CORECONF_SOURCE)/HP-UXB.11.mk

View File

@@ -1,65 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for HP-UXB.11
#
include $(CORECONF_SOURCE)/HP-UX.mk
ifdef USE_LONG_LONGS
USE_HYBRID = 1
endif
ifndef NS_USE_GCC
CCC = /opt/aCC/bin/aCC -ext
ifeq ($(USE_64), 1)
OS_CFLAGS += -Aa +e +DA2.0W +DS2.0 +DChpux
# Next line replaced by generic name handling in arch.mk
# COMPILER_TAG = _64
else
ifdef USE_HYBRID
OS_CFLAGS += -Aa +e +DA2.0 +DS2.0
else
OS_CFLAGS += +DAportable +DS2.0
endif
endif
else
CCC = aCC
endif
OS_CFLAGS += -DHPUX11
OS_LIBS += -lpthread -lm -lrt
#ifeq ($(USE_64), 1)
#OS_LIBS += -ldl
#else
#OS_LIBS += -ldld
#endif
HPUX11 = 1

View File

@@ -1,120 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for IRIX
#
include $(CORECONF_SOURCE)/UNIX.mk
#
# The default implementation strategy for Irix is classic nspr.
#
ifeq ($(USE_PTHREADS),1)
ifeq ($(USE_N32),1)
IMPL_STRATEGY = _n32_PTH
else
IMPL_STRATEGY = _PTH
endif
endif
DEFAULT_COMPILER = cc
ifdef NS_USE_GCC
CC = gcc
AS = $(CC) -x assembler-with-cpp
ODD_CFLAGS = -Wall -Wno-format
ifdef BUILD_OPT
OPTIMIZER = -O6
endif
else
CC = cc
CCC = CC
ODD_CFLAGS = -fullwarn -xansi
ifdef BUILD_OPT
ifeq ($(USE_N32),1)
OPTIMIZER = -O -OPT:Olimit=4000
else
OPTIMIZER = -O -Olimit 4000
endif
endif
# For 6.x machines, include this flag
ifeq (6., $(findstring 6., $(OS_RELEASE)))
ifeq ($(USE_N32),1)
ODD_CFLAGS += -n32 -mips3 -exceptions
else
ODD_CFLAGS += -32 -multigot
endif
else
ODD_CFLAGS += -xgot
endif
ifeq ($(USE_N32),1)
OS_CFLAGS += -dollar
endif
endif
ODD_CFLAGS += -DSVR4 -DIRIX
CPU_ARCH = mips
RANLIB = /bin/true
# For purify
# NOTE: should always define _SGI_MP_SOURCE
NOMD_OS_CFLAGS += $(ODD_CFLAGS) -D_SGI_MP_SOURCE
ifndef NO_MDUPDATE
OS_CFLAGS += $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES)
else
OS_CFLAGS += $(NOMD_OS_CFLAGS)
endif
ifeq ($(USE_N32),1)
SHLIB_LD_OPTS += -n32 -mips3
endif
MKSHLIB += $(LD) $(SHLIB_LD_OPTS) -shared -soname $(@:$(OBJDIR)/%.so=%.so)
DSO_LDOPTS = -elf -shared -all
ifdef DSO_BACKEND
DSO_LDOPTS += -soname $(DSO_NAME)
endif
#
# Revision notes:
#
# In the IRIX compilers prior to version 7.2, -n32 implied -mips3.
# Beginning in the 7.2 compilers, -n32 implies -mips4 when the compiler
# is running on a system with a mips4 CPU (e.g. R8K, R10K).
# We want our code to explicitly be mips3 code, so we now explicitly
# set -mips3 whenever we set -n32.
#

View File

@@ -1,35 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for IRIX 5.2
#
include $(CORECONF_SOURCE)/IRIX5.mk

View File

@@ -1,37 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for IRIX 5.3
#
include $(CORECONF_SOURCE)/IRIX5.mk
OS_CFLAGS += -DIRIX5_3

View File

@@ -1,40 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for IRIX 5
#
include $(CORECONF_SOURCE)/IRIX.mk
ifndef NS_USE_GCC
ODD_CFLAGS += -xgot
endif

View File

@@ -1,43 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for IRIX 6.2
#
# catch unresolved symbols
SHLIB_LD_OPTS += -no_unresolved
include $(CORECONF_SOURCE)/IRIX6.mk
OS_CFLAGS += -DIRIX6_2

View File

@@ -1,42 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for IRIX 6.3
#
# catch unresolved symbols
SHLIB_LD_OPTS += -no_unresolved
include $(CORECONF_SOURCE)/IRIX6.mk
OS_CFLAGS += -DIRIX6_3

View File

@@ -1,42 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for IRIX 6.5
#
# catch unresolved symbols
SHLIB_LD_OPTS += -no_unresolved
include $(CORECONF_SOURCE)/IRIX6.mk
OS_CFLAGS += -DIRIX6_5 -mips3

View File

@@ -1,47 +0,0 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Netscape security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (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 MPL,
# 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 MPL or the
# GPL.
#
# Config stuff for IRIX 6
#
include $(CORECONF_SOURCE)/IRIX.mk
ifndef NS_USE_GCC
ifneq ($(USE_N32),1)
OS_CFLAGS += -32
endif
ODD_CFLAGS += -multigot
endif
ifeq ($(USE_PTHREADS),1)
OS_LIBS += -lpthread
endif

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