jband@netscape.com
2e04e1dd4e
Landing big set of DOM and XPConnect changes:
...
DOM: getting rid of JS_GetContextPrivate wherever possible. Use static parent
links where we can. When we do need to find this info about the caller
we call a function that knows how to get that info rather than inline calls
to JS_GetContextPrivate. This is all required for calling DOM objects on
non-DOM JSContexts as we do via xpconnect.
XPConnect: basic refactoring work to disassociate wrappers from the JSContext
that was active when the wrapper was constructed. This allows for calling into
wrapped JS objects on the right JSContext and for proper grouping of wrapped
native objects so that they can share proto objects. This also allows for
better sharing of objects and lays the foundations for threadsafety and
interface flattening.
Also, xpconnect tests are reorganized and improved.
fixes bugs: 13419, 17736, 17746, 17952, 22086
r=vidur r=mccabe r=norris r=cbegle
a=chofmann
1999-12-18 20:29:29 +00:00
waterson@netscape.com
692a23e1cf
Bug 21668. Ugh. Totally botched my patch application. Let's try that again.
1999-12-17 00:26:08 +00:00
waterson@netscape.com
e13836c744
Bug 21668. Use Linss-ptr (or nsCOMPtr) to avoid leaking nativeThis. (Unfortunately, I also picked up some whitespace diffs from previously un-regenerated files. Ignore that!) r=shaver
1999-12-17 00:15:51 +00:00
vidur@netscape.com
74197ae670
Reverted to NPL 1.1. R=joki
1999-11-25 00:02:47 +00:00
norris@netscape.com
3a10ca92b3
Modify generated dom code to use a enum rather than a string for codesize
...
and efficiency.
Tighten checks on document properties and node properties. Should resolve
several bugs:
18965 document.firstChild vulnerability
19043 document.childNodes vulnerability
19044 document.lastChild vulnerability
r=mstoltz
1999-11-20 07:28:34 +00:00
dmose@mozilla.org
796280940b
updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
1999-11-06 03:40:37 +00:00
vidur@netscape.com
b4458452a4
Added document.width/document.height to nsIDOMNSDocument. Bug 961. R: troy
1999-10-06 20:33:58 +00:00
joki@netscape.com
a7014ac4c9
Adding old 4.x capture/release compatibility code, changing dom event VK_* names to DOM_VK_*
1999-09-21 14:18:52 +00:00
slamm@netscape.com
5500ff8887
Fix build warnings.
1999-09-09 19:16:12 +00:00
vidur@netscape.com
a9280ea44f
Added JS exceptions to DOM glue. Added implementation for nsIDOMDOMException. Added nsIScriptContextOwner::ReportScriptError.
1999-09-08 23:14:30 +00:00
joki@netscape.com
3ddacf89d9
Adding new flag to the security check calls out of the DOM generated JS files.
1999-08-31 14:23:55 +00:00
vidur@netscape.com
05b6d2ac82
jsval can now be a parameter or return type. Got rid of unused variable warnings. Fixed secMan leak. Removed nsIDOMHTMLBlockQuote.h
1999-08-27 06:11:39 +00:00
brendan@mozilla.org
403efe3377
Regenerate to eliminate degenerate unsigned comparisons and dead code.
1999-08-10 07:30:12 +00:00
vidur@netscape.com
57dc719711
Changed attribute getter glue to use NS_SUCCESS macro instead of comparing to NS_OK
1999-08-09 19:19:49 +00:00
slamm@netscape.com
199d7721a6
Remove unused variable, rBool, and its compiler warnings
1999-07-06 23:42:00 +00:00
vidur@netscape.com
7335d4d55f
JS_GetPrivate calls now go through a nsJSUtils wrapper that checks up the prototype chain. This is useful for applets where the JSClass instance is set as the proto of the LiveConnect-generated object.
1999-06-11 22:38:35 +00:00
vidur@netscape.com
1dbd682463
Fixes for bug 927. JS timer code can deal with the window closing in a timer callback. NamedItem gets called for unknown integer property values as well. Added nsCOMPtr generation option to idlc. Fixed warnings in generated code.
1999-06-11 21:49:41 +00:00
joki@netscape.com
60351683f1
Beginnings of JavaScript security bits.
1999-05-26 21:43:28 +00:00
joki@netscape.com
7f1f44832c
New JSClass flag for indicating DOM elements to COMConnect
1999-05-13 01:20:50 +00:00
vidur@netscape.com
1c321ae351
Added IsValidFragment to nsIDOMNSRange interface and CreateRange to nsIDOMNSDocument.
1999-05-11 20:20:40 +00:00
vidur@netscape.com
4d1f72abb7
Added CreateElementWithNameSpace to proprietary document interface. Fixed GetTagName for HTML to uppercase tag names. Hooked up style rule addition and deletion to reconstruct frames. Fixed DOM generation problem
1999-03-10 01:17:49 +00:00
waterson@netscape.com
1261fe43d1
Modified generated files so that NS_InitFooClass() is accessable outside of JSDOM.DLL. a=vidur%netscape.com.
1999-02-17 08:33:27 +00:00
vidur@netscape.com
40dd3f60d4
Added script namespace management mechanism. This allows external native code to add symbols and constructors to the script global namespace. Added IID() static method generation to IDL generator.
1998-12-22 22:03:20 +00:00
vidur@netscape.com
cf5db6f03c
Slimmed down DOM code by creating a few utility functions for conversion, etc. Fixed bug 1656 - bug in generator with an enum value of 0.
1998-12-03 00:33:00 +00:00
vidur@netscape.com
4ecd6c1ff1
Moved document.styleSheets from HTML-specific interface to generic Document interface
1998-11-17 02:19:28 +00:00
vidur@netscape.com
8ea538c90c
Updated DOM interfaces to match final W3C recommendation. Modified IDL compiler to take IIDs
1998-10-20 17:07:23 +00:00
vidur@netscape.com
c8e645cffd
Added new style interfaces. Modified property slot id allocation.
1998-09-25 00:49:44 +00:00
vidur@netscape.com
f7f5547e37
Added constructors for DOM JS classes. nsIScriptObjectOwner::ResetScriptObject is now SetScriptObject. New factory for layout. New interface nsIDOMNativeObjectRegistry.
1998-09-17 01:53:52 +00:00
joki@netscape.com
7d5bbac587
More support for capturing, minor adjustments to window.open behavior.
1998-09-15 21:31:58 +00:00
vidur@netscape.com
8dc8c648a8
Got rid of Construct method from nsIJSScriptObject interface.
1998-09-14 23:01:48 +00:00
vidur@netscape.com
81b2fa3fe3
New content code adjusts to getting script objects through a factory interface
1998-09-04 23:03:16 +00:00
kipp
0e90ada8ca
new
1998-07-15 18:54:51 +00:00