Commit Graph
82 Commits
Author SHA1 Message Date
sspitzer@netscape.com 16f4862cf3 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. 1999-12-09 01:49:19 +00:00
waterson@netscape.com 5e3ae85c2b Bug 20714. Get rid of prefs 'special' JSRuntime. Never, EVER cross the beams. r=brendan 1999-12-08 06:49:04 +00:00
alecf@netscape.com 8333229246 add new unicode-friendly pref accessors
(prefs will be stored in UTF8)
preparation for #20405, r=nhotta
1999-12-02 01:18:24 +00:00
dp@netscape.com 32e8dceaa8 - Converting to GenericModule
- Using NS_IMPL_ISUPPORTS1
- Removing a bunch of NS_DEFINE_IID
1999-11-20 07:34:03 +00:00
norris@netscape.com 4a916b0a04 * Modify nsIPref to support security policy work.
r=neeti@netscape.com
* Close security holes by tightening prefs.
r=mstoltz@netscape.com
1999-11-12 02:50:18 +00:00
dmose@mozilla.org 20621227af updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
cls@seawood.org 824ba18df3 Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
tbogard@aol.net d9fee9031e Changed NS_ENSURE_NOT to NS_ENSURE_FALSE to reflect API change. r=hyatt 1999-11-01 21:43:56 +00:00
brendan@mozilla.org 9835f2a8ec (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.
1999-10-31 00:43:30 +00:00
bienvenu@netscape.com 0037c156b0 fix memory leak of default pref dir file spec r=sspitzer 1999-10-20 18:42:30 +00:00
sspitzer@netscape.com 74e760d70f 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.
1999-10-18 22:38:53 +00:00
dp@netscape.com c13195dbd8 Converting to nsIModule as a prelude to fixing memory leaks.
bug# 14034 r=neeti
1999-10-01 06:51:55 +00:00
neeti@netscape.com 6ee9bd8f7f read user.js on startup after prefs.js is read. #12423 1999-09-21 18:59:41 +00:00
neeti@netscape.com 99c16dc95a moved *.js files from components to bin/defaults/pref 1999-09-17 23:27:15 +00:00
warren@netscape.com fa8d3d90df Squelched leak. 1999-09-17 21:02:34 +00:00
chuang@netscape.com 8f202f02ae Fix bug 13992 Personal address book shows up more than one time 1999-09-16 21:12:32 +00:00
chuang@netscape.com 32436c9e95 Fic bug 13992 Personal address book shows up more than one time 1999-09-16 20:48:52 +00:00
ducarroz@netscape.com 7ba52f9c51 Fix for bug 13778, GetFilePrefs now accept also a native path to let users write manually their prefs 1999-09-15 14:51:40 +00:00
neeti@netscape.com 5dd61c5241 implemented ResetPrefs feature 1999-08-28 05:19:29 +00:00
vidur@netscape.com 7a0b66ac6a Added nsIPref::GetPrefType. 1999-08-27 06:05:04 +00:00
neeti@netscape.com 44008e754c Implemented special processing required to handle # in prefs.js,
write out prefs file with #, fixed memory leak bug 10629
1999-08-26 12:54:52 +00:00
brendan@mozilla.org b3c1a9c6ea Massive spankage to capitalize C++ method and attribute name bindings, per
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).
1999-08-25 05:26:25 +00:00
mccabe@netscape.com dc85343e9f 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.
1999-08-21 08:54:47 +00:00
mscott@netscape.com 691291725b Fix for Bug #12151 on behalf of sspitzer. 1999-08-20 22:59:16 +00:00
sspitzer@netscape.com acae6fd0cb remove my old, temporary code to generate a prefs.js file with some default mail-news prefs. we don't need this anymore. fixes #12064 1999-08-19 06:28:39 +00:00
neeti@netscape.com 27d7873ea9 fix for bug 9853 1999-07-30 23:56:51 +00:00
warren@netscape.com f1e50fa3b6 Fix for prefs crash. 1999-07-30 17:51:21 +00:00
warren@netscape.com 2839c1bb21 Fixed leak. 1999-07-30 08:00:45 +00:00
sspitzer@netscape.com 9cd79a08f4 change the nsIDirectoryIterator::Init interface to match the nsDirectoryIterator ctor: two paramenters, a file spec and a bool for resolveSymlinks. pass in PR_TRUE in the pref and component manager code. this fixes the problem where prefs wouldn't get loaded on the mac! 1999-07-27 23:33:54 +00:00
sspitzer@netscape.com 50c3117c01 don't create these values. rely on the default prefs for that. 1999-07-06 22:42:48 +00:00
sspitzer@netscape.com 9294e51802 fix warnings 1999-07-03 00:39:28 +00:00
warren@netscape.com 1496c3eec1 Renamed OnStartBinding/OnStopBinding to OnStartRequest/OnStopRequest (removing the redundant ones from necko). Numerous necko fixes. Necko now using nsIPrompt interface instead of nsINetSupport. 1999-07-01 19:30:20 +00:00
mcafee@netscape.com f4820ebef9 BeOS changes 1999-06-29 11:36:21 +00:00
ducarroz@netscape.com b92b85569f replace pref "mail.identity.<idn>.send_html" by "mail.identity.id1.compose_html". replace pref "mail.identity.<idn>.wrap_column" by "mail.wraplength" 1999-06-25 21:47:43 +00:00
mcmullen@netscape.com ba4a3a376e Removing the use of the convenient factory method for nsIFileSpec, since I'm about to remove that, too. 1999-06-22 03:48:26 +00:00
mcmullen@netscape.com 52713c118b Fixing the broken situation when no prefs file exists. Since there is a problem with stream closing after nsFileStream(nsIFileSpec*), cleaning up this code so that we dont write/read/init/write the prefs. Now we simply init/write. Part of a fix for bug #8237. r=slamm@netscape.com, a=chofmann@netscape.com 1999-06-18 22:11:35 +00:00
putterman@netscape.com b8c808509b Close the filespec's stream so we don't keep appending to pref file. Approved by
mcmullen.
1999-06-15 23:19:58 +00:00
putterman@netscape.com 569e334c83 Fix for 8197. Can't read pref file. Approved by leaf and reviewed by mscott. 1999-06-15 18:39:33 +00:00
mcmullen@netscape.com a7cfda7d10 Alias resolution makes directory iteration tricky: You can't use SetLeafName to convert one sibling to another. Fixing parsing of pref-init files, which broke when I fixed aliases a while back. 1999-06-15 10:42:05 +00:00
mcmullen@netscape.com b256e22855 Fix windows bustage. 1999-06-15 09:35:20 +00:00
mcmullen@netscape.com ddbe336844 Using nsIFileSpec, leaks and stuff now become possible. Fixing one problem... 1999-06-15 09:09:17 +00:00
mcmullen@netscape.com 54fa9c5f59 My fix collided with somebody else's. Fixing it the way I want it. 1999-06-15 06:30:33 +00:00
mcafee@netscape.com cbf1226a49 Moving worked declaration to the beginning of function to get around goto error. Fixes linux bustage. 1999-06-15 06:24:34 +00:00
mcafee@netscape.com 580693c346 Fixing some of the Linux breakage. 1999-06-15 06:22:35 +00:00
mcmullen@netscape.com f2397dd2fe Use nsIFileSpec. Also added ReadUserPrefs() method. 1999-06-15 05:17:55 +00:00
mcmullen@netscape.com 7b26744a22 Fix the typo in the name of unix.js, and fix the asserts. 1999-06-08 23:31:15 +00:00
mcmullen@netscape.com 513a445269 Fix one last case of uint (and I had removed the typedef, breaking photon). Approved leaf. 1999-06-04 17:43:37 +00:00
chuang@netscape.com ad23a25a7a Port PREF_CreateChildList and PREF_NextChild into nsIpref. 1999-06-03 21:25:25 +00:00
mcmullen@netscape.com f94b85e7ab Patches for OpenVMS and conversions to nsQuickSort(). Thanks to Colin Blake and James Lewis Nance (resp) 1999-06-03 18:15:53 +00:00
mcmullen@netscape.com f579b4a135 Implemented XP default prefs 1999-06-03 00:34:20 +00:00