56 Commits

Author SHA1 Message Date
sspitzer%netscape.com
a9ac48d020 fix for 15483. return an error when we are about to return the default value for a pref that hasn't been initialized. r=putterman. mail sent to netscape.public.mozilla.xpfe and to various XUL / JS authors who may be affected by this change.
git-svn-id: svn://10.0.0.236/trunk@55786 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-09 01:49:19 +00:00
briano%netscape.com
46da1618bb Build fix. This is a C file, so C++ comments are actually _wrong_ on platforms using competent native compilers.
git-svn-id: svn://10.0.0.236/trunk@55784 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-09 01:31:23 +00:00
waterson%netscape.com
e4df3888e3 Bug 20714. Get rid of prefs 'special' JSRuntime. Never, EVER cross the beams. r=brendan
git-svn-id: svn://10.0.0.236/trunk@55742 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 06:49:04 +00:00
sspitzer%netscape.com
ff9a5de363 really fix the warning this time.
git-svn-id: svn://10.0.0.236/trunk@53401 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 03:49:30 +00:00
sspitzer%netscape.com
f8f296d9bd fix warning by casting. r=slamm
git-svn-id: svn://10.0.0.236/trunk@53395 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 01:59:19 +00:00
slamm%netscape.com
65de125a35 Fix build warnings. r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@53391 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 01:36:34 +00:00
cls%seawood.org
99804f7160 Replaced NO_SECURITY ifdef with MOZ_SECURITY one. This causes pref_VerifyLockFile to always return PR_TRUE rather than linking against the dummy secfree library. This replacement also removed the last dependency upon that dummy library so it will no longer be built (next patch).
git-svn-id: svn://10.0.0.236/trunk@53021 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-09 23:13:53 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
brendan%mozilla.org
f980be0221 (13163, r=alecf, scc, waterson, others; names available on request)
- Fix most of bug 13163 (see TODO for rest).  This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks. 

- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp.  These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that. 

- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString.  Also changed various nsresult vars to be named rv.  Also restored brace/style conformity to nsJSProtocolHandler.cpp. 

- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject. 

- Lots of nsCOMPtr uses added.  I'm using one for mNameSpaceManager.  Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak).  These two managers should be moved to the window object -- TODO item below. 

- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver. 

- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated.  This meant factoring nsJSUtils.cpp code. 

- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace. 

- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.


git-svn-id: svn://10.0.0.236/trunk@52347 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 00:43:30 +00:00
sspitzer%netscape.com
01d0e55136 fix for #16259, r=alecf. use the right line endings on the mac. now, instead of putting the LINEBREAK in every string, and then
writing every string to the stream, we do the line ending when we write to the stream.


git-svn-id: svn://10.0.0.236/trunk@51046 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:38:53 +00:00
sspitzer%netscape.com
a874ecd7a2 got the logic backwards...
git-svn-id: svn://10.0.0.236/trunk@49177 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:20:48 +00:00
sspitzer%netscape.com
47900cdcad fix crasher caused by calling ResetPrefs() more than once, which should be legal.
git-svn-id: svn://10.0.0.236/trunk@49175 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:08:03 +00:00
warren%netscape.com
64ef319f12 freed gSavedLine in prefapi
git-svn-id: svn://10.0.0.236/trunk@48360 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:52:48 +00:00
beard%netscape.com
56919e3f8c Fixed a memory corrupting bug in PREF_copyTree. strtok would continue scanning off the end of the current string, modifying subsequent non-string blocks, if they contained a ';' before a '\0' byte.
git-svn-id: svn://10.0.0.236/trunk@48294 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:08:48 +00:00
briano%netscape.com
6f1f615870 Replaced the C++ comments with C comments, since this is a C file after all....
git-svn-id: svn://10.0.0.236/trunk@47996 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:13:53 +00:00
alecf%netscape.com
6dc9a95edb remove assertions (and put comments for future NS_ASSERTIONs for when I finally change this to a C++ file)
fixes #13734


git-svn-id: svn://10.0.0.236/trunk@47949 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:35:34 +00:00
chuang%netscape.com
6001a71296 Fix bug 13992 Personal address book shows up more than one time
git-svn-id: svn://10.0.0.236/trunk@47842 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:12:32 +00:00
sspitzer%netscape.com
24840c5280 fix warnings.
git-svn-id: svn://10.0.0.236/trunk@47110 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 08:12:31 +00:00
neeti%netscape.com
09e423faf4 implemented ResetPrefs feature
git-svn-id: svn://10.0.0.236/trunk@44980 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-28 05:19:29 +00:00
brendan%mozilla.org
d87f3f7b04 Massive spankage to capitalize C++ method and attribute name bindings, per
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).


git-svn-id: svn://10.0.0.236/trunk@44456 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 05:26:25 +00:00
mcafee%netscape.com
c8b6811625 BeOS changes
git-svn-id: svn://10.0.0.236/trunk@37406 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 11:36:21 +00:00
briano%netscape.com
047aef7665 Fixed the Unix builds. DON'T USE C++ COMMENTS IN C FILES.
git-svn-id: svn://10.0.0.236/trunk@33629 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 22:30:39 +00:00
sspitzer%netscape.com
862fc98636 cast to remove compiler warnings. use PL_strlen() instead of strlen()
rename index to indx to prevent shadow warnings on Linux.


