Commit Graph

829 Commits

Author SHA1 Message Date
vidur%netscape.com
0877a41ffc Changed IID to remove conflict in IIDs.h 1999-12-04 01:29:54 +00:00
tbogard%aol.net
d6a8d07409 Fixing the mail bustage. Was accidently using the internal object instead of the one passed in. 1999-12-03 21:41:35 +00:00
tbogard%aol.net
79ca59ef74 Fixed the merge. 1999-12-03 21:13:50 +00:00
tbogard%aol.net
9e5b4606dd Flipped the if. Was not continuing on success. 1999-12-03 21:11:30 +00:00
waterson%netscape.com
139d5cb27f Use more mundane macros to fix backwards logic. 1999-12-03 21:08:56 +00:00
tbogard%aol.net
c50e9ef9dd Fixed a bug where the first time to try and get the location object was failing. 1999-12-03 19:41:22 +00:00
tbogard%aol.net
f35fd0e55a Fixes to get rid of relying on webShell implementing nsIScriptContextOwner. It now implements nsIScriptGlobalObjectOwner or can do a GetInterface to nsIScriptGlobalObject. 1999-12-03 19:02:31 +00:00
tbogard%aol.net
eb96099e6d 1.) WebShell no longer implements nsIScriptContextOwner.
2.)  WebShell now implements the new nsIScriptGlobalObjectOwner.
3.)  WebShell supports GetInterface to nsIScriptGlobalObject.
4.)  Documents no longer carry around a reference to nsIScriptContextOwner.  Instead they hold on to a nsIScriptGlobalObject.  nsIDocument::GetScriptContextOwner has now become nsIDocument::GetScriptGlobalObject().  Same change to the set methods.
1999-12-03 09:24:22 +00:00
brendan%mozilla.org
87f3583410 Mac doesn't have ctype.h, or something. 1999-12-03 06:11:54 +00:00
brendan%mozilla.org
d44c35ee1b - Doc-comments for nsIScriptContext methods I added or modified.
- Rename nsIScriptContext::CompileFunction to CompileEventHandler, and add BindCompiledEventHandler, to reflect function name restrictions and help brutal sharing.
- Add adjunct-interface nsIScriptEventHandlerOwner to nsIScriptObjectOwner.h; this interface is queried for by nsEventListenerManger.cpp to test and fill the XUL prototype event handler "cache".
- PR_LOG JS warnings, and look in javascript.options.{strict,werror} for those options.  
- Implement nsIScriptEventHandlerOwner in nsXULElement, keeping pointers to pre-compiled event handlers in nsXULPrototypeAttribute.
 
