Commit Graph

978 Commits

Author SHA1 Message Date
mscott%netscape.com
09228d712f backing out rayw's checkin because the tree WAS CLOSED! Shame on you =). 2000-05-15 18:07:36 +00:00
rayw%netscape.com
e3232d90a0 I needed to add a better comment for the prior version I checked in.
Bug 3690, I added the native character writing / escaping logic to
the javascript components as it was added to native components.

r=dveditz
2000-05-15 17:29:20 +00:00
rayw%netscape.com
6e8adc1631 The remaining fix for international characters in component names. 2000-05-15 17:26:18 +00:00
brendan%mozilla.org
44ffcfa883 Enforce interCaps Mozilla XPIDL style (r=shaver). 2000-05-15 07:03:46 +00:00
brendan%mozilla.org
2fcf1e1f5e Update JS_InitClass to match signature. 2000-05-15 06:07:10 +00:00
brendan%mozilla.org
6d9f9c1954 Comment the need for rooted JS_NewScriptObject; whitespace/comment cleanup. 2000-05-15 06:06:12 +00:00
brendan%mozilla.org
53e6c7a2fa Cleanups from tlundeen@webcrossing.com, plus fun->call=>native renaming. 2000-05-15 03:54:50 +00:00
brendan%mozilla.org
46bb75c8df Forgot to check this in with the last batch! 2000-05-14 23:04:33 +00:00
brendan%mozilla.org
1afb3be62c GC synchronization and lock fixes, plus comments (37983, r=waterson@netscape.com). 2000-05-14 23:00:51 +00:00
shaver%mozilla.org
ee453f5618 remove bogus CHECK_REQUEST in JS_ClearRegexpStatics (16128) 2000-05-14 15:38:04 +00:00
brendan%mozilla.org
2152d1c678 Set newborn to root of object tree created by literal (followup to waterson nsJSEnvironment.cpp fix). 2000-05-14 05:38:51 +00:00
brendan%mozilla.org
48a16c808c Avoid zero-length mallocs (prompted by ped@nospam.cadence.com). 2000-05-14 05:35:19 +00:00
mccabe%netscape.com
b97688b654 Mark 'clear' function exposed thru shell global object PR_CALLBACK, like other similar functions.
Patch courtesy Skip Nizinski <snizinsk@us.ibm.com>.
2000-05-10 23:58:51 +00:00
brendan%mozilla.org
d422e712d9 Reword comment to fix typo (missing 'to'). 2000-05-10 20:05:17 +00:00
brendan%mozilla.org
d5cc8fbf14 More minor style cleanups, plus a teeny optimization from tlundeen@webcrossing.com. 2000-05-10 19:58:28 +00:00
brendan%mozilla.org
e4977c0ede Fix the TOO_MUCH_GC define (optional for GC stress-testing, not part of build). 2000-05-10 19:56:21 +00:00
brendan%mozilla.org
df66e6872c Minor style improvements (80th column, over-parenthesization, better variable names). 2000-05-10 19:55:48 +00:00
mccabe%netscape.com
e6f060e635 Add pithy quote. 2000-05-10 00:35:30 +00:00
cls%seawood.org
4bb89416eb More OS/2 Makefile changes. Bug #34106 Batch 12 2000-05-04 11:00:47 +00:00
cls%seawood.org
ab7b9347df MOZ_JS_LIBS doesn't set the linker path so put it after MOZ_COMPONENT_LIBS. 2000-05-03 00:21:08 +00:00
thayes%netscape.com
e4c6cab6d9 Replace implementation of nsISupports with thread-safe version. This allows
SSL/HTTPS operations to complete on debug builds with thread-safety checking.
r=bryner
2000-05-03 00:04:48 +00:00
mkaply%us.ibm.com
2c291b6d67 # 34082
r= rogerl
OS/2 bring up continues - support for debugging asserts on OS/2
2000-05-02 23:18:32 +00:00
mkaply%us.ibm.com
bb754cab59 # 34082
r= rogerl
OS/2 bring up continues - VisualAge fixes
2000-05-02 22:44:23 +00:00
cls%seawood.org
04417332fe OS/2 Makefile.in tweaks. Batch 10 & 11. Bug #34106 2000-05-02 01:18:46 +00:00
rogerl%netscape.com
54e812842e r=norris@netscape.com. Add ASSERT/ASSERT_NOT cases to fixNext child
processing - was running into garbage when processing these as children
of a '|'
2000-05-01 21:57:22 +00:00
rogerl%netscape.com
0d6de00daf r=norris@netscape.com
Bug #34187, adding 'eval' as property of global object.
Bug #31864, decompiler failure when attempting to invoke a non-function
where that object is accessed via an incoming argument of the current
function.
2000-05-01 21:55:52 +00:00
rogerl%netscape.com
ba3bbf1120 r=norris@netscape.com; Bug#32174
Prevent recursive death when user has a function 'Object'.
2000-05-01 21:53:20 +00:00
jband%netscape.com
4ca5f185a3 be less aggresive in shutdown cleanup to avoid shutdown crashes. See bug 37058 for an example stack. 2000-04-25 07:26:02 +00:00
jband%netscape.com
97a6fcc778 release the threadcontextstack to avoid a shutdown leak 2000-04-25 04:59:21 +00:00
jband%netscape.com
35d002f3fe Cleanup at shutdown the JSContexts that xpconnect manages on a per thread basis. This should fix some shutdown leaks. 2000-04-25 04:57:32 +00:00
brendan%mozilla.org
1a90497652 Final destroy-context must await racing GCs before freeing atom state (32525, r=jband). 2000-04-25 01:12:36 +00:00
jband%netscape.com
fbf36f7076 belt and suspenders check of WITH_SERVICE results 2000-04-23 23:04:40 +00:00
jband%netscape.com
98eeec5119 fix a dangerous looking (but harmless) warning on Mac opt 2000-04-22 01:06:42 +00:00
mccabe%netscape.com
610a029cf5 Fix to 23532. Check validity of JS_ARENA_ALLOCATE call before using it as an argument of memcpy in JS_ArenaGrow.
Thanks to wyeung@real.com for noticing we were being unsafe here and suggesting the fix.
2000-04-21 09:25:43 +00:00
brendan%mozilla.org
27df4eb10b Spruce up a couple of comments. 2000-04-21 01:49:49 +00:00
brendan%mozilla.org
3bdfa83a05 Functions that use unqualified __parent__ or __proto__ must be heavyweight (36625, r=shaver). 2000-04-21 01:47:20 +00:00
jband%netscape.com
dc13704f3f Had the wrong clazz for the root! So it was better when the caching was broken. Now it works on MI objects with caching fixed. My bad copy/paste error from long ago. 2000-04-20 12:16:45 +00:00
jband%netscape.com
41e5c7514e backing out little fix from earlier today because it causes crashes in some MI cases. I'll investigate and do the right fix 2000-04-20 11:06:48 +00:00
brendan%mozilla.org
8dc79066e8 Check access and redeclaration legality when defining a getter/setter (36117, r=norris) 2000-04-20 07:10:14 +00:00
jband%netscape.com
a0b141afcc fix typo bug that was causing wrapper cache misses on wrapper around objects implementing multiple interfaces when the first wrapper is made for an interface that is not leftmost 2000-04-20 03:38:47 +00:00
scc%netscape.com
18ebe287b9 making string conversions explicit 2000-04-18 23:53:10 +00:00
dp%netscape.com
fb1a037854 Implemented component unregister. 2000-04-18 05:26:40 +00:00
mccabe%netscape.com
369030f2b6 Move nsIConsoleService and implementation into xpcom/base, and nsIScriptError and implementation into js/src/xpconnect. (A place for JavaScript-specific XPCOM would be better, but xpconnect will do). 2000-04-18 02:34:54 +00:00
braddr%puremagic.com
3d8106eb54 Implicit types are evil. Add PRUint32.
r=mccabe
2000-04-16 00:21:07 +00:00
jband%netscape.com
d946b71592 add a test with an 'out' array of strings 2000-04-15 18:44:22 +00:00
mccabe%netscape.com
149b12786e Print error diagnostics to stderr even when non-debug, to support those folks
that want to debug with the -console flag.
2000-04-15 06:59:21 +00:00
brendan%mozilla.org
5e87596782 Always call resolve for each object in a prototype chain (35738, r=shaver). 2000-04-15 02:01:02 +00:00
shaver%mozilla.org
94f9b142a7 Replace stupid and evil BYTECODE_ITER hack with proper use of back-patch
chained PatchGotos goodness.  (PatchGotos seasoned to taste.)
r=brendan
2000-04-14 23:27:09 +00:00
norris%netscape.com
e356de6476 Fix
28390, 28866, 34364
r=brendan@mozilla.org
35701
r=jst@netscape.com
2000-04-14 03:14:53 +00:00
rginda%netscape.com
9599baeb52 -- NOT PART OF THE DEFAULT BUILD --
Added -c (stackchunksize) option to the js shell, for testing purposes
r=pschwartau
2000-04-06 21:19:56 +00:00
brendan%mozilla.org
889c987de0 Fix 22048 and 33391 (see bugs for details; r=jband@netscape.com). 2000-04-05 06:39:11 +00:00
dveditz%netscape.com
a5cef05670 Use threadsafe ISupports for service 2000-04-05 03:31:57 +00:00
brendan%mozilla.org
ec99956290 Clean up ugly whitespace, some of which survived my r=brendan comments. 2000-04-05 02:17:38 +00:00
brendan%mozilla.org
e7aad0c475 Eliminate unused var warning and clean up other stuff not in the patch I reviewed and approved! 2000-04-04 08:17:05 +00:00
cls%seawood.org
f6740baa20 Moved static MOZ_COMPONENT_NSPR_LIBS, MOZ_COMPONENT_XPCOM_LIBS, MOZ_COMPONENT_LIBS definitions from configure.in to config.mk. Replaced -lxpcom in Makefiles to $(XPCOM_LIBS) so that we can optionally link against -lboehm when needed. Bug #31287 2000-04-04 04:46:38 +00:00
cls%seawood.org
9249743718 Use LDFLAGS when creating shared libraries. It may contain the paths to essential libraries. 2000-04-03 01:04:59 +00:00
cls%seawood.org
da66e49516 Adding a script to print out which of a given list of files do not end with a newline. Source files that do not end with a newline break at least the HP-UX compiler. Adding newlines to all of the source files found at this point. 2000-04-02 07:17:25 +00:00
brendan%mozilla.org
6fd7f42463 Don't forget to drop property in getter/setter case (34069, r=jband,a=leaf). 2000-04-01 04:23:04 +00:00
scc%netscape.com
c05019b2a8 making string conversions explicit 2000-04-01 00:39:02 +00:00
mccabe%netscape.com
bd22a269de Error reporting mechanisms for nsDocShell (xul js and content js) and mosJSComponentLoader (JS components) now pipe error objects to the JavaScript console. 2000-03-31 11:19:51 +00:00
jband%netscape.com
7f5854b8f2 fix a side effect of the fix to bug 32485. It turns out it is better to leak some native objects while shutting down then to fire off Release calls on those wrapped native objects and watch the browser crash 2000-03-31 10:31:00 +00:00
jband%netscape.com
6ed140070f use JS_LookupProperty to find the Components object in the JS scope because the OBJ_GET_PROPERTY call we had been using can fail for security reasons. travis needs this to fix bug 33489. r=brendan@mozilla.org 2000-03-31 02:47:46 +00:00
brendan%mozilla.org
67eed4bca0 Allow anonymous function compilation via JS_Compile*Function (33840, r=shaver,jband). 2000-03-31 02:47:15 +00:00
jband%netscape.com
b7e17c9d8f fix a search-and-replace mistake that was hiding in an #ifdef 2000-03-30 22:37:29 +00:00
jband%netscape.com
7ab8e93ba3 Expose method for getting a 'safe' JSContext appropriate for use on the current thread. This will help travis fix bug 33489. r=brendan@mozilla.org. 2000-03-30 07:06:10 +00:00
jband%netscape.com
ea3935a3b7 fix for bug 32485. Mark wrappednatives when xpconnect shuts down to avoid bad things happening when JS collects the JSObject part of the wrapper. r=mccabe 2000-03-30 00:09:15 +00:00
rogerl%netscape.com
5501a7eae5 Bug #32677, fix for optimizer reducing expression incorrectly for Math.pow
edge cases.
2000-03-29 23:46:08 +00:00
rogerl%netscape.com
b76e51bc61 Bug #32677, r=rginda bugs in Win32 optimized version for edge cases in
Math.exp and Math.pow
Bug #32937, r=rginda, implement missing toLocaleString
2000-03-29 23:45:07 +00:00
jband%netscape.com
1a98fc8141 adding new files - not part of build 2000-03-28 05:14:51 +00:00
jband%netscape.com
f0e95e63d4 Landing changes that have been banging around in my tree... - Add #ifdef'd out support for profiling. - Add support for calling the JS gc root dumper. - Add unified #define for dumping shutdown info". Remove redundant define in makefile.win. - Prepare for semantic change to nsIInterfaceInfo::GetParent if there is no parent (return null rather than an error code). 2000-03-28 03:54:34 +00:00
jband%netscape.com
6447c456fe allow for later use of xpconnect\tools 2000-03-28 03:46:21 +00:00
jband%netscape.com
1703b6270a general cleanup 2000-03-28 03:45:12 +00:00
brendan%mozilla.org
6744754724 Augh! Fix one name-hiding warning, add another... Fixed. 2000-03-24 03:01:47 +00:00
brendan%mozilla.org
e68cd0817f Eliminate name-hiding and consequent compiler warning (r=shaver@mozilla.org). 2000-03-24 00:20:02 +00:00
brendan%mozilla.org
22afff17dc Rename stacksize formal param to stackChunkSize (27767, really a doc bug). 2000-03-23 23:50:29 +00:00
brendan%mozilla.org
49b6521edf Rename stacksize to stackChunkSize, similar cleanups, default new object class extension (27767). 2000-03-23 23:47:23 +00:00
brendan%mozilla.org
17eca8e2c8 Optimize lightweight function calls, and bound their recursion (27767, r=rogerl@netscape.com). 2000-03-23 23:29:36 +00:00
rogerl%netscape.com
1678fe3c07 r=brendan@mozilla.org
Bug #32674, JS_SetVersion hides error; also, jsscan.c keyword bug
2000-03-23 23:00:35 +00:00
slamm%netscape.com
1923718f2a Quiet a warning: '/*' within a comment. 2000-03-22 04:56:37 +00:00
rogerl%netscape.com
c72c567bc7 r=rginda
bug #31316, screwed up match array contents for | operator.
2000-03-21 21:11:19 +00:00
ftang%netscape.com
84856445ab add assertion code to catch data lostage. r=jband 2000-03-21 21:02:18 +00:00
beard%netscape.com
9ccba843c1 fix stand-alone LiveConnect shell on XP_MAC. 2000-03-18 09:45:13 +00:00
beard%netscape.com
8817a932f6 fix simple callbacks (not part of standard LiveConnect) 2000-03-18 09:44:07 +00:00
beard%netscape.com
58b9aa6ad7 added classpath processing. 2000-03-18 09:42:15 +00:00
beard%netscape.com
4412d25298 removed redundant implementation of strdup. 2000-03-18 00:55:47 +00:00
beard%netscape.com
a24c8a18bb fixed to work with Universal Headers 3.3 JManager interfaces. 2000-03-18 00:55:15 +00:00
beard%netscape.com
b6e6704f30 fixed to work with Universal Headers 3.3 to get MRJ interfaces/libraries, added jsj_simpleapi.c. (not part of mozilla build) 2000-03-18 00:53:55 +00:00
mccabe%netscape.com
ca1868c245 Patches for building perlconnect, courtesy Pavel Hlavnicka <pavel@gingerall.cz>. 2000-03-17 06:40:22 +00:00
gagan%netscape.com
e1b0d2b26c Fix a mem leak. r=jband 2000-03-16 23:31:53 +00:00
mkaply%us.ibm.com
b54097c65e # 25555
r= rogerl@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef
2000-03-15 14:50:26 +00:00
mkaply%us.ibm.com
ab9c3bf6ce # 25555
r= rogerl@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef
2000-03-15 14:31:55 +00:00
jband%netscape.com
728658cf2d Fix protection against gc reentry on same thread but on different JSContexts. Also fix potential deadlock in gc when destroying a JSContext while some other thread is blocked in gc waiting for the EndRequest of the first thread. The reentrance fix is needed to fix bug 28570. r=brendan@mozilla.org 2000-03-12 05:09:46 +00:00
norris%netscape.com
060e388a6b Files:
caps/idl/nsICertificatePrincipal.idl
	caps/idl/nsIPrincipal.idl
	caps/src/nsBasePrincipal.cpp
