89 Commits

Author SHA1 Message Date
bnesse%netscape.com
ed8612765b Added sanity check to insure that a valid JSRuntime was found before passing it to JS_NewContext. Bug 73491. r=mcafee,timeless. sr=alefc.
git-svn-id: svn://10.0.0.236/trunk@95325 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 22:17:03 +00:00
dbaron%fas.harvard.edu
b6a5197edf Make "Runtime mismatch, so leaking context!" error message from fix for 71237 |#ifdef DEBUG|. r=disttsc@bart.nl sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@91790 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 23:08:37 +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
blakeross%telocity.com
6df9558b00 Removing old prefs code (68964). r=mcafee sr=ben
git-svn-id: svn://10.0.0.236/trunk@87248 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-17 01:55:32 +00:00
mcafee%netscape.com
38615556e3 Removing unuxed MOZ_OLD_LI_STUFF ifdef & code (68964). r=blake, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@87157 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-16 00:23:56 +00:00
alecf%netscape.com
f119a15095 back myself out to see if I'm causing orange
git-svn-id: svn://10.0.0.236/trunk@86896 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-13 04:08:26 +00:00
alecf%netscape.com
b8bf57494c fix for #62401, attempt #2 - only cleanup prefs JSContext when the shutdown event comes in, so we
don't fiddle with pointers to freed objects
sr=brendan


git-svn-id: svn://10.0.0.236/trunk@86876 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-13 02:23:17 +00:00
blakeross%telocity.com
ebcfd71f5b Fix 33115: attempt to shave milliseconds off of startup time by removing obsolete/unused prefs. more to come. r=timeless sr=alecf
git-svn-id: svn://10.0.0.236/trunk@85218 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-21 03:44:15 +00:00
ccarlen%netscape.com
3fbb4818f5 Part of 35559 - dynamic profile switching
sr=alecf


git-svn-id: svn://10.0.0.236/trunk@84733 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-10 20:25:52 +00:00
mkaply%us.ibm.com
b392b94a90 #56767
r/a=cls,leaf
Remove XP_PC - use XP_WIN or XP_OS2 explicitly


git-svn-id: svn://10.0.0.236/trunk@83088 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-29 23:28:04 +00:00
dveditz%netscape.com
7d6149de7f bug 51056 handle unreadable prefs file, patch from gemal@gemal.dk, r=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@79167 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 20:12:59 +00:00
brendan%mozilla.org
47f8253c72 Use lazy JS class init to save memory and cycles; also expand tabs per Emacs modeline (46703, r=blizzard@mozilla.org).
git-svn-id: svn://10.0.0.236/trunk@77725 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 02:59:59 +00:00
dbaron%fas.harvard.edu
38b7ad8d31 Changing C++ comments to C comments. Please do not put C++ comments in C files, since it breaks some compilers. r=jst
git-svn-id: svn://10.0.0.236/trunk@76684 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-19 03:56:25 +00:00
jtaylor%netscape.com
4d256adca6 Additional safeguard for bug #45877. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@76659 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 22:32:05 +00:00
cls%seawood.org
e00c9de47a Oops. Did a lxr search on the wrong thing. Change -DB1M to -DB_ONE_M since WS5.0 appears to not handle the former properly in all cases.
git-svn-id: svn://10.0.0.236/trunk@75470 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 06:07:33 +00:00
alecf%netscape.com
98d754b06b oops, back out this printf, didn't mean for it to go in
git-svn-id: svn://10.0.0.236/trunk@75251 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:58:08 +00:00
alecf%netscape.com
a98365dfed fix for #46379 by dougt@netscape.com, r=alecf
fix some leaked interface pointers in nsPref


git-svn-id: svn://10.0.0.236/trunk@75250 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:56:54 +00:00
cls%seawood.org
50a5bb697c Start tedious process of removing obsolete mozilla/include files from build. This patch should take us down to 19 of 101. Bug #38061
git-svn-id: svn://10.0.0.236/trunk@73904 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 07:13:31 +00:00
mcafee%netscape.com
f9fb471e4b Removing unused 4.x prefs (39812). r=pavlov
git-svn-id: svn://10.0.0.236/trunk@73156 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 03:32:40 +00:00
mcafee%netscape.com
5318eeba96 Fixing MLK. (33773)
git-svn-id: svn://10.0.0.236/trunk@70370 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 07:00:15 +00:00
neeti%netscape.com
fd5804c71d netscape.cfg support for prefs.bug 5132,r=alecf.This is currently disabled
git-svn-id: svn://10.0.0.236/trunk@70120 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 22:15:13 +00:00
brendan%mozilla.org
18ba83921b Remove JS request API usage, it's wrong and unnecessary in the main thread (38780, r=alecf).
git-svn-id: svn://10.0.0.236/trunk@69947 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 02:40:38 +00:00
alecf%netscape.com
38c1f60e7c trim the pref DLL by removing lots of exported symbols
git-svn-id: svn://10.0.0.236/trunk@68821 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 05:58:29 +00:00
tor%cs.brown.edu
7992cab2b4 C++ comments in C files break native unix compilers.
git-svn-id: svn://10.0.0.236/trunk@68318 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 03:07:04 +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
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
f414ec2caa back out my change until I can build this on windows again
git-svn-id: svn://10.0.0.236/trunk@64332 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 05:39:14 +00:00
alecf%netscape.com
e2a6213ae5 clean up the original prefapi.c
- make lots of functions static that aren't called from outside libpref
- remove dead code
r=neeti


git-svn-id: svn://10.0.0.236/trunk@64323 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 04:52:52 +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
mcafee%netscape.com
faf2c3743d Removing old bogus 4.x prefs. r=sspitzer w/ help from alecf.
git-svn-id: svn://10.0.0.236/trunk@57219 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 19:50:34 +00:00
mcafee%netscape.com
9a9a39421b Ifdef-ing out LI pref stuff, this is not used. r=alecf
git-svn-id: svn://10.0.0.236/trunk@57152 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 01:56:50 +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
c2a1156e3a remove C++ style comments.
git-svn-id: svn://10.0.0.236/trunk@55787 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-09 01:59:34 +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
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