(bug 13218, r=waterson@netscape.com,vidur@netscape.com)
1999-12-03 03:40:30 +00:00
drapeau%eng.sun.com
b12618788f Fix for bug 18899 ('Make "--enable-oji" as part of the default Mozilla
Build').  Modified files that conditionally compiled in support for
OJI, replacing with code that looks for OJI as an XPCOM service, and
failing gracefully if the OJI XPCOM service is not found.  The four
files modified by this fix are the only active ones; other modules
that conditionally compile in support for OJI appear to be dead code.

r=drapeau@eng.sun.com.  Fix contributed by Jayashri Visvanathan
(visvan@eng.sun.com).
1999-12-03 00:26:09 +00:00
norris%netscape.com
98862d9415 Fix bug 18636 java script security problem when accessing my.netscape.com/
r=mstoltz
1999-12-02 23:56:25 +00:00
tbogard%aol.net
daa4db77af Adding nsIScriptGlobalObjectOwner.idl to the manifest. 1999-12-02 06:18:32 +00:00
tbogard%aol.net
b0ab7a8495 added files: mozilla/dom/public/nsIScriptGlobalObjectOwner.idl 1999-12-02 06:17:29 +00:00
tbogard%aol.net
ec4119174e Connecting nsIScriptGlobalObjectOwner.idl to be compiled. Not yet used anywhere. 1999-12-02 06:16:08 +00:00
tbogard%aol.net
5a3a6e0145 Adding new interface for people who can supply an nsIScriptGlobalObject. Not yet connected to the build. 1999-12-02 06:14:49 +00:00
danm%netscape.com
d25d8e587a adding 'close' xul event handler. part of bug 13695. r:hyatt@netscape.com 1999-12-01 22:35:33 +00:00
norris%netscape.com
d89d87531c Fix
20257 unable to edit existing images in editor due to JS error
	19933 JavaScript "window.location" core dumps in CAPS
Back out previous changes for enforcing security on listeners and go with a
simple restriction of access to the method for adding listeners.
r=mstoltz
1999-12-01 22:23:22 +00:00
shaver%netscape.com
1a0aec6215 fix windows filename case damage, r=brade,sdagley 1999-12-01 16:11:07 +00:00
rods%netscape.com
f1a98d55ca removing all lower case version of this file 1999-12-01 16:10:00 +00:00
rods%netscape.com
4749742331 bug 2253 1999-12-01 15:54:59 +00:00
buster%netscape.com
fd31de07ac bug 2253. added controller to html text input
r = kmcclusk, norris
1999-12-01 15:11:33 +00:00
hyatt%netscape.com
074f2362e4 More skin goodness. r=gimpy 1999-11-30 09:29:43 +00:00
warren%netscape.com
2db26922a6 Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
tbogard%aol.net
b79a4cc957 Removing now that the interface definition can be found in the IDL file. 1999-11-30 04:09:16 +00:00
tbogard%aol.net
887609d285 Would help if I removed nsIScriptContextOwner.h instead of nsIScriptObjectOwner.h 1999-11-30 00:28:40 +00:00
dougt%netscape.com
c031e1c389 Fix for 18078. R=mstoltz,warren 1999-11-30 00:14:55 +00:00
tbogard%aol.net
b000f75888 Connected nsIScriptContextOwner.idl to the build and removed the copy of the header file. 1999-11-29 23:05:19 +00:00
tbogard%aol.net
d5726554c8 added files: mozilla/dom/public/nsIScriptContextOwner.idl 1999-11-29 23:04:23 +00:00
tbogard%aol.net
6a6f6507e7 Added nsIScriptContextOwner.idl to the list of IDL files to build. Removed nsIScriptContextOwner.h from the list of export header files. 1999-11-29 22:51:42 +00:00
tbogard%aol.net
dbb4e575f9 Added nsIScriptContextOwner.idl to the list of IDL files to build. Removed nsIScriptContextOwner.h from the list of export header files. r=vidur. 1999-11-29 22:44:28 +00:00
tbogard%aol.net
c54b48ce20 Changed the UUID back to the one that nsIScriptContextOwner had in the .h file. 1999-11-29 22:42:07 +00:00
tbogard%aol.net
ec36c2ff05 First cut at putting nsIScriptContextOwner interface into idl. (Not connected to the build yet.) 1999-11-29 22:32:58 +00:00
warren%netscape.com
96ec037ac6 Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
tbogard%aol.net
fc861622a5 GlobalWindow now uses the nsIBaseWindow interface off the WebShell object to do positioning stuff instead of nsIWebShell interface. Also changed the call to GetTitle to properly free the returned pointer as an internal const pointer is no longer returned. 1999-11-27 02:35:54 +00:00
shaver%netscape.com
89607b7de2 Repair missing newlines at end of files, and remove lines of the form
#endif foo
both of which upset HPUX's compiler quite a bit.
Patch from Andrew Taylor <Andrew.Taylor@cal.montage.ca>.
1999-11-26 05:33:35 +00:00
norris%netscape.com
51842ef45e Fix 18553 [DOGFOOD] addEventListener allows sniffing keystrokes
Add checks to nsScriptSecurityManager::CheckCanListenTo that take
a principal and ensure that the currently executing script code
either is from the same origin as that principal or has the
UniversalBrowserRead privilege enabled. (chrome code has all
privileges enabled by default.) It's okay for the principal passed in
to be null. That just signifies a privileged window/document that only
can be listened to with privileges.

I added GetPrincipal/SetPrincipal methods to nsIEventListenerManager.
nsDocument::GetNewListenerManager sets a principal on the listener
manager when it creates one. Obviously there are other places that
create listener managers, but scripts seem to go through this one.

Another change is to save some memory usage. Currently I allocate an
array of PolicyType that is NS_DOM_PROP_MAX elements long.
Unfortunately, compilers appear to allocate four bytes for each
PolicyType, so the array takes around 2400 bytes. I've added changes
to use two bit vectors that should consume about 1/16 that space.

r=joki

There are also changes that push nsnull onto the JSContext stack when
entering a nested event loop.

r=jband
1999-11-25 05:28:18 +00:00
vidur%netscape.com
bc1a90e967 Reverted to NPL 1.1. R=joki 1999-11-25 00:02:47 +00:00
vidur%netscape.com
58c1de27fd Fix for 19650 and 15133. Added nsIJSEventListener. JS event listener now stores script context and script object owner for late compilation of script event handlers. 1999-11-25 00:01:30 +00:00
vidur%netscape.com
3ddb8869ea Added window.scroll(). Changed signature of RegisterScriptEventListener. R=joki 1999-11-25 00:00:21 +00:00
vidur%netscape.com
6d1174d90c Added nsIJSEventListener.h 1999-11-24 23:59:08 +00:00
vidur%netscape.com
0d4cde9c06 Added window.scroll(). Reverted back to NPL 1.1. R=joki 1999-11-24 23:58:43 +00:00
vidur%netscape.com
bf26e759a4 Added window.scroll() 1999-11-24 23:56:39 +00:00
tbogard%aol.net
af1ce8d410 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
tbogard%aol.net
515e4d9739 Changed the concept of the webshell holding an mChromeElement object to it holding a nsIChromeEventHandler interface. This is more generic and allows other apps to plugin nicer into the API.r=hyatt 1999-11-23 09:57:47 +00:00
joki%netscape.com
fc077ea0be Add initialization of named Event class to script. part of fix for 9544. r:vidur 1999-11-22 19:39:55 +00:00
norris%netscape.com
24778bda71 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
buster%netscape.com
93551f1751 moved content-specific data and methods from nsIWebShell to appropriate content viewer interface
no bug number, this is for webshell redesign work
r=rickg, travis
1999-11-19 07:35:27 +00:00
buster%netscape.com
2de668fe3c DOM extension for exposing text areas to XUL
bug 12022, r=rickg and vidur
1999-11-19 07:19:10 +00:00
buster%netscape.com
57e8b347a2 DOM extension for exposing text areas to XUL
bug 12022, r=rickg
1999-11-19 07:18:25 +00:00