Implement the ability to manipulate multiple capabilties simultaneously.
r=mstoltz@netscape.com

Files:
	caps/src/nsCodebasePrincipal.cpp
Codebase equality should be based upon origin, not full path.
r=mstoltz@netscape.com

Files:
	caps/src/nsScriptSecurityManager.cpp
Change URI checking to deny based upon scheme rather than allow based upon
scheme for greater flexibility.
r=mstoltz@netscape.com

Files:
	dom/public/nsDOMPropEnums.h
	dom/public/nsDOMPropNames.h
	dom/src/base/nsGlobalWindow.cpp
	modules/libpref/src/init/all.js
Fix bug 20469 Seeing JS functions and global variables from arbitrary host
r=vidur@netscape.com

Files:
	dom/src/base/nsJSUtils.cpp
	dom/src/base/nsJSUtils.h
	dom/src/base/nsJSEnvironment.cpp
	dom/tools/JSStubGen.cpp
	layout/base/src/nsDocument.cpp
	layout/html/content/src/nsGenericHTMLElement.cpp
Improve performance by removing NS_WITH_SERVICE call for every DOM access.
Propagate XPCOM failure codes out properly.
r=vidur@netscape.com

Files:
	layout/html/document/src/nsFrameFrame.cpp
Fix 27387 Circumventing Same Origin security policy using setAttribute
r=vidur@netscape.com
2000-03-11 06:32:42 +00:00
pavlov%netscape.com
ce094b4cfc changes to let us build on MacOS X 2000-03-11 03:08:04 +00:00
jeff.dyer%compilercompany.com
53375c1c1e Fix for #16438 (r=stanley.ho@eng.sun.com). Adds functionality for unwrapping
wrapped JSObjects.
2000-03-07 02:38:44 +00:00
rogerl%netscape.com
9594ff55ad r=rginda
Make shared lib thingy configurable.
2000-03-02 23:21:04 +00:00
rogerl%netscape.com
429c1db8e9 r=brendan,rginda
Added ECMA3 compliant getter/setter syntax.
Fixed bugs
	- #28686, mishandling of \$ in replace()
	- #27902, eval not detected as heavyweight indicator for non ECMA
			context version.
2000-03-02 23:21:03 +00:00
cls%seawood.org
08e716cb3e Reverted part of slamm's checkin so that non-official builds (including tinderboxes) stop on errors. Changed makefiles to use gmake's -C option instead of 'cd'. 2000-03-02 12:41:47 +00:00
jband%netscape.com
417094058a Fix bug 28982. Call to JS_ClearScope in property setter (e.g. window.location = "foo")
was causing defered calls to js_FreeSlot to do wild pointer writes into slots that
were no longer owned by the object. Also this improves the fix to 14462 (see note
in 28982 from brendan). r=brendan@mozilla.org a=jar@netscape.com
2000-02-26 23:47:33 +00:00
bryner%uiuc.edu
6985354db4 Adding a new flag to the Win32 build system. Set DISABLE_TESTS=1 to skip
building in the tests directories.  Should not affect the build at all if
you do not have this environment variable.  r=leaf.
2000-02-25 04:12:40 +00:00