Commit Graph

1191 Commits

Author SHA1 Message Date
darin%meer.net
aa4dd41e45 fixes bug 193917 "incorporate changes from bz's comments in bug 176919" r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@147780 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 01:54:07 +00:00
darin%meer.net
bc1bb52b19 fixes bug 210125 "need to be able to AsyncWait for closure only" r=dougt sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@147597 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 01:46:31 +00:00
brendan%mozilla.org
ce7e98de2c Follow the modeline, please.
git-svn-id: svn://10.0.0.236/trunk@147439 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-29 18:15:52 +00:00
cbiesinger%web.de
8dd5a08649 Bug 220406 nsLocalFileWin::Launch should return more specific errors
convert the specific return values to nsresult-errorcodes.

r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@147361 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 14:37:16 +00:00
cbiesinger%web.de
f06e5ad44e bug 220257. treat .hta files as executables
r=darin sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@147328 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-26 12:56:49 +00:00
bsmedberg%covad.net
1b71e7ac3e Bug 179834. Separate application resources and GRE resources. r=darin sr=dougt
git-svn-id: svn://10.0.0.236/trunk@146844 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-13 17:55:56 +00:00
bryner%brianryner.com
c81aa21722 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146626 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-08 00:31:50 +00:00
darin%meer.net
d87c18324b fixes bug 210588 "Cancelling download of .lnk file deletes target of .lnk file" r=dougt sr=bryner a=asa
git-svn-id: svn://10.0.0.236/trunk@146303 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-25 18:28:10 +00:00
brendan%mozilla.org
95220b5330 Add shared DHashTableOps for [const] char *key use-cases, clean up dhash API abusages (214839, r=dougt, sr=dbaron).
git-svn-id: svn://10.0.0.236/trunk@145624 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 20:09:21 +00:00
jshin%mailaps.org
8058584911 bug 206811 : xp_iconv should use UTF-16, if available, instead of UCS-2 (r=drepper, sr=darin)
git-svn-id: svn://10.0.0.236/trunk@145370 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 05:58:28 +00:00
mkaply%us.ibm.com
64242301f9 #214152
r=pedemont, sr=bz
Handle unicode conversion failure better


git-svn-id: svn://10.0.0.236/trunk@145282 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:02:45 +00:00
mkaply%us.ibm.com
722fa9f7c0 Stray character snuck in there
git-svn-id: svn://10.0.0.236/trunk@145095 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-23 01:36:17 +00:00
mkaply%us.ibm.com
bd3b62e584 rs=leaf
Remove XP_OS2_VACPP from the tree


git-svn-id: svn://10.0.0.236/trunk@145075 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 18:38:01 +00:00
dwitte%stanford.edu
8480c7c032 Bug 122892: nsLocalFile::Clone should preserve stat info.
make nsLocalFile* impls use copy constructors for their nsIFile::Clone methods.
This avoids unnecessary |stat| calls inherent in using NS_NewNativeLocalFile.

b=122892, r=dougt, sr=darin, with many thanks to biesi & mkaply for testing on other
plats.


git-svn-id: svn://10.0.0.236/trunk@144961 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 22:14:16 +00:00
jaggernaut%netscape.com
36ab3d76a9 Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144817 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:37:39 +00:00
dbaron%dbaron.org
a12c5d773f Fix DEBUG bustage. b=212109
git-svn-id: svn://10.0.0.236/trunk@144766 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-12 01:33:30 +00:00
bzbarsky%mit.edu
bbca80ba2a Update the string stream interface a bit and simplify the implementation a
lot. Bug 212109, r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@144754 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 23:10:27 +00:00
seawood%netscape.com
535050c052 Split private xpcom defines into separate header.
Bug #210409 r=dougt


git-svn-id: svn://10.0.0.236/trunk@144444 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 20:55:23 +00:00
seawood%netscape.com
18593c4931 Make user-specific application directory name configurable using --with-user-appdir.
Thanks to Ben Bucksch <ben.bucksch@beonex.com> for the original patch.
Bug #58327 r=dougt


git-svn-id: svn://10.0.0.236/trunk@144350 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 18:32:49 +00:00
bsmedberg%covad.net
03384bfad0 Bug 210337 - Spring cleaning of unused XPCOM code and callers r/sr=alecf/bz
git-svn-id: svn://10.0.0.236/trunk@144063 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 20:31:43 +00:00
jshin%mailaps.org
bf657d4d62 bug 183156 : replace UCS2 in function/method names with UTF16 and update the
document accordingly. r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@144046 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 04:30:57 +00:00
caillon%returnzero.com
1c1e0c7bb4 Bug 209852. Remove |dont_QueryInterface|.
r=dbaron, sr=jag


