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

576 Коммитов

Автор SHA1 Сообщение Дата
pinkerton%netscape.com 8e5c88d19c Adding top and left because they are not always at 0,0. 2000-04-20 01:58:36 +00:00
pinkerton%netscape.com 2718e4f048 Adding screen.top and screen.left 2000-04-20 01:57:16 +00:00
jst%netscape.com 1fdafb43e4 Updating the DOM interfaces HTMLFormElement and HTMLOptionElement to DOM Level 2. 2000-04-18 23:00:58 +00:00
jst%netscape.com 304122a1dc Updating the HTMLObjectElement interface to DOM Level 2. 2000-04-18 22:57:42 +00:00
jst%netscape.com c899913a24 Adding DOM Level 2 interface definitions for AbstractView and DocumentView, not part of the build. 2000-04-18 17:07:52 +00:00
mccabe%netscape.com 4537a69b81 Modify nsIScriptGlobalObjectOwner::ReportScriptError to take an nsIScriptError interface, rather than separate message, file, line arguments.
Fix implementations and their callers, and restore error printing to stderr even when the error is successfully logged to the console service, to make life easier for people who go to the trouble to invoke Mozilla with -console.
2000-04-15 01:56:47 +00:00
mjudge%netscape.com f932d997b6 adding reason to notification 2000-04-14 23:03:16 +00:00
mjudge%netscape.com 6a50a5a300 new spi addition for reason for notification 2000-04-14 23:02:51 +00:00
mjudge%netscape.com 80323a423b added new parameters to NotifySelectionlisteners 2000-04-14 11:27:59 +00:00
mjudge%netscape.com 3274a82934 new api more details on notification 2000-04-14 11:27:22 +00:00
jst%netscape.com 2c4d540f7a Update the DOM interface to DOM Level 2, only stubs so far. 2000-04-13 21:21:02 +00:00
sfraser%netscape.com 48fa415a04 Adding methods to NSHTMLInputElement to allow control of the selection from JS. 2000-04-13 05:02:35 +00:00
ducarroz%netscape.com 5fe7f03696 Remove the old autocomplete widget which is now replaced by the XBL one (xpfe/components/autocomplete). R=alecf. 2000-04-13 04:50:39 +00:00
hyatt%netscape.com 2ffbbf0cf2 Fixing an XBL event handling bug and a menu shortcut bug. r=brendan, a=leaf 2000-04-06 22:32:36 +00:00
jst%netscape.com 3f6e5927d9 Eliminating the last traces of NS_COMFALSE from the DOM code, fixes M15 bug #11594. 2000-04-05 02:40:08 +00:00
jst%netscape.com aebdfd63a7 Updating the DOM Attr interface to match the DOM Level 2 spec. r=waterson@netscape.com 2000-04-03 13:40:04 +00:00
jst%netscape.com 09556dd1c8 Updating the interfaces Document and HTMLDocument to comply with DOM Level 2, only stubs for new methods for now. 2000-04-02 17:46:30 +00:00
jst%netscape.com eb690d2418 Updating HTMLFrameElement and HTMLIFrameElement to comply with the Level 2 DOM, this adds a 'contentDocument' attribute to those two interfaces that can be used to access the document contained in the frame. 2000-04-02 14:04:19 +00:00
jst%netscape.com 5fdb266f31 Updating the DOM Node interface to match the DOM Level 2 interface, only stub implemetations so far. 2000-04-01 13:31:23 +00:00
tbogard%aol.net 8ee0467cc0 Changed nsPIDOMWindow::GetXPConnectObject to GetObjectProperty and the same change to Set. 2000-03-31 09:26:02 +00:00
tbogard%aol.net ab5349aaa4 Removed the nsIDOMWindow::GetXPConnectObject, AddXPConnectObject, and RemoveXPConnectObject methods. This feature can be done through properties or through nsPIDOMWindow::GetXPConnectObject. 2000-03-31 06:59:30 +00:00
tbogard%aol.net 57839a9724 Removed GetDocShell from nsPIDOMWindow as it can be retrieved using nsIScriptGlobalObject. Added SetXPConnectObject and GetXPConnectObject which hooks up or retrieves an xpconnect object to a property on the dom window. Removed some old XXXEMBEDDING comments as they were wrong. The old methods on nsIDOMWindow for adding and getting an object now call through to the property code. Those methods will soon be removed. 2000-03-31 03:33:49 +00:00
hyatt%netscape.com 01ea60d7ee Enhancements to nsIScriptcontext. r=brendan@mozilla.org 2000-03-29 01:18:21 +00:00
akkana%netscape.com 3bd08fc59c 9266: Disable JS in the editor (and allow for disabling it anywhere). r=brendan,jband,norris,sfraser 2000-03-28 00:15:56 +00:00
norris%netscape.com c7afcfb732 Fix
32088 Circumventing Same Origin security policy using javascript: URLs
        32040 about: can't be link