git-svn-id: svn://10.0.0.236/trunk@33566 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:15:38 +00:00
mcmullen%netscape.com
40e8a964a4 Patches for OpenVMS and conversions to nsQuickSort(). Thanks to Colin Blake and James Lewis Nance (resp)
git-svn-id: svn://10.0.0.236/trunk@33533 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:15:53 +00:00
mcmullen%netscape.com
79b29b038e Implemented XP default prefs
git-svn-id: svn://10.0.0.236/trunk@33443 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:34:20 +00:00
mcmullen%netscape.com
58f92b73a7 Removed some "obsolete" functions.
git-svn-id: svn://10.0.0.236/trunk@33441 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:30:21 +00:00
briano%netscape.com
4b509245d2 Fix for QNX.
git-svn-id: svn://10.0.0.236/trunk@31398 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 03:13:14 +00:00
mcmullen%netscape.com
66296c0260 Adding default preference javascript files to the macintosh build. Also, fixing a line termination bug (#5508)
git-svn-id: svn://10.0.0.236/trunk@30146 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:12:37 +00:00
mcmullen%netscape.com
88d3f082ac Fix unix warning about sscanf
git-svn-id: svn://10.0.0.236/trunk@28564 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 22:55:37 +00:00
mcmullen%netscape.com
1cb64396ba Fix PREF_Cleanup so that it can be called twice with impunity.
git-svn-id: svn://10.0.0.236/trunk@28557 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 22:17:30 +00:00
mcmullen%netscape.com
1f9e08b3dd Prefs API changed to use filespecs instead of string paths. Added Get/SetFilePref. Cleaned up the API so that StartUp() does not need to be called.
git-svn-id: svn://10.0.0.236/trunk@28550 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 22:04:35 +00:00
alecf%netscape.com
628b6f2598 ugh, back out this fix until mac links against raptorbase
git-svn-id: svn://10.0.0.236/trunk@27534 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 03:18:43 +00:00
alecf%netscape.com
0b9ba82c8a make libpref use new nsQuickSort
git-svn-id: svn://10.0.0.236/trunk@27525 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 02:54:54 +00:00
mcmullen%netscape.com
486dad2cd2 Fix an erroneous assert.
git-svn-id: svn://10.0.0.236/trunk@26349 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 23:09:13 +00:00
jdunn%netscape.com
c04768533d fix order of arguments for fputs
git-svn-id: svn://10.0.0.236/trunk@26303 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 18:11:45 +00:00
mcmullen%netscape.com
5fe5245e26 Fix AIX bustage.
git-svn-id: svn://10.0.0.236/trunk@26111 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 23:46:20 +00:00
mcmullen%netscape.com
ac2144507d I changed prefapi.h to use prtypes instead of the obsolete XP_ things.
git-svn-id: svn://10.0.0.236/trunk@26079 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 20:39:17 +00:00
hshaw%netscape.com
4c5667fdce Changes to call Startup() from main() so we don't have thread problems in javascript
git-svn-id: svn://10.0.0.236/trunk@24228 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-16 22:03:03 +00:00
hshaw%netscape.com
7236a2582a To reduce confusion, read 'Netscape Preferences' for Mac, M3 bug #2343, approved dp
git-svn-id: svn://10.0.0.236/trunk@24213 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-16 18:31:40 +00:00
hshaw%netscape.com
c6b6bb0e47 To reduce confusion, read preferences.js for UNIX, prefs.js for Win/Mac, M3 bug #2343, approved dp
git-svn-id: svn://10.0.0.236/trunk@24210 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-16 17:59:11 +00:00
hshaw%netscape.com
6c9b13a66e use default prefs.js if someone cause PREF_ API before initializing it
git-svn-id: svn://10.0.0.236/trunk@24179 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-15 21:38:06 +00:00
ramiro%netscape.com
9407081b70 Change MOZILLA_HOME to MOZILLA_FIVE_HOME so that we dont fight Communicator
4.x installations.


git-svn-id: svn://10.0.0.236/trunk@23728 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-11 20:00:57 +00:00
hshaw%netscape.com
3a95a0679c Fix for bug #3130 , thanks mcafee
git-svn-id: svn://10.0.0.236/trunk@23550 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 20:02:22 +00:00
alecf%netscape.com
f79fad04dc eliminate netlib dependancy by removing call to FE_Alert
git-svn-id: svn://10.0.0.236/trunk@22951 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 21:33:02 +00:00
alecf%netscape.com
8720c2952d fix HPUX bustage - now that we're using PR_FREEIF, you can't put (void*)
casts inside it.


git-svn-id: svn://10.0.0.236/trunk@22153 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 17:36:57 +00:00
hshaw%netscape.com
31cbcecdc1 Remove C++ comments from previous checkin
git-svn-id: svn://10.0.0.236/trunk@17865 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 20:08:54 +00:00
mcmullen%netscape.com
629f7e6755 These include fixes of crashing bugs that were in the Nova tree and made since the last merge point (April 98), along with some bug prevention efforts, such as unobfuscating the return types. For example, some JSBools were being simply cast to a return value of "int", reversing their sense (success = JS_TRUE = 1 != 0)! In a world where everybody returns "int", the hidden bug is king.
git-svn-id: svn://10.0.0.236/trunk@17640 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-13 02:32:09 +00:00
beard%netscape.com
810f6cfdf2 Mac shared library migration.
git-svn-id: svn://10.0.0.236/trunk@15474 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 22:15:00 +00:00
leaf%mozilla.org
281d42392a Landing the XPCOM_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@14474 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:29:18 +00:00
cyeh%netscape.com
2ddc86aa2f remove NSPR20 and flip logic for NSPR 1.0 compatibility
git-svn-id: svn://10.0.0.236/trunk@13110 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-19 20:16:31 +00:00