1696 Commits

Author SHA1 Message Date
brendan%mozilla.org
9bf59a0feb Checking in khanson's patch with whitespace cleanups for bug 89443, to avoid stack overflow on too many || operators in one expression (r=rogerl, sr=me).
git-svn-id: svn://10.0.0.236/trunk@101294 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 10:29:59 +00:00
brendan%mozilla.org
89a27dff8f Shrinking realloc can fail (95517, basic patch from epstein@tellme.com, r=brendan, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@101292 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:56:48 +00:00
jband%netscape.com
9a7d33e56a fix bug 94752. Let xpconnect decide when to call JS_DestroyContext. It sometimes needs to defer the call until JS code running on the context is finished. r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@101079 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-15 04:49:09 +00:00
pavel%gingerall.cz
75ffe32315 Context typemapping changed
git-svn-id: svn://10.0.0.236/trunk@101010 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 13:09:43 +00:00
cls%seawood.org
3b8b92a2e8 Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101008 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 07:59:59 +00:00
val4%cornell.edu
56d9f2c8d6 Attempt to build on Unix
git-svn-id: svn://10.0.0.236/trunk@100863 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-11 04:57:50 +00:00
brendan%mozilla.org
cfa08b7e97 JSOP_BINDNAME needs JOF_SET flag for JSRESOLVE_ASSIGNING to be imputed (94631, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@100851 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 23:57:07 +00:00
dbradley%netscape.com
da4973f34b Bug 88130: XPConnect disturbs exception state of the call-context. This is jband's patch to reorder calls and fix whitspace. r=rginda, sr=jst
git-svn-id: svn://10.0.0.236/trunk@100778 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 19:23:39 +00:00
dbradley%netscape.com
18e26c7609 Bug 93790: xpconnect does not correctly reflect nsIClassInfo interface. r=dbradley, sr=jst, patch by jband
git-svn-id: svn://10.0.0.236/trunk@100754 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 14:13:17 +00:00
brendan%mozilla.org
82a0165834 Check in balleysson@bigfoot.com's patch to avoid a redundant js_strlen (87271, r=shaver, sr=brendan).
git-svn-id: svn://10.0.0.236/trunk@100746 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 08:02:25 +00:00
brendan%mozilla.org
2422131d8a Fix useless expression elimination to work with native-function-called JS_EvaluateScript (87271, r=rogerl, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@100745 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 07:55:17 +00:00
brendan%mozilla.org
f031c3036a Shrink principals struct back to where it was last week -- but it could go further (93043, r=shaver, sr=jst).
git-svn-id: svn://10.0.0.236/trunk@100615 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-09 01:15:57 +00:00
brendan%mozilla.org
2f7237b788 Quick followup, my reviewers missed a copy/paste error that's harmless but formally wrong.
git-svn-id: svn://10.0.0.236/trunk@100475 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 05:32:38 +00:00
brendan%mozilla.org
c807c60073 Use a new JSContext option to type context-private data as nsISupports* (82845, sr=jst&waterson).
git-svn-id: svn://10.0.0.236/trunk@100474 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 05:27:42 +00:00
brendan%mozilla.org
50f90d9eeb Restore scriptable nsIClassInfo.classID but add fast/C++-only classIDNoAlloc; define and use nsIClassInfo::EAGER_CLASSINFO in caps (93792, sr=waterson&jst).
git-svn-id: svn://10.0.0.236/trunk@100464 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 03:59:29 +00:00
brendan%mozilla.org
dda2434466 Don't modify state until after realloc succeeds (92810, sr=jband&waterson).
git-svn-id: svn://10.0.0.236/trunk@100458 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 02:48:10 +00:00
rginda%netscape.com
b34bd1f46f remove js_EmitTree call (And friends) because this stuff has already been taken care of by the Statements() call.
See bug 82188
patch=brendan, r=me, sr=jband


git-svn-id: svn://10.0.0.236/trunk@100264 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-03 05:20:59 +00:00
brendan%mozilla.org
9654ef142f Mike Epstein's patch to make MAX_INTERP_LEVEL predefinable (93176, r=rogerl, sr=brendan)
git-svn-id: svn://10.0.0.236/trunk@100232 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-02 21:31:00 +00:00
dbaron%fas.harvard.edu
5c1c087959 Fix leaks of JS runtime service. b=93089 r=shaver, dbradley sr=waterson
git-svn-id: svn://10.0.0.236/trunk@100174 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-02 01:58:33 +00:00
brendan%mozilla.org
f5bc62edea FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@100030 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-31 19:05:34 +00:00
timeless%mac.com
473ec1d3e8 Bugzilla Bug 92134 Sun Workshop 6 Update 2 _FCS_ fails to build due "jscpucfg" error
by : Roland.Mainz@informatik.med.uni-giessen.de r=cls a=dbaron


git-svn-id: svn://10.0.0.236/trunk@100004 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-30 06:44:43 +00:00
jaggernaut%netscape.com
2b3b3b2586 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
git-svn-id: svn://10.0.0.236/trunk@99906 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 07:54:28 +00:00
brendan%mozilla.org
b2c6408669 Fix 3-way deadlock by never nesting rt->gcLock inside rt->setSlotLock (90994, sr=shaver&jband).
git-svn-id: svn://10.0.0.236/trunk@99866 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 02:43:40 +00:00
radha%netscape.com
f30f3fba57 Partial fix to bug # 40867. Exposes interfaces implemented by nsGlobalwindow to JS. r=rpotts sr=jst, vidur
git-svn-id: svn://10.0.0.236/trunk@99823 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-24 22:39:11 +00:00
jaggernaut%netscape.com
56ae52c17a Bug 73353: clean up the REQUIRES lines in Makefiles.
git-svn-id: svn://10.0.0.236/trunk@99764 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-23 22:36:12 +00:00
brendan%mozilla.org
4c515fc6fe Drop scope property after holding, even if SPROP_GET/SET failed (90597, r=hyatt, sr=waterson).
git-svn-id: svn://10.0.0.236/trunk@99606 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-19 23:08:10 +00:00
jst%netscape.com
dcaff5f593 Fixing bug #87389 This refreshes prototypes when classes are initialized on the context (Page transition) to prevent changes to prototypes from persisting across document loads. r=dbradley@netscape.com, sr=jst@netscape.com, patch by jband and dbradley (dbradley checking in from jst's account)
git-svn-id: svn://10.0.0.236/trunk@99394 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-17 06:20:37 +00:00
av%netscape.com
b6f5088ad1 Backing out existing fix for 87193 -- r=mstolz, sr=shaver, attinasi
git-svn-id: svn://10.0.0.236/trunk@99374 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-17 02:24:16 +00:00
bryner%uiuc.edu
f43cf516d9 Fixing BeOS bustage - use uint32 instead of u_int32_t.
git-svn-id: svn://10.0.0.236/trunk@99306 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 06:04:25 +00:00
bryner%uiuc.edu
052526b1b0 Bug 83388 -- dialogs (and probably other things) broken when using -O2 on gcc 2.96 due to js code that was unsafe for alias optimization. r=drepper@cygnus.com, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@99303 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 05:02:10 +00:00
dbaron%fas.harvard.edu
9359000a40 Header include dependency cleanup. b=64023 r=jag rs=brendan
git-svn-id: svn://10.0.0.236/trunk@99299 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 02:40:48 +00:00
brendan%mozilla.org
c9ea12dcfc Fix a bug reported incompletely by 89474: UMR in its_item for it.item() calls (NOT PART OF BUILD).
git-svn-id: svn://10.0.0.236/trunk@99193 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 17:58:50 +00:00
brendan%mozilla.org
130b8c8934 Always select JSOP_EVAL for unqualified eval calls (77578, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@99167 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 06:13:56 +00:00
mstoltz%netscape.com
539425ad49 Checking in bug 87913 for jesse@netscape.com - Allow untrusted scripts
to call Components.manager.autoRefresh, but only with default params.
r=mstoltz, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@99050 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-11 04:48:55 +00:00
rginda%netscape.com
ffb56f69e0 remove bogus SAVE_SP before calling debugger hook
sr=brendan,r=shaver,bug=76983


git-svn-id: svn://10.0.0.236/trunk@98840 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 22:14:24 +00:00
rginda%netscape.com
682b122256 save context's exception state before calling a method on a wrapped js.
r=dbradley,sr=shaver,bug=88130


git-svn-id: svn://10.0.0.236/trunk@98778 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 03:28:07 +00:00
jst%netscape.com
518a2fef3e Fixing bug 86147. Adding code that does security checks on access to getter and setter functions for properties of DOM objects in JS. Also fixing a JS engine bug that caused problems with the real fix for this bug, the JS engine bug was that a jsid was passed as a jsval to the checkAccess() class hook. r=mstolts@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@98636 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-04 09:44:57 +00:00
cls%seawood.org
ba5036aa90 Link mozjs before nspr for static irix build.
Thanks to John Mark Vandenberg <johnv@adacel.com.au> for the patch.
Bug #88288 r=cls


git-svn-id: svn://10.0.0.236/trunk@98403 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-01 15:02:27 +00:00
cls%seawood.org
1b859632f1 Landing static build changes for OS2
Thanks to Javier Pedemonte <pedemont@us.ibm.com> for the patch.
Bug #85283 r=mkaply r=waterson


git-svn-id: svn://10.0.0.236/trunk@98398 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-01 12:11:13 +00:00
jaggernaut%netscape.com
51b17b5bf0 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)


git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
pavel%gingerall.cz
3fb894fad0 JS.pm works correctly
git-svn-id: svn://10.0.0.236/trunk@98272 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 10:59:32 +00:00
rginda%netscape.com
59d0f879d2 use file:// url as the filename, instead of the native path, when compiling js components.
for bug 85968.  r=dbradley, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@98234 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 02:20:48 +00:00
waterson%netscape.com
18986ada3f Land STATIC_BUILD_20010612_BRANCH, which supports building mozilla with components statically linked into the executable, as well as 'meta modules' that combine components into uber-DLLs.
git-svn-id: svn://10.0.0.236/trunk@97613 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 20:21:49 +00:00
rginda%netscape.com
683b1fb131 bug 85355, XPCWrappedNative::ToString should sometimes yield '[object Foo]'. patch=dbradley, r=beard+me, sr=jst, a=dbaron.
Make .toString print [object <class>] instead of [object wrapped <classname>] for xpc wrapped objects with scriptable info.


git-svn-id: svn://10.0.0.236/trunk@97494 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 00:04:36 +00:00
rginda%netscape.com
86a075a77b bug 83864 "Access to Components.interfaces denied sometimes", patch=jband, r=dbradley+mstoltz, sr=jst, a=blizzard
Allow xpc wrappers to be created by default, relying on security checks to happen at call-time instead.


git-svn-id: svn://10.0.0.236/trunk@97488 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 23:39:30 +00:00
rginda%netscape.com
b8e7d7587f bug 85572, "Javascript Error for each message sent"; patch=jband, r=me, sr=vidur, a=asa
xpconnect had been printing it's large "js component threw exception" whenever chatzilla's socket code threw NS_BASE_STREAM_WOULD_BLOCK from it's streamprovider (a non-error nsresult, bah.)  This patch adds the exception to the "suppression list", to quiet the debug message.


git-svn-id: svn://10.0.0.236/trunk@97472 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 22:53:36 +00:00
cls%seawood.org
88aedd461b Replaced NO_SHARED_LIB & NO_STATIC_LIB with BUILD_SHARED_LIBS, BUILD_STATIC_LIBS, FORCE_STATIC_LIB & FORCE_SHARED_LIB. Added FORCE_USE_PIC.
Changes allow us to have a finer control over which parts of the tree are built with PIC.  Part of the static build branch landing.
Bug #46775 r=mcafee a=leaf


git-svn-id: svn://10.0.0.236/trunk@97363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 22:10:38 +00:00
jband%netscape.com
a293897afb fix SunOs bustage with a .get() on AutoMarkingPtr
git-svn-id: svn://10.0.0.236/trunk@97030 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 02:16:29 +00:00
jband%netscape.com
36346e8f41 fix bug 59751 and bug 84600. This adds an AutoMarkingPtr scheme to protect partially built objects from gc. Also make sure we don't allow JS object to implement non-scriptable interfaces. r=dbradley sr=brendan a=drivers
git-svn-id: svn://10.0.0.236/trunk@97027 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 01:22:32 +00:00
Xiaobin.Lu%eng.Sun.com
eb8d8568ec Fix for bug 74482, Calling top.window.close does not work
work done by Nikolay and me
r=beard sr=brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@97018 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 01:04:29 +00:00