Also remove deprecated method
r=mstoltz
2000-03-24 22:15:37 +00:00
tbogard%aol.net a5f723338c Provided implementation for GetXPConnectObject, AddXPConnectObject and RemoveXPConnectObject. Changed RemoveXPConnectObject to only take the id since taking the pointer as well was useless. Also fixed an error in nsGlobalWindow.cpp with signed against unsigned of string lengths. 2000-03-24 00:11:48 +00:00
norris%netscape.com 07a6acc61f Fix bug 32904 Asserts at startup in nsScriptSecurityManager.cpp
r=mstoltz
2000-03-23 23:42:46 +00:00
hyatt%netscape.com 974924c12b Adding a couple of props. 2000-03-23 22:20:34 +00:00
hyatt%netscape.com 16fdea9f7b XUL <textfield> lives! 2000-03-23 22:17:37 +00:00
tbogard%aol.net 3eafb213dd Adding new methods to domwindow to be able to set and get at XPConnect Objects based on an ID. This allows attaching an object from JS to the window and then retrieving and calling it from C++. This is just the specification for the interfaces. The implementation is not yet fully there. 2000-03-23 04:23:26 +00:00
jst%netscape.com fb0a85bfac Update DOMImplementation, DocumentType and DOM Error codes to match the current DOM Level 2 recommendation, also make HTML documents have a DocumentType if one is given in the file. r=joki@netscape.com 2000-03-22 22:16:14 +00:00
valeski%netscape.com 5412e2c42d r=jst. 30067. we now expose OSCPU, vendor and product attributes of the user agent string through the JS navigator object. 2000-03-21 22:39:54 +00:00
hyatt%netscape.com 74a69fd9f7 Fix for bug #32587. 2000-03-21 02:05:15 +00:00
jst%netscape.com 9a1181dc2e Checking in patch from jband@netscape.com that makes it possible to build on Win98 again. r=me 2000-03-20 14:12:57 +00:00
norris%netscape.com 437a7174ea Fix a number of security bugs. (I can't see the numbers at home because
they have restricted visibility.)
r=mstoltz
2000-03-18 17:48:12 +00:00
jst%netscape.com b768001187 Landing changes Vidur made while the tree was closed for beta1 work, here's a list of the changes. r=me
[1] Cutting down the size of content. Made nsIJSScriptObject inherit from nsIScriptObjectOwner
[2] Cutting down the size of content. Made nsITextContent inherit from nsIContent.
[3] Cutting down the size of content. Moved implementation of nsIDOMReceiver to nsListenerManager. This is not true aggregation since it isn't transitive, but it's OK for now. It will be necessary for nsListenerManager to have a reference to its content in the future anyway, so the transitivity could be done.