git-svn-id: svn://10.0.0.236/trunk@144011 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 00:15:41 +00:00
dougt%meer.net
982465fbc0 Cleans up nsLocalFile0S2 a bit. Removes code that checks for symlinks. r=r=mkaply, sr=blizzard, bug=209963
git-svn-id: svn://10.0.0.236/trunk@143951 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 21:53:26 +00:00
timeless%mozdev.org
f1f6532817 Bug 187031 [nsLocalFileWin] nsLocalFile::Remove returns os remove values (-1) as nsresults
r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@143899 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 23:19:11 +00:00
seawood%netscape.com
06e1507b0c Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev
git-svn-id: svn://10.0.0.236/trunk@143527 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 21:18:27 +00:00
dougt%meer.net
715e769eae Adding comments to nsDirectoryServiceDefs.
git-svn-id: svn://10.0.0.236/trunk@143521 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 20:09:25 +00:00
jshin%mailaps.org
86aebc2436 Not a bug. Removing 4 spurrious lines (no effect on the binary generated)
sneaked in the previous commit (for bug 206811) by mistake.


git-svn-id: svn://10.0.0.236/trunk@143280 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-04 06:34:38 +00:00
brendan%mozilla.org
dade2c075c Fold premature entry decl initialized by gratuitous ?: expr into dependent if/else in nsFastLoadFileReader::ReadObject.
git-svn-id: svn://10.0.0.236/trunk@143277 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-04 06:08:15 +00:00
jshin%mailaps.org
83c3bad1d3 bug 206811. use UTF-16 instead of UCS-2 for nsNativeCharsetutils on Unix.
Also use iconv(3) on Linux (r=smontagu, sr=alecf)


git-svn-id: svn://10.0.0.236/trunk@143230 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-03 12:37:44 +00:00
timeless%mozdev.org
ab94741dc8 Bug 207081 only create profile window comes up on start attempt
GetSpecialSystemDirectory used 'break;' instead of returning NS_OK on OS/2
and assigned its rv to an undeclared variable instead of returninng on Mac Classic.
removed tabs.
r=mkaply a=mkaply


git-svn-id: svn://10.0.0.236/trunk@142944 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-27 14:01:32 +00:00
timeless%mozdev.org
dcd7af88d8 Bug 205609 control reaches end of non-void function GetSpecialSystemDirectory and lots of unhandled enumeration values
r=dougt


git-svn-id: svn://10.0.0.236/trunk@142899 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-25 07:11:51 +00:00
jaggernaut%netscape.com
8a2f56d210 Bug 206943: Slightly optimize NS_GetSpecialDirectory. r=dougt, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@142880 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-24 03:11:36 +00:00
dwitte%stanford.edu
dc7e857400 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.


git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:34:47 +00:00
dbaron%dbaron.org
1b8f7f8cfb Add StringBeginsWith, StringEndsWith, and UTF8ToNewUnicode. Move UTF8 handling utilities to separate file. b=131293 r=jst sr=alecf,jag a=asa b=131293
git-svn-id: svn://10.0.0.236/trunk@142727 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-21 22:20:27 +00:00
sgehani%netscape.com
007624fc6a Make GetFSRefInternal assume NS_ERROR_FILE_NOT_FOUND when CFURLGetFSRef
returns false.
b=202772; r=ssu, ccarlen; sr=sfraser; a=asa


git-svn-id: svn://10.0.0.236/trunk@142674 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-21 00:53:36 +00:00
darin%netscape.com
4fec9c864a fixes bug 162025 "UNC Based Profiles don't work" r=dougt sr=dbaron a=asa
git-svn-id: svn://10.0.0.236/trunk@142454 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-14 21:56:49 +00:00
jrgm%netscape.com
1339b196cd don't check for SHGetSpecialFolderPathA in shfolder.dll (cause it won't be there) and load the 'ansi' proc name from shell32.dll, bug 204246, r+sr=dougt, a=asa
git-svn-id: svn://10.0.0.236/trunk@142229 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-08 20:41:20 +00:00
ccarlen%netscape.com
a2f166be98 Profile sharing - changes to profile dirserviceprovider, a component to control whether sharing is enabled. bug=202474, rs=dougt/sr=darin/a=asa
git-svn-id: svn://10.0.0.236/trunk@142041 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-02 03:59:23 +00:00
ssu%netscape.com
f666231373 fixing bug 125106 - general nsIFile converter change hosed XPInstall intl filenames. r=dveditz, sr=alecf, a=sspitzer
git-svn-id: svn://10.0.0.236/trunk@141964 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-30 06:49:04 +00:00
brendan%mozilla.org
5d27920d6e Remove copy-pasted scope qualifier for ReadSegments decl, jdunn says HP aCC barfs on it (a=leaf).
git-svn-id: svn://10.0.0.236/trunk@141697 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-23 16:48:08 +00:00
gordon%netscape.com
f44fb0fa18 Fix bug 105344. r=saari, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@141674 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-23 05:05:16 +00:00
ccarlen%netscape.com
c64a019647 Bug 202798 - Save page as fails when downloads.rdf does not exist (new Profile) r=varga/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@141531 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 21:43:38 +00:00
seawood%netscape.com
3b350b75cd Remove global _POSIX_SOURCE & _SVID_SOURCE defines for linux.
Bug #202510 r=darin


