24 Commits

Author SHA1 Message Date
jst%netscape.com
b45fd7a390 Redoing how 'replaceable' properties on DOM objects are resolved to be compatible with 4.x, with this change named frames in framesets override 'replaceable' properties so that window.toolbar (or any replaceable property) in a frameset document with a frame named 'toolbar' actually resolves to the frame, and not the native toolbar. r/a=brendan, r=rpotts&scc
git-svn-id: svn://10.0.0.236/trunk@79874 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 10:18:07 +00:00
jst%netscape.com
e7caf2b7ff Landing DOM Level 2 CSS and Views interfaces and implementation.
git-svn-id: svn://10.0.0.236/trunk@67227 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 13:58:56 +00:00
jst%netscape.com
be8e9d04c6 Regenerating the DOM JS glue now that idlc knows about the new nsString API's, also updated nsGlobalWindow.cpp to use the new API.
git-svn-id: svn://10.0.0.236/trunk@66752 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:36:26 +00:00
scc%netscape.com
50e8e3beb4 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@65026 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 09:03:21 +00:00
norris%netscape.com
fab29b0e70 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


git-svn-id: svn://10.0.0.236/trunk@62633 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 06:32:42 +00:00
norris%netscape.com
6fc5a6608b Fix bug #25864 watch() vulnerability
r=vidur,rogerl


git-svn-id: svn://10.0.0.236/trunk@59445 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:22:58 +00:00
jband%netscape.com
191411b358 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


git-svn-id: svn://10.0.0.236/trunk@56202 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 20:29:29 +00:00
vidur%netscape.com
4fc2089b79 Reverted to NPL 1.1. R=joki
git-svn-id: svn://10.0.0.236/trunk@54456 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-25 00:02:47 +00:00
norris%netscape.com
f77a65d9d4 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


git-svn-id: svn://10.0.0.236/trunk@54051 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 07:28:34 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
slamm%netscape.com
a0ba5c7dc6 Fix build warnings.
git-svn-id: svn://10.0.0.236/trunk@46586 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:16:12 +00:00
vidur%netscape.com
ccf644288f Added JS exceptions to DOM glue. Added implementation for nsIDOMDOMException. Added nsIScriptContextOwner::ReportScriptError.
git-svn-id: svn://10.0.0.236/trunk@46438 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 23:14:30 +00:00
joki%netscape.com
9db6478cb3 Adding new flag to the security check calls out of the DOM generated JS files.
git-svn-id: svn://10.0.0.236/trunk@45348 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 14:23:55 +00:00
vidur%netscape.com
cc254c45f5 jsval can now be a parameter or return type. Got rid of unused variable warnings. Fixed secMan leak. Removed nsIDOMHTMLBlockQuote.h
git-svn-id: svn://10.0.0.236/trunk@44764 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 06:11:39 +00:00
vidur%netscape.com
294ecfb965 Changed attribute getter glue to use NS_SUCCESS macro instead of comparing to NS_OK
git-svn-id: svn://10.0.0.236/trunk@42783 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:19:49 +00:00
vidur%netscape.com
4823ea99ad 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.
git-svn-id: svn://10.0.0.236/trunk@34883 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:38:35 +00:00
vidur%netscape.com
1e71bfb687 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.
git-svn-id: svn://10.0.0.236/trunk@34861 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:49:41 +00:00
joki%netscape.com
dc86961440 Beginnings of JavaScript security bits.
git-svn-id: svn://10.0.0.236/trunk@32727 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:43:28 +00:00
joki%netscape.com
005d4ef3c6 New JSClass flag for indicating DOM elements to COMConnect
git-svn-id: svn://10.0.0.236/trunk@31362 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:20:50 +00:00
waterson%netscape.com
e6531f8683 Modified generated files so that NS_InitFooClass() is accessable outside of JSDOM.DLL. a=vidur%netscape.com.
git-svn-id: svn://10.0.0.236/trunk@20919 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:33:27 +00:00
vidur%netscape.com
4ef7dcc47f 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.
git-svn-id: svn://10.0.0.236/trunk@16821 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-22 22:03:20 +00:00
vidur%netscape.com
8675dc74ce 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.
git-svn-id: svn://10.0.0.236/trunk@15654 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 00:33:00 +00:00
peterl%netscape.com
bf2d444100 updated to new version of CSSOM interfaces
git-svn-id: svn://10.0.0.236/trunk@15329 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:20:04 +00:00
vidur%netscape.com
5e8d2d6415 Added new style interfaces. Modified property slot id allocation.
git-svn-id: svn://10.0.0.236/trunk@11001 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 00:49:44 +00:00