Commit Graph

1013 Commits

Author SHA1 Message Date
tbogard%aol.net
f382be7ec2 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
jst%netscape.com
e85facb819 Add null ptr checks to avoid crashing, this fixes #30372. r=av@netscape.com 2000-03-31 00:31:44 +00:00
tbogard%aol.net
4ac35be0c1 nsIDocShell::LoadURI now takes a nsIDocShellLoadInfo parameter to do fancier loads which include replacing current history slots and passing in a referrer. In the future more things may be set on the nsIDocShellLoadInfo interface. This allows us to not have to add a new parameter for every new type of load info that might be needed in different loads. 2000-03-30 22:38:32 +00:00
tbogard%aol.net
a6d51f6797 Don't get the referrer spec when the referrer is null. 2000-03-30 08:07:18 +00:00
pavlov%netscape.com
c9dc6c9522 fix build bustage 2000-03-30 05:23:20 +00:00
tbogard%aol.net
017e88eaa4 Changed CheckURL to return a nsIURI for the referrer instead of a nsString. SetURL now calls nsIDocShell to do it's load instead of nsIWebShell. 2000-03-30 04:55:38 +00:00
jim_nance%yahoo.com
dc0e139673 Bug 33322 - Fix compiler warnings. Its been on n.p.m.builds for a few
days for module owners to comment on.  r=troy@netscape.com
2000-03-30 03:21:26 +00:00
alecf%netscape.com
e1aab6a3e5 add local nsIPref.h dependancy to remove global one 2000-03-29 09:48:41 +00:00
tbogard%aol.net
c2819cb0ba Make sure to dump the xpConnectObjectHash when we load a new document. Use the new docShell API for loading a URI rather than the old nsIWebShell code. Since this takes a uri, this also allows us to avoid creating and destructing a uri/ a character spec. We can now just pass the URI to be loaded. 2000-03-29 06:16:16 +00:00
warren%netscape.com
727f312b32 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
hyatt%netscape.com
ca3c35c57d Enhancements to nsIScriptcontext. r=brendan@mozilla.org 2000-03-29 01:18:21 +00:00
akkana%netscape.com
1b96eaa6ca 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
scc%netscape.com
c159ce9031 small changes to clients of string converting APIs 2000-03-26 09:07:50 +00:00
norris%netscape.com
4eb52aa84b 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
572cbf3733 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
593a12b912 Fix bug 32904 Asserts at startup in nsScriptSecurityManager.cpp
r=mstoltz
2000-03-23 23:42:46 +00:00
hyatt%netscape.com
eed6f05955 Adding a couple of props. 2000-03-23 22:20:34 +00:00
hyatt%netscape.com
88438460a7 XUL <textfield> lives! 2000-03-23 22:17:37 +00:00
av%netscape.com
aac4b2fb97 Fixing null-pointer access causing variuos crashes, bug #30372, r=jst 2000-03-23 21:42:23 +00:00
tbogard%aol.net
a02a62b0ad 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
2745ce2c5d 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
norris%netscape.com
b4309b139a Fix
28387 nBookmarking javascript: URLs is dangerous
32343 Components object appears to be accessible via javascript: u
31707 Crash when logging into hotoffice.com
r=mstoltz
2000-03-21 23:16:55 +00:00
valeski%netscape.com
d4b0de78fc 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
eb590233a8 Fix for bug #32587. 2000-03-21 02:05:15 +00:00
jst%netscape.com
3c8ef123b8 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
d2401d0be5 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
norris%netscape.com
d6d9c3c79b Remove comment that is no longer true. 2000-03-17 22:18:54 +00:00
jst%netscape.com
872a669579 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
fa8957446f Removed tableselection notification from nsIDOMSelectionListener -- no longer needed. r=mjudge 2000-03-16 23:44:49 +00:00
rickg%netscape.com
194f10b94d landing phase 2 to remove deprecated string calls 2000-03-12 11:10:07 +00:00
rickg%netscape.com
ffe78e83e5 removed calls to deprecated string methods 2000-03-12 09:14:14 +00:00
tbogard%aol.net
6f99d05f74 Fixed ordering of member variable initialization to fix compiler warnings. Back() and Forward() now use the nsIWebNavigation interface instead of the old nsIWebShell one. 2000-03-11 11:58:13 +00:00
norris%netscape.com
060e388a6b 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
norris%netscape.com
9b2edd3c59 Remove mURL from nsWebShell, and GetURL from nsIWebShell.
r=travis
2000-03-11 02:57:39 +00:00
tbogard%aol.net
ca737d3b79 Use the nsIWebNavigation interface for loading an URL where possible instead of the old webShell one. When calling FindChildWithName add the new parameter to state that a child of a different type if ok to return. 2000-03-11 00:59:08 +00:00
tbogard%aol.net
5ecfcfafb4 FindChildWithName now takes a new parameter for if children of different types should be returned. We pass FALSE here to say children of a different type is fine. 2000-03-11 00:57:01 +00:00
mscott%netscape.com
26d9b3ad83 Bug #30553 --> properly get the correct window sizes for new windows created with a window target. This code
was actually written by travis and was reviewed by danm. I'm just checking it in for him.
a=jevering
2000-03-09 08:19:22 +00:00
valeski%netscape.com
e34603f984 r=vidur. a=jevering. We now advertise Netscape like we always did in the AppName field 2000-03-07 15:35:48 +00:00
warren%netscape.com
c0497e31be Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
hyatt%netscape.com
d6796e3c65 XUL RadioGroup element, not used in XUL. r=ben, a=jar 2000-03-02 10:00:09 +00:00
mcafee%netscape.com
d43ab625b4 Fixing unix bustage, should use PR_TRUE. 2000-02-26 02:56:29 +00:00
vidur%netscape.com
53507a2af2 Fix for bug 27935. Found a FMR in nsGlobalWindow::Runtimeout that caused a timing-dependent crash. r=pinkerton,pollmann 2000-02-26 02:28:27 +00:00
pinkerton%netscape.com
4e3e72a47c saari at pink's machine again, another generated file 2000-02-26 02:03:04 +00:00
pinkerton%netscape.com
bd834b5c7f 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
dbaa79f38a 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
5ff8c68587 XUL Property APIs, b=26109, r=ben 2000-02-25 08:37:49 +00:00
mjudge%netscape.com
fc3ebb697e part of checkin to add new getter and setter to nsIDOMSelection. a=jar r=jfrancis 2000-02-25 04:30:31 +00:00
mjudge%netscape.com
0035fc652a 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
tbogard%aol.net
58eb012885 Fixed build warnings. 2000-02-25 01:15:37 +00:00
tbogard%aol.net
9ebce62660 Reload now goes through the new nsIWebNavigation interface instead of the old nsIWebShell interface. Work on 13374 and landing of new session history/ uriloading. r=mscott a=jevering 2000-02-24 03:57:32 +00:00