git-svn-id: svn://10.0.0.236/trunk@141408 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 20:14:17 +00:00
ccarlen%netscape.com
8a64538c4b Bug 164396 - Change internal representation of file from FSRef to CFURL, reducing conversions between path and FSRef and fixing other bugs. 2nd checkin of this after testing on other Tinderboxen showed Ts improvement. r=sdagley/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@141381 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 13:50:38 +00:00
dougt%netscape.com
1692de2512 using strnicmp instead. r=darin
git-svn-id: svn://10.0.0.236/trunk@141362 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 05:43:41 +00:00
mkaply%us.ibm.com
1527023f41 202480 for OS/2
git-svn-id: svn://10.0.0.236/trunk@141357 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 02:22:17 +00:00
dougt%netscape.com
ea5682a29c bug 202480. Windows doesn't care about case. ::Contains must not either. r=darin
git-svn-id: svn://10.0.0.236/trunk@141349 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 00:48:38 +00:00
alecf%netscape.com
b514d56ca5 fix for bug 199170 - more static atom work in xpcom, chrome registry, rdf, and profile dir service provider.. sr=bryner, r=ccarlen
git-svn-id: svn://10.0.0.236/trunk@141199 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 22:19:01 +00:00
darin%netscape.com
6fb2f64a45 fixes bug 201574 "Many Unaligned access messages when reading XUL.mfasl" r/sr=alecf,brendan
git-svn-id: svn://10.0.0.236/trunk@141189 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 18:17:54 +00:00
brendan%mozilla.org
271e886eb3 Reduce seeks outside the FastLoad file's underlying stream buffer (195010,
r=ben, sr=bryner).

- Pass null scope objects into nsIScriptContext::Compile{EventHandler,Script}
when precompiling for brutal sharing.  The JS engine does not need a non-null
object parameter for static scope.  That parameter can be non-null only if it
helps the compiler "pre-bind" functions to the same scope object that they'll
be parented by when executing, but with brutal sharing, functions are
precompiled once and executed against many different scope objects.

- A problem in XUL FastLoad was that it would serialize master .xul document
out-of-line scripts (those included via script src= from non-overlay, "master"
.xul docs) far from the place in the FastLoad file where XUL prototype script
info was serialized for the <script src=> tag itself.  I fixed that so that,
unless the out-of-line script was previously serialized (by a different src=
reference from another .xul file), the OOL script data immediately follows the
proto-script info in the FastLoad file.

This required adding a SerializeOutOfLine method to nsXULPrototypeScript, which
restores symmetry by matching the existing DeserializeOutOfLine(Script) (note:
I dropped the redundant "Script" from the end of the latter method's name.  We
need SerializeOutOfLine to handle overlay OOL scripts.	They are serialized by
nsXULDocument::OnStreamComplete, because that code knows the difference between
an overlay and a master doc.  This removes all trace of FastLoad writing from
nsXULPrototypeScript::Compile -- FastLoad stuff didn't belong there, not only
because we now want to write master OOL scripts later, when walking the master
XUL prototype doc's element tree, but also for modularity reasons.  The caller
knows about FastLoad, nsXULPrototypeScript::Compile does just what its name
implies.

There are 132 seeks with the patch, only 49 of which dump the underlying file
stream's buffer, vs. 133 seeks without the patch, 87 of which dump the buffer.

- Nit-picked some comments to fit in 80 columns, and made other cosmetic fixes.

- Implicated the nsXULDocument::mIsWritingFastLoad flag from the useXULCache
"is the XUL cache enabled?" flag, so other places that test mIsWritingFastLoad
don't have to query whether the cache is enabled.

- Added METERING synchronous meter-dumping to /tmp/bufstats, only ifdef
DEBUG_brendan, in netwerk/base/src/nsBufferedStreams.cpp.

- Added the deferred seek optimization from the first patch in bug 195010 to
nsFastLoadFile.cpp.

- Fixed nsFastLoadFileReader so it overrides readSegments as well as read.
This catches up with the interface extension made to nsIInputStream to add
readSegments.  The nsFastLoadFileReader extends nsBinaryInputStream, which is
a concrete class, and overrides Read in order to snoop on *all* bytes read.
It does this in order to demultiplex documents interleaved when the FastLoad
file was written.

But since the readSegments move into nsIInputStream.idl, certain primitives
in nsBinaryStream.cpp, e.g., nsBinaryInputStream::ReadCString, have used
ReadSegments, not Read, to consume parts of the underlying stream (to read
the C string's chars, in that example), and the FastLoad file implementation
has not accounted for those bytes.

- Added a new method to nsIFastLoadFileControl and its impls: hasMuxedDocument.
 This is needed when serializing master XUL doc OOL scripts, because we must
not serialize twice, and any OOL script that other XUL docs can include via
script src= could already be in the FastLoad mux.

/be


git-svn-id: svn://10.0.0.236/trunk@141047 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 01:34:11 +00:00