108 Commits

Author SHA1 Message Date
sspitzer%netscape.com
84ffeba8a9 fix for #37239. fix OS/2 build problems. patch from snizinsk@us.ibm.com
git-svn-id: svn://10.0.0.236/trunk@68962 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-10 01:57:35 +00:00
alecf%netscape.com
279b2e95ed remove the last of the extern symbols!
git-svn-id: svn://10.0.0.236/trunk@68822 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 06:07:02 +00:00
alecf%netscape.com
7a38d3a548 whack prefs with a medium sized-stick.
also fix #33668, allow localized prefs to come from stringbundles


git-svn-id: svn://10.0.0.236/trunk@68298 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 00:22:20 +00:00
mstoltz%netscape.com
1aebd93c62 Fixes for 27010, 32878, and 32948.
git-svn-id: svn://10.0.0.236/trunk@67181 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:50:07 +00:00
mstoltz%netscape.com
a8b220b370 Backing out changes until I can figure out why it's crashing on startup.
git-svn-id: svn://10.0.0.236/trunk@66937 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 21:25:39 +00:00
mstoltz%netscape.com
85e8a5b8e2 Fixes for bugs 27010, 32878, 32948.
git-svn-id: svn://10.0.0.236/trunk@66935 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 20:30:29 +00:00
mstoltz%netscape.com
e8a0e8479c Made prefapi.h private and removed all #includes of it outside of libpref. r=norris
git-svn-id: svn://10.0.0.236/trunk@66060 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 03:43:09 +00:00
alecf%netscape.com
2631283d4e fix for #34199 r=sspitzer a=leaf
when enumerating preferences, build up the list before the callback is called, instead of while the hash table is being enumerated


git-svn-id: svn://10.0.0.236/trunk@65384 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-05 23:09:04 +00:00
mkaply%us.ibm.com
d235fa9b63 # 34082
r= alecf@netscape.com
OS/2 Visual Age build - Adding PR_CALLBACK to some functoins for linkage


git-svn-id: svn://10.0.0.236/trunk@65295 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-05 02:35:25 +00:00
neeti%netscape.com
ba594f9c4e bug 12423,Read user.js on startup after prefs.js is read.r=alecf
git-svn-id: svn://10.0.0.236/trunk@64567 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 04:25:07 +00:00
alecf%netscape.com
b2d837f227 further fix prefs saving problem by not recording error when ANY prefs file failes to open, just when evaluation fails
git-svn-id: svn://10.0.0.236/trunk@64479 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 10:07:39 +00:00
alecf%netscape.com
de0f969f17 fix my stupid redness
git-svn-id: svn://10.0.0.236/trunk@64418 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 01:09:56 +00:00
alecf%netscape.com
bdf03fd66e fix regression #33625 - back out removal of Exists() for now (eventually there will be a better fix here)
git-svn-id: svn://10.0.0.236/trunk@64409 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 00:39:47 +00:00
alecf%netscape.com
cfd3e66915 trim down nsIPref and begin to cleanup nsIPref
- remove extra calls to nsFileSpec::Exists()
- get rid of PREF_SUPPORT_OLD_PATH_STRINGS
- don't expose nearly so much from the nsIPref interface
r=neeti


git-svn-id: svn://10.0.0.236/trunk@64322 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 04:50:47 +00:00
warren%netscape.com
d100457780 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar
git-svn-id: svn://10.0.0.236/trunk@62243 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:26:01 +00:00
mkaply%us.ibm.com
18cabebf7f # 25555
r= sspitzer@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef


git-svn-id: svn://10.0.0.236/trunk@61786 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-28 15:07:12 +00:00
sspitzer%netscape.com
1e438624c6 use and XPIDLCString and prevent a leak. r=alecf
git-svn-id: svn://10.0.0.236/trunk@59879 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 08:24:07 +00:00
sspitzer%netscape.com
5fc9fc968f make it so when we read in a prefs file, we call any callbacks.
we need this because if you go through the profile manager, and you have
pref call backs set up (like disabling the xul cache), the call backs won't
fire when you pick a profile.  r=alecf


git-svn-id: svn://10.0.0.236/trunk@59872 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 07:17:44 +00:00
sspitzer%netscape.com
c15c3507a0 turning off my debug printfs.
git-svn-id: svn://10.0.0.236/trunk@58540 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 03:19:53 +00:00
alecf%netscape.com
41d8948966 fix for #21425
r=dp
add Get/SetDefaultUnicharPref() to API


