Граф коммитов

340 Коммитов

Автор SHA1 Сообщение Дата
vidur%netscape.com d37c5c5323 Fix for bug 16787. Added navigator.cookieEnabled. Removed warnings. a=don r=waqar 1999-12-22 22:42:06 +00:00
vidur%netscape.com 70de582cc6 Fix for bug 18840. Radio button groups are now reflected as collections in a form's namespace. Added nsIDOMHTMLFormControlList interface and special handling for namedItem method that return a jsval. a=dagley r=pollmann 1999-12-22 01:48:47 +00:00
jband%netscape.com ef9c82db1e 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
syd%netscape.com 9ad549aeef Change calls to Flash(void) in nsIWidget, nsWindow to GetAttention().
r=sdagley a=chofmann. Add support for GetAttention API to nsIDOMWindow.
r=vidur, a=chofmann. To do, make call to WebShell from nsIDOMWindow,
this will come once travis lands some webshell code.
1999-12-17 06:11:45 +00:00
syd%netscape.com 180c85a27e Window.idl was not being built if you did this on Linux (Makefile.in
rot). r=vidur, a=brendan (related to but does not fix PDT+ 18518).
1999-12-14 23:48:08 +00:00
vidur%netscape.com 657729a882 Fix for bug 9787. Implemented a stub version of document.clear. Fix necessary for getting in 20737. a=chofmann r=pollmann. 1999-12-14 23:32:26 +00:00
akkana%netscape.com 54aa51a733 Fixing build bustage on Linux 1999-12-14 00:55:37 +00:00
davidm%netscape.com 231d707531 #ifdef out code for controller. Checkin to unblock mjudge and other r= mjudge 1999-12-13 23:13:33 +00:00
hyatt%netscape.com 9471c4c457 Modifications to support the command dispatcher. r=saari 1999-12-08 04:58:05 +00:00
hyatt%netscape.com f23566bf16 Massive rewrite of the key binding system and the command dispatcher. Key
bindings are now fully hierarchical.  In addition, DOM windows, input fields
and textareas can pull their key bindings from a separate XUL file.  This
allows configurable key bindings.

Massive rewrite of the command dispatcher system.  The command dispatcher now
deals with DOM windows in addition to DOM elements.  It now tracks both
successfully and works in conjunction with the new focus/blur architecture.

r=saari
1999-12-08 04:56:56 +00:00
vidur%netscape.com 68f79c1ca8 Fix for bug 17857. Relative URLs for script-based setting of the SRC attribute now does resolution relative to the calling context. R=nisheeth. 1999-12-08 03:52:01 +00:00
brendan%mozilla.org 5135a6dbb2 - Rename "FunctionObject" or shorthands to "EventHandler" to make nsIScriptContext more scripting-language-neutral.
- Allow nsIScriptContext::BindEventHandler to take a null void* handler argument, to remove the binding by nullifying it (for hyatt's XML-driven-key-mapping work). 
- Try to GetCompiledEventHandler (and if we don't, and compile it, Put too) for the load event and other non-deferred (XUL window-level) event listeners. 
- Improve doc comments and whitespace.
1999-12-07 22:14:17 +00:00
ftang%netscape.com 5d9824b4bd add query composition event which get current curosor position. add timer base IME x y location query for gtk. r=erik. fix bug 17916 20550 1999-12-07 01:29:00 +00:00
waterson%netscape.com ec2655c506 Bug 20786. Use function object, rather than function, as the thing which is executed, ensuring that the correct bindings are used when the function is shared across several contexts. This checkin is really brendan@mozilla.org; I'm just landing the code. 1999-12-05 07:29:25 +00:00
vidur%netscape.com 0877a41ffc Changed IID to remove conflict in IIDs.h 1999-12-04 01:29:54 +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 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
tbogard%aol.net daa4db77af Adding nsIScriptGlobalObjectOwner.idl to the manifest. 1999-12-02 06:18:32 +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
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
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
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 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
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
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
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 57e8b347a2 DOM extension for exposing text areas to XUL
bug 12022, r=rickg
1999-11-19 07:18:25 +00:00
brendan%mozilla.org 90c5c9c53e XULDOMJS_19991106_BRANCH landing (15146, r=vidur@netscape.com) 1999-11-12 06:08:14 +00:00
vidur%netscape.com 97fc1836cd Added comment to remind people modifying nsDOMError.h to also add an error string. 1999-11-12 02:08:45 +00:00
dmose%mozilla.org 142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
nisheeth%netscape.com 5283884a87 r=norris,warren,radha. a=chofmann. Fix for 1646. Javascript: urls return NS_ERROR_DOM_RETVAL_UNDEFINED when the javascript: url evaluates into an undefined value. This error is propagated back up to nsWebShell::DoLoadURL(). 1999-11-04 22:02:19 +00:00
joki%netscape.com b4883ed406 Reverting key set to previous version. Fixes 17887. a:chofmann r:brade. 1999-11-03 20:40:35 +00:00
joki%netscape.com 1675be15e0 Changes to DOM events to accomodate the new breakdown of events into mouse and key events. This fixes a couple of bug, though the main one is 13406. Involves changes to multiple DOM generated file as well as fixing up usage of DOM event api usage in editor, rdf, and xul. r:vidur 1999-11-03 07:11:45 +00:00
brendan%mozilla.org f81d5969c6 (13163, r=alecf, scc, waterson, others; names available on request)
- Fix most of bug 13163 (see TODO for rest).  This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks. 

- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp.  These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that. 

- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString.  Also changed various nsresult vars to be named rv.  Also restored brace/style conformity to nsJSProtocolHandler.cpp. 

- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject. 

- Lots of nsCOMPtr uses added.  I'm using one for mNameSpaceManager.  Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak).  These two managers should be moved to the window object -- TODO item below. 

- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver. 

- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated.  This meant factoring nsJSUtils.cpp code. 

- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace. 

- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.
1999-10-31 00:43:30 +00:00
ftang%netscape.com c725008fc0 fix bustage. 1999-10-28 22:38:58 +00:00
ftang%netscape.com 5af11fe3e9 remove nsIDOMTextRange.h nsIDOMTextRangeList.h. fix bug 12756. r=tague 1999-10-28 22:05:42 +00:00