dom/public/nsDOMPropEnums.h,v  - bug 12559
dom/public/nsIJSScriptObject.h,v - [1]
dom/public/html/MANIFEST,v - bug 12559
dom/public/html/Makefile.in,v - bug 12559
dom/public/html/makefile.win,v -  bug 12559
dom/public/html/nsIDOMHTMLInputElement.h,v - bug 17544
dom/public/idl/html/HTMLAnchorElement.idl,v - bug 12559
dom/public/idl/html/HTMLAreaElement.idl,v - bug 12559
dom/public/idl/html/HTMLInputElement.idl,v - bug 17544
dom/src/base/nsGlobalWindow.cpp,v - bug 30700
dom/src/base/nsGlobalWindow.h,v - [1]
dom/src/base/nsLocation.cpp,v - [1]
dom/src/html/nsJSHTMLAnchorElement.cpp,v - bug 12559
dom/src/html/nsJSHTMLAreaElement.cpp,v - bug 12559
dom/src/html/nsJSHTMLInputElement.cpp,v - bug 17544
layout/base/public/nsIDocument.h,v - bug 27953
layout/base/public/nsITextContent.h,v - [2]
layout/base/src/nsCommentNode.cpp,v - [2]
layout/base/src/nsDocument.cpp,v - bug 27953
layout/base/src/nsDocument.h,v - bug 27953
layout/base/src/nsDocumentViewer.cpp,v - bug 27953
layout/base/src/nsGenericDOMDataNode.cpp,v - [3]
layout/base/src/nsGenericDOMDataNode.h,v - [3]
layout/base/src/nsGenericElement.cpp,v - [3]
layout/base/src/nsGenericElement.h,v - [3]
layout/base/src/nsNameSpaceManager.cpp,v - bug 7834
layout/base/src/nsStyleContext.cpp,v - outline property shouldn't reflow
layout/base/src/nsTextNode.cpp,v - [2]
layout/events/src/nsEventListenerManager.cpp,v - [3]
layout/events/src/nsEventListenerManager.h,v - [3]
layout/html/base/src/nsGfxScrollFrame.cpp,v - nsString->nsAutoString
layout/html/content/src/nsAttributeContent.cpp,v - [2]
layout/html/content/src/nsHTMLAnchorElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLAppletElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLAreaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBRElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBaseElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBaseFontElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBodyElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLButtonElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDelElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDirectoryElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDivElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLEmbedElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFieldSetElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFontElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFormElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFrameElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFrameSetElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHRElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHeadElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHeadingElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHtmlElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLIFrameElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLImageElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLInputElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLInsElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLIsIndexElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLIElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLabelElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLayerElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLegendElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLinkElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMapElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMenuElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMetaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLModElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLObjectElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOptGroupElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOptionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLParagraphElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLParamElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLPreElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLQuoteElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLScriptElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSelectElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSpacerElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSpanElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLStyleElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableCaptionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableCellElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableColElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableColGroupElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableRowElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableSectionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTextAreaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTitleElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLUListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLWBRElement.cpp,v - [1][3]
layout/html/document/src/nsHTMLDocument.cpp,v - bug 27953
layout/html/document/src/nsHTMLDocument.h,v - bug 27953
layout/xml/content/src/nsXMLCDATASection.cpp,v - [1][2]
layout/xml/content/src/nsXMLDocumentType.cpp,v - [1][2]
layout/xml/content/src/nsXMLElement.h,v - [1][2]
layout/xml/content/src/nsXMLEntity.cpp,v - [1][2]
layout/xml/content/src/nsXMLNotation.cpp,v - [1][2]
layout/xml/content/src/nsXMLProcessingInstruction.cpp,v - [1][2]
layout/xul/base/src/nsBoxFrame.cpp,v - nsString->nsAutoString
layout/xul/base/src/nsSliderFrame.cpp,v - nsString->nsAutoString
netwerk/protocol/http/src/nsHTTPRequest.cpp,v - nsString->nsAutoString
rdf/content/src/nsXULDocument.cpp,v - bug 27953
rdf/content/src/nsXULDocument.h,v - bug 27953
rdf/content/src/nsXULElement.h,v - [1]
xpcom/base/IIDS.h,v  - bug 12559
2000-03-17 13:27:00 +00:00
cmanske%netscape.com 3852c08832 Removed tableselection notification from nsIDOMSelectionListener -- no longer needed. r=mjudge 2000-03-16 23:44:49 +00:00
norris%netscape.com b06e55722c 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
hyatt%netscape.com daf0f13722 XUL RadioGroup element, not used in XUL. r=ben, a=jar 2000-03-02 10:00:09 +00:00
pinkerton%netscape.com a290c101d0 saari checking in on pink's machine, fixing build, adding generated DOM idl file 2000-02-26 01:48:04 +00:00
saari%netscape.com 2928a1ce5c Fix PDT+ 28467, windows jumping z-order to front on load. r=hyatt a=jar 2000-02-26 00:58:12 +00:00
hyatt%netscape.com c5a3f61f35 XUL Property APIs, b=26109, r=ben 2000-02-25 08:37:49 +00:00
mjudge%netscape.com 0daab9915d r=jfrancis, a=jar Part of checkin including layout/base/src/nsRangeList.cpp to fix caret issues 2000-02-25 04:29:28 +00:00
pollmann%netscape.com 8e2121fb4d Bug 12513: Fix typo (win build bustage). 2000-02-24 00:24:10 +00:00
pollmann%netscape.com 3b493e429f Bug 12513: Add OptionCollection interface for Nav DOM compatability. r=vidur a=rickg 2000-02-24 00:08:00 +00:00
pollmann%netscape.com 0652b029b2 Bug 12513: Add OptionCollection interface for Nav DOM compatability. r=vidur a=rickg 2000-02-23 22:38:00 +00:00
vidur%netscape.com b604d41c72 Fix for bug 27775. Introduced idl keyword 'replaceable' and marked some of the newer window properties with it. Fixes pages like www.oracle.com that have define window-scoped variables with the same name. r=rginda, a=chofmann 2000-02-22 22:08:36 +00:00
rginda%netscape.com 6878336234 DOM fixes for bug 20721, r=vidur 2000-02-16 07:13:59 +00:00
joki%netscape.com 4596efac68 Fixes for bug 9544, 9552, 9558, 9561, and 13309. event handler 4x compat. and capture/bubble fixes. r:pollmann 2000-02-16 06:59:07 +00:00
vidur%netscape.com c6fd9d66f6 Fix for bug 9844. Added offsetTop/Left/Width/Height/Parent to nsIDOMHTMLElement. It should go on a new interface - to avoid the cost of new interface (a new vtable pointer per content instance), it's temporarily on the standard interface.r=pollmann 2000-02-16 02:25:27 +00:00
tbogard%aol.net e5db99a5b8 Adding the new interfaces for browserElement and iframeElement. r=hyatt 2000-02-15 04:43:29 +00:00
hyatt%netscape.com aa3b2f2d70 Fix for bug #20764. 2000-02-12 10:08:52 +00:00
hyatt%netscape.com 0294445c77 Fix for PDT+ bug #20764. 2000-02-12 10:08:23 +00:00
norris%netscape.com 8fe3d34730 Fix 18439 windows.status allows reading links
r=mstoltz
2000-02-11 04:18:39 +00:00
mjudge%netscape.com 81fa6f0397 added new java property. added it to nsDOMPropEnums.h to allow genprops.pl to give correct method name 2000-02-11 01:04:56 +00:00
mjudge%netscape.com ef4d168b22 fixes left out last night for range removal bug 2000-02-11 01:00:56 +00:00
hyatt%netscape.com 32608cd06a Fix for bug #25675. More focus memory framework being checked in for the
command dispatcher as well.
2000-02-11 00:59:32 +00:00
hyatt%netscape.com ee936f8a80 Fix for 20471. Basic focus memory framework being checked in as well. 2000-02-11 00:57:54 +00:00
mjudge%netscape.com a6c152c8ec adding remove range for table selection and for completeness. 26460 r=cmanske 2000-02-10 09:17:02 +00:00
mjudge%netscape.com fbee83f4cf clearing strange M flag on file. must ahve checked in a space instead of tab or something 2000-02-10 08:24:23 +00:00
mjudge%netscape.com 67098850ca adding one more prop for selection 2000-02-10 08:21:42 +00:00
mjudge%netscape.com a27771d4f5 big checkin. fixing problems blocking Cmanske (also a reviewer). Checking in preliminary for gen content.(nothing damaged yet) lots of bug numbers not going to look them up, the tree just opened. 2000-02-10 04:35:51 +00:00
tbogard%aol.net f5d81c3e9c GlobalWindow now calls up nsIDocShellTreeOwner rather than nsIBrowserWindow. GlobalWindow has mostly been re-organized as well as cleaned up to provide this new functionality. DocShellTreeOwners got implementations filled in and many bugs fixed. nsIScriptGlobalObject now talks in terms of docShells instead of webShells. Fixed a number of cases where people were walking through content viewers etc to get to a presShell and changed them to simply ask for the presShell from the docShell. GlobalWindow now deals completely in terms of docShells. r=vidur 2000-02-08 13:40:10 +00:00
joki%netscape.com b7846d75d9 Adding getPreventDefault method to events and fixing its propagation through content. r:hyatt 2000-02-08 02:05:57 +00:00
pp%ludusdesign.com 398abcaaf7 Added generated file directories to .cvsignores, r=mozbot. 2000-02-03 22:17:22 +00:00
vidur%netscape.com d0c2a493f3 Fix for bug 19185. document.clear(), which exists for JS compatibility anyway, now takes a JS context and uses it to find the URL of the calling context. r=pollmann 2000-02-03 00:25:53 +00:00
hyatt%netscape.com 519b52041d Getting rid of createPopup on the DOM window. 2000-01-28 03:02:04 +00:00
hyatt%netscape.com a4e0c0233d Left out two files. 2000-01-27 00:12:00 +00:00
saari%netscape.com 7ce4f57ec3 fix for 14346, 21854, 24380 and other caret bugs. r= hyatt, brade for the mac menu stuff. 2000-01-26 22:41:43 +00:00
norris%netscape.com e7f484f030 Fix 23227 Document object vulnerability
r=mstoltz
2000-01-26 15:33:57 +00:00
hyatt%netscape.com 0f660e6f84 Fixes for bugs: 18193, 13971, 23440, 18444, 21462, 21818, 22619, 23498, 24081, and 21972. r=just about everybody. 2000-01-25 06:35:27 +00:00
waterson%netscape.com 903106b34d Bugs 18127, 20677, 23905. Partial fix. Give the nsXULPrototypeDocument it's own JSContext to use for compiling scripts and event handlers. Modify script and event handler code to compile shared scripts using this context, if appropriate. r=brendan 2000-01-22 22:00:35 +00:00
vidur%netscape.com c18e98ecea Cleanup - dealing with people modifying the idl generator and not checking in the generated file or vice-versa. r=pollmann. 2000-01-18 23:41:27 +00:00
vidur%netscape.com 9679502c54 Fix for bug 9378. document.layers now returns undefined, not null. r=pollmann 2000-01-18 23:35:47 +00:00
vidur%netscape.com e0f519fdef Fix for bug 22594. Implemented window.escape() and unescape(). R=ftang 2000-01-15 02:26:10 +00:00
tao%netscape.com 36794ca76e bug 23400: Need to expose api GetDocumentCharacterSet() to JS. r=vidur. 2000-01-15 02:01:05 +00:00
pollmann%netscape.com 97e95d0b11 Bug 14419 (3 of 4): Make option text read/write (glue header) r=harishd 2000-01-15 01:49:39 +00:00
pollmann%netscape.com 33e0bf4fce Bug 14419 (2 of 4): Make option text read/write (idl) r=harishd 2000-01-15 01:45:02 +00:00
alecf%netscape.com 8d94f68ba7 expose the form controls in a XUL document in the "controls" DOM attribute
this will make prefs and wizards much faster
r=hyatt
2000-01-13 02:59:08 +00:00
hyatt%netscape.com 3d186ddce8 adding behavior property to CSS. r=brendan 2000-01-11 03:40:41 +00:00
norris%netscape.com 18d9ee89da Fix
858  [Feature] JavaScript auto-disable per-domain RFE
    13023 Users must be able to disable Java and JavaScript (for JS in mail)
    21923 Executing functions in "chrome:" protocol - #2.
    r=mstoltz

    (Checked in with red on Mac; Wan-Teh says his changes are localized so
     it shouldn't interfere with his fixing bustage.)
2000-01-08 16:51:54 +00:00
brendan%mozilla.org bd00bf675b (bug 22795, r=vidur@netscape.com)
- Add "aShared" flag to nsIScriptContext::CompileEventHandler, telling it to clear the compiled event handler's scope chain if true, in order to
  (a) avoid entraining garbage
      (i.e., a shared compile-time-only parent object); and
  (b) cause later BindCompiledEventHandler calls to ensure that the event handler has the particular scope chain needed for the binding
      (to the target object that's receiving the event).
- Use :: consistently (and all over the place) before calls to JS_ functions in nsJSEnvironment.cpp.
- Eliminate tabs and barbarians-at-the-gate-of-Rome style, in favor of when-in-Rome style (hail Waterson Maximus!)
2000-01-08 00:24:24 +00:00
vidur%netscape.com bc3cf76724 Fix for bug 23074. Implemented image.complete. r=pollmann 2000-01-06 23:41:14 +00:00
norris%netscape.com 336a9a916a Fix assertion failure at startup caused by failure to run genPropNames.pl.
r=mstoltz@netscape.com
2000-01-06 22:04:18 +00:00
alecf%netscape.com 4a01d2ad5a add new method to ensure that tree content is visible: go through all the presentation shells, and call EnsureRowIsVisible for each tree.
also expose a method to get the visible row for a tree - I needed it anyway, figured I might as well expose it from JS.
other half of fix for #12895
r=bryner
2000-01-06 07:54:43 +00:00
vidur%netscape.com 6a8920958f Fix for bug 23066. Added getter/setter for image.lowsrc for compatibility - the DOM defines image.lowSrc (note the case difference). r=pollmann 2000-01-06 01:15:55 +00:00
norris%netscape.com 8343c4ead7 Fix 22909 previousSibling vulnerability
r=mstoltz
2000-01-06 00:59:18 +00:00
vidur%netscape.com 949d52cd68 Fix for bug 16787. Added navigator.cookieEnabled. Removed warnings. a=don r=waqar 1999-12-22 22:42:06 +00:00
vidur%netscape.com 996381c8eb 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 7d0cb0f4bb 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 76d39e5500 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 02e36a6d94 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 1b616e7c2d 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 c4db584578 Fixing build bustage on Linux 1999-12-14 00:55:37 +00:00
davidm%netscape.com c70ce7fd5a #ifdef out code for controller. Checkin to unblock mjudge and other r= mjudge 1999-12-13 23:13:33 +00:00
hyatt%netscape.com 2f25a4ed69 Modifications to support the command dispatcher. r=saari 1999-12-08 04:58:05 +00:00
hyatt%netscape.com 540fd03206 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 1eb3d4e793 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 c939085774 - 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 723af171cd 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 72e0d22417 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 7cbc73af50 Changed IID to remove conflict in IIDs.h 1999-12-04 01:29:54 +00:00
tbogard%aol.net 648ace3e23 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 f3855ca6b0 - 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 ca89dc75d3 Adding nsIScriptGlobalObjectOwner.idl to the manifest. 1999-12-02 06:18:32 +00:00
tbogard%aol.net abcaa9eac8 Connecting nsIScriptGlobalObjectOwner.idl to be compiled. Not yet used anywhere. 1999-12-02 06:16:08 +00:00
tbogard%aol.net 09447ba051 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 a9db94dfe7 adding 'close' xul event handler. part of bug 13695. r:hyatt@netscape.com 1999-12-01 22:35:33 +00:00
rods%netscape.com 3978a5d81b removing all lower case version of this file 1999-12-01 16:10:00 +00:00
rods%netscape.com bfff20d48a bug 2253 1999-12-01 15:54:59 +00:00
buster%netscape.com aa753bbcf7 bug 2253. added controller to html text input
r = kmcclusk, norris
1999-12-01 15:11:33 +00:00
hyatt%netscape.com ce7a5655c1 More skin goodness. r=gimpy 1999-11-30 09:29:43 +00:00
tbogard%aol.net 451a2d9ba9 Removing now that the interface definition can be found in the IDL file. 1999-11-30 04:09:16 +00:00
tbogard%aol.net daf9aae013 Would help if I removed nsIScriptContextOwner.h instead of nsIScriptObjectOwner.h 1999-11-30 00:28:40 +00:00
tbogard%aol.net a53e75b252 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 983c95f3e6 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 cbe8a786f9 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 0acfc03931 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 f7594c869d 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 506027739d 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 caac65472e Added nsIJSEventListener.h 1999-11-24 23:59:08 +00:00
vidur%netscape.com d4602715d7 Added window.scroll(). Reverted back to NPL 1.1. R=joki 1999-11-24 23:58:43 +00:00
vidur%netscape.com 9f18003595 Added window.scroll() 1999-11-24 23:56:39 +00:00
tbogard%aol.net a0640b60c4 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 1c4dac85f3 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 04cfddc50d DOM extension for exposing text areas to XUL
bug 12022, r=rickg
1999-11-19 07:18:25 +00:00
brendan%mozilla.org 61969913a1 XULDOMJS_19991106_BRANCH landing (15146, r=vidur@netscape.com) 1999-11-12 06:08:14 +00:00
vidur%netscape.com d2808ba000 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 8535dda53e 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 42fc94a6ec 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 c4b152d3ea 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 1e6e741087 Reverting key set to previous version. Fixes 17887. a:chofmann r:brade. 1999-11-03 20:40:35 +00:00
joki%netscape.com d5c05ea133 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 fe51b61664 (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 79161b6191 fix bustage. 1999-10-28 22:38:58 +00:00
ftang%netscape.com 0df9b27457 remove nsIDOMTextRange.h nsIDOMTextRangeList.h. fix bug 12756. r=tague 1999-10-28 22:05:42 +00:00
vidur%netscape.com 67327a2a7c Added a version of window.close, which when alled from script that defers actual closure if it is invoked from the script context of the window itself. Fixes bug 15261. R=joki. 1999-10-28 14:12:56 +00:00
hyatt%netscape.com b2564031fe Landing re-architected command dispatcher. r=hangas(XUL/JS), saari(C++) 1999-10-14 10:58:25 +00:00
vidur%netscape.com c043ed0abd Added window.scrollBy/scrollTo/scrollX/scrollY. Scopus bug 361046. R=troy 1999-10-06 22:07:42 +00:00
vidur%netscape.com 5886af2ed2 Added document.width/document.height to nsIDOMNSDocument. Bug 961. R: troy 1999-10-06 20:33:58 +00:00
norris%netscape.com 3c14af2f14 Fix the following bugs:
14443 "Same origin" security policy may be circumvented using docu
14820 Fixing up the relationship between nsCodeBasePrincipal and n
14919 Crash in JS MM code
Reviewed by mstoltz, approved by scc.
1999-10-02 03:41:37 +00:00
law%netscape.com be924c200c Fixes for context menus; a=hyatt (I just pressed the keys he told me to :-) 1999-09-22 06:27:28 +00:00
joki%netscape.com de1d4abc32 Adding support for event.clickCount, obsoleting old dblclick event. 1999-09-22 02:29:33 +00:00
saari%netscape.com 6df67e6af3 Changing broadcaster to use onbroadcast instead of oncommand. Adding the "braodcast" "commandupdate" and "input" events. Changed all xul observes nodes to use onbroadcast instead of onchange. 1999-09-21 23:02:35 +00:00
joki%netscape.com 70f5a105ba Adding old 4.x capture/release compatibility code, changing dom event VK_* names to DOM_VK_* 1999-09-21 14:18:52 +00:00
vidur%netscape.com b7862591d9 Corrected signature of History::Go() 1999-09-21 05:48:45 +00:00
vidur%netscape.com 582844bca0 Corrected signature of History::Go() 1999-09-21 05:11:55 +00:00
cmanske%netscape.com f58aeef452 Adding CollapseToStart and CollapseToEnd methods to selection 1999-09-21 01:27:59 +00:00
akkana%netscape.com 7af5b4431e Add ToString API to nsIDOMSelection 1999-09-20 21:05:01 +00:00
norris%netscape.com d1e37156bd Add ability to disable JS. Fix 13978 shopping at webvan.com crashes 1999-09-17 20:13:52 +00:00
waterson%netscape.com 2e319c75dd Bug 13970. Implement 'commandupdater=' attribute to hook up command udpater nodes to the XUL document's command dispatcher. Make API modifications to support command filtering. Some improvements to XUL document to factor out iteration code. 1999-09-17 04:01:46 +00:00
pollmann%netscape.com f919d0cc91 Bug 12350: selected read/write 1999-09-16 20:13:41 +00:00
norris%netscape.com ae296a06da Add security support for javascript: uris. 1999-09-15 20:58:41 +00:00
briano%netscape.com 7603ba96d1 General cleanup. 1999-09-11 00:59:11 +00:00
sfraser%netscape.com fff3c0f283 Fix the autogeneration of nsIDOMSelection so that the header is in synch with the IDL 1999-09-10 00:53:04 +00:00
slamm%netscape.com 39be66f41f Backout autogenerate changes. This file has been hand modified. 1999-09-09 19:54:54 +00:00
slamm%netscape.com c8ad76c49b Fix build warnings. 1999-09-09 19:16:12 +00:00
vidur%netscape.com 601ecbec81 Added JS exceptions to DOM glue. Added implementation for nsIDOMDOMException. Added nsIScriptContextOwner::ReportScriptError. 1999-09-08 23:14:30 +00:00
danm%netscape.com fe1d16cc98 implemented intrinsic sizing method on DOM Window 1999-09-03 22:41:56 +00:00
waterson%netscape.com cdc5abdb40 Persistence, again. 1999-09-03 07:02:25 +00:00
law%netscape.com c06e116a1d Add forward decls to resolve references in generated .h files 1999-09-02 01:07:55 +00:00
vidur%netscape.com fc165774c5 Removed as per DOM Level 1 errata 1999-09-02 00:31:55 +00:00
kipp%netscape.com ba5267e7a6 new 1999-09-01 01:14:01 +00:00
cyeh%netscape.com 26effbde96 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 01:13:14 +00:00
kipp%netscape.com 35c1d2f782 Get copy to directory name right (ick) 1999-09-01 00:59:02 +00:00
kipp%netscape.com 0b2ce0deff updated from idlc 1999-09-01 00:57:28 +00:00
kipp%netscape.com c3f860f3af obsolete 1999-09-01 00:57:01 +00:00
kipp%netscape.com f705f5d68f Added unix build rules 1999-09-01 00:54:37 +00:00
kipp%netscape.com 947dac0fa9 Removed rc field 1999-09-01 00:54:18 +00:00
norris%netscape.com 59b4dc8374 * clean up nsScriptSecurityManager
* remove nsJSSecurityManager
* save principals in nsIChannels and nsIDocuments
1999-08-29 21:58:42 +00:00
vidur%netscape.com 37cc42f075 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
hyatt%netscape.com 05440effd3 Changing focus tracker to be the command dispatcher. 1999-08-25 01:49:24 +00:00
nisheeth%netscape.com a864c7330c Checking in patch from Johnny Stenback (jst@citec.fi) that exposes notation and entity creation DOM interfaces. 1999-08-24 22:15:45 +00:00
hyatt%netscape.com 7513b7afc1 More selection work. 1999-08-22 06:53:01 +00:00
hyatt%netscape.com a8d6a9115c Checking in the selection implementation (with more functions added). 1999-08-22 06:31:00 +00:00
hyatt%netscape.com c28227eb81 Defining the selection API for the tree widget. Stubbed all of the functions.
Now I just have to implement them all.
1999-08-22 06:01:52 +00:00
hyatt%netscape.com 7f859a0884 Adding more to the tree's idl. 1999-08-21 20:23:56 +00:00
hyatt%netscape.com 7a65851a9f Checking in changes that teach the tree element how to have its own
array of selected items and cells.
1999-08-21 19:53:39 +00:00
pollmann%netscape.com f4dbc5a3bf Bug 3285: Update header files to add item method to proprietary interface. 1999-08-21 02:56:03 +00:00
pollmann%netscape.com 2c8577286b Bug 3285: Update idl files to add item method to proprietary interface. 1999-08-21 02:55:06 +00:00
arielb%netscape.com bb8560101c includes updates to codbase matching security checks currently turned off
but in place.  redefined the script security manager in caps and it is
now generating codebase principals.
1999-08-20 09:51:02 +00:00
ducarroz%netscape.com b9a6e77625 Add attribute "autocomplete" 1999-08-19 22:10:52 +00:00
vidur%netscape.com 5daa6435c2 Changed method signature of EvaluateScript to return nsresult. Added nsJSThreadContextStack pushing and popping around script evaluation. 1999-08-19 20:36:31 +00:00
pinkerton%netscape.com 4616264a3d add drag gesture event. 1999-08-19 19:48:58 +00:00
waterson%netscape.com a5f6d1fab1 Re-add nsIDOMXULTreeElement.h to the build, pending selection API work. 1999-08-18 02:15:29 +00:00
waterson%netscape.com aaf5b43654 Re-add XULTreeElement for selection tracking API. 1999-08-18 02:12:53 +00:00
brendan%mozilla.org 17411df5fe Regenerate to eliminate degenerate unsigned comparisons and dead code. 1999-08-10 07:30:11 +00:00
vidur%netscape.com 2c483b63f2 Changed attribute getter glue to use NS_SUCCESS macro instead of comparing to NS_OK 1999-08-09 19:19:49 +00:00
vidur%netscape.com 4876025852 changed name of NS_CreateContext to NS_CreateScriptContext 1999-08-09 19:14:49 +00:00
joki%netscape.com da36d40b61 Adding new onselect event. Also slight modification to ender text widget focus behavior 1999-08-07 23:18:35 +00:00
hoa.nguyen%intel.com b247f341df Added nsIDOMHTMLEmbedElement.h to exports. 1999-08-07 21:54:55 +00:00
hoa.nguyen%intel.com 1de0b995c5 DOM interface for embed tag. 1999-08-07 21:53:28 +00:00
tague%netscape.com 01517d6781 Missed adding a generated file. 1999-08-06 03:45:59 +00:00
tague%netscape.com c2184740ba Added replies from DOM private text events 1999-08-06 02:39:48 +00:00
hoa.nguyen%intel.com 86c9ff7fcf Added HTMLEmbedElement.idl. 1999-08-03 23:52:13 +00:00
hoa.nguyen%intel.com 18ec7209f8 DOM element for embed tags. 1999-08-03 23:50:07 +00:00
vidur%netscape.com 73720c9bf9 Relative URLs specified for window.location.href are now resolved relative to the calling location. 1999-08-03 23:16:48 +00:00
waterson%netscape.com f6b84db71a Land TEMPLATE_19990726_BRANCH; RDF C++ content model builder exorcism. 1999-07-27 17:20:28 +00:00
waterson%netscape.com 914b2cade7 Re-add. Wasn't meant to be deleted yet. 1999-07-27 03:03:25 +00:00
waterson%netscape.com 70d9500cde XULTreeElement.idl 1999-07-27 02:58:39 +00:00