git-svn-id: svn://10.0.0.236/trunk@58130 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 22:02:24 +00:00
sfraser%netscape.com
963a9e2635 Fix for bug 24232 -- ensure that we resolve aliases when loading defaulprefs files. r=alecf
git-svn-id: svn://10.0.0.236/trunk@58122 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 21:48:16 +00:00
sford3%swbell.net
09c9265da7 Replace instances of nsTextFormater with nsTextFormatter, r=jst@citec.fi
git-svn-id: svn://10.0.0.236/trunk@58041 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-17 22:32:13 +00:00
sspitzer%netscape.com
78531ab39a fix for #23573
sort the non-special default js files in reverse alphabetical order before parsing them.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@57480 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 00:53:38 +00:00
pp%ludusdesign.com
b5787cf895 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com


git-svn-id: svn://10.0.0.236/trunk@57423 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 20:49:15 +00:00
mcafee%netscape.com
a8aa37d870 DEBUG_mcafee debug info. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@57158 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 03:28:04 +00:00
mcafee%netscape.com
c42b9e42a4 ifdef-ing out LI (Location Independence) code that's not being used. There is intent to re-implement this later, hence the ifdef and not code-removal. r=alecf,neeti
git-svn-id: svn://10.0.0.236/trunk@57089 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-07 08:29:50 +00:00
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
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
alecf%netscape.com
5eb28b95bc add new unicode-friendly pref accessors
(prefs will be stored in UTF8)
preparation for #20405, r=nhotta


git-svn-id: svn://10.0.0.236/trunk@54988 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 01:18:24 +00:00
dp%netscape.com
fbd0e803f5 - Converting to GenericModule
- Using NS_IMPL_ISUPPORTS1
- Removing a bunch of NS_DEFINE_IID


git-svn-id: svn://10.0.0.236/trunk@54056 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 07:34:03 +00:00
norris%netscape.com
01fb538344 * Modify nsIPref to support security policy work.
r=neeti@netscape.com
* Close security holes by tightening prefs.
r=mstoltz@netscape.com


git-svn-id: svn://10.0.0.236/trunk@53308 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 02:50:18 +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
cls%seawood.org
3e1a9ca95a Removed unused NECKO ifdefs.
a=leaf


git-svn-id: svn://10.0.0.236/trunk@52607 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 23:34:03 +00:00
tbogard%aol.net
ae3cd9e2ce Changed NS_ENSURE_NOT to NS_ENSURE_FALSE to reflect API change. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@52417 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:43:56 +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
bienvenu%netscape.com
b205486bc1 fix memory leak of default pref dir file spec r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@51267 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 18:42: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
dp%netscape.com
4d1fcf6b4a Converting to nsIModule as a prelude to fixing memory leaks.
bug# 14034 r=neeti


git-svn-id: svn://10.0.0.236/trunk@49551 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 06:51:55 +00:00
neeti%netscape.com
59011d5197 read user.js on startup after prefs.js is read. #12423
git-svn-id: svn://10.0.0.236/trunk@48587 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 18:59:41 +00:00
neeti%netscape.com
4ab75d8495 moved *.js files from components to bin/defaults/pref
git-svn-id: svn://10.0.0.236/trunk@48074 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:27:15 +00:00
warren%netscape.com
27b1b788a1 Squelched leak.
git-svn-id: svn://10.0.0.236/trunk@48029 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:02: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
chuang%netscape.com
1ebdb68663 Fic bug 13992 Personal address book shows up more than one time
git-svn-id: svn://10.0.0.236/trunk@47831 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:48:52 +00:00
ducarroz%netscape.com
34ca87f82b Fix for bug 13778, GetFilePrefs now accept also a native path to let users write manually their prefs
git-svn-id: svn://10.0.0.236/trunk@47587 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 14:51:40 +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
vidur%netscape.com
cb989d08ff Added nsIPref::GetPrefType.
git-svn-id: svn://10.0.0.236/trunk@44756 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 06:05:04 +00:00
neeti%netscape.com
01660f0a39 Implemented special processing required to handle # in prefs.js,
write out prefs file with #, fixed memory leak bug 10629


git-svn-id: svn://10.0.0.236/trunk@44668 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-26 12:54:52 +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
mccabe%netscape.com
91543218bc First cut at removing manual declaration of interface methods in implementation classes and replacing with xpidl-generated NS_DECL_NSIFOO macro.
Hopefully this'll help turn the copy-n-paste tide towards using this macro.


git-svn-id: svn://10.0.0.236/trunk@43988 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 08:54:47 +00:00
mscott%netscape.com
0354de99f5 Fix for Bug #12151 on behalf of sspitzer.
git-svn-id: svn://10.0.0.236/trunk@43882 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:59:16 +00:00