216 Commits

Author SHA1 Message Date
nisheeth%netscape.com
8a6a52bef1 1) Added support for loading an XML document "out of band" from script and manipulating it via dom interfaces.
2) Fixed compile errors in XSL glue code that happened after the recent nsString landing by scc.
3) Added a check for a null URI before de-referencing it in nsCodeBasePrincipal.cpp.


git-svn-id: svn://10.0.0.236/trunk@67709 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 06:58:53 +00:00
mjudge%netscape.com
3cd9a051da making string conversions explicit. scc
git-svn-id: svn://10.0.0.236/trunk@67161 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:13:55 +00:00
joki%netscape.com
8aabc79a05 fixes for 5995, 7304, 10573, 22832, and 9668.
Changes to event handling to deal with reentrant events, cursor fixes, and return value fixes.


git-svn-id: svn://10.0.0.236/trunk@66958 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 04:41:27 +00:00
scc%netscape.com
7741d6c076 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66139 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:19:26 +00:00
scc%netscape.com
22d3ef155d attempting to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@66105 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 21:48:04 +00:00
scc%netscape.com
2c6ea08501 attempting to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@66104 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 21:46:25 +00:00
scc%netscape.com
b5432ec86e making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66103 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 21:18:29 +00:00
jst%netscape.com
c64f805590 Update the DOM interface to DOM Level 2, only stubs so far.
git-svn-id: svn://10.0.0.236/trunk@65872 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:21:02 +00:00
heikki%citec.fi
57ff046d84 Missing QI entry for an interface we inherit from. Found by ddediu@usa.net, thanks. r=me.
git-svn-id: svn://10.0.0.236/trunk@65810 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 12:19:50 +00:00
heikki%citec.fi
839955a875 Test files for XML Base. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@65786 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:40:17 +00:00
heikki%citec.fi
ea22c7c2e0 Implemented XML Base (http://www.w3.org/TR/xmlbase). Still some issues with escaping illegal chars in URLs etc. Bug 32842.
git-svn-id: svn://10.0.0.236/trunk@65783 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:38:31 +00:00
hyatt%netscape.com
c1aeb69e54 Elimination of nsIFocusableContent and improvements to tabbing r=saari
git-svn-id: svn://10.0.0.236/trunk@65217 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 23:55:31 +00:00
jst%netscape.com
c76b431214 Updating the interfaces Document and HTMLDocument to comply with DOM Level 2, only stubs for new methods for now.
git-svn-id: svn://10.0.0.236/trunk@64942 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-02 17:46:30 +00:00
jst%netscape.com
2b2767bff4 Updating the DOM Node interface to match the DOM Level 2 interface, only stub implemetations so far.
git-svn-id: svn://10.0.0.236/trunk@64881 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 13:31:23 +00:00
nisheeth%netscape.com
dea3118b7e Fix for bug 15086. These changes bring us up to date with the Feb 2000 XLink Working Draft. Thanks a lot to Heikki (heikki@citec.fi) for providing these patches.
git-svn-id: svn://10.0.0.236/trunk@64828 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 00:39:15 +00:00
nisheeth%netscape.com
9c91417984 r=pollmann. Fix for bug 29395. XML error messages now show up in the content area for XML, RDF, and XUL files. Earlier, they would only show up for XML files.
- Generate tokens in the expat tokenizer to display an XML error message.
- Process those tokens in the XML DTD
- Add a SetStringValue() method to CToken that accepts an nsString parameter.
- Removed code in the XML content sink's NotifyError() method to create error message content.


git-svn-id: svn://10.0.0.236/trunk@64553 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 01:41:48 +00:00
norris%netscape.com
eac4ea696c Fix bug 7264 All JavaScript running with correct principals
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@64317 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 03:59:46 +00:00
nisheeth%netscape.com
3b02feee33 r=pollmann. Fix for bug 17643.
- Rewrote GetQuotedAttributeValue() so that it handles whitespace and attribute names inside attribute values.
- The xml stylesheet PI now only needs a href attribute to work right.  Other attributes like title, media, alternate, default to null.  The type attribute defaults to "text/css".


git-svn-id: svn://10.0.0.236/trunk@64274 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 00:18:13 +00:00
scc%netscape.com
d88198c611 small changes to clients of string converting APIs
git-svn-id: svn://10.0.0.236/trunk@64167 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-26 10:06:21 +00:00
norris%netscape.com
953def32a1 Fix
32088 Circumventing Same Origin security policy using javascript: URLs
        32040 about: can't be link
Also remove deprecated method
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@64066 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 22:15:37 +00:00
jst%netscape.com
982d8bc3ce Make mozilla not crash when accessing XML elements from JS. r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@63938 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 00:00:30 +00:00
jst%netscape.com
0436606d70 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
git-svn-id: svn://10.0.0.236/trunk@63772 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 22:16:14 +00:00
jst%netscape.com
90ebc6a542 Reducing the size of text nodes by 4 bytes per node. r=troy
git-svn-id: svn://10.0.0.236/trunk@63671 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 01:23:42 +00:00
nisheeth%netscape.com
9317eafd78 r=pollmann. Bug 30916. Content IDs are created for HTML elements created in the HTML content sink, XML content sink and dynamically via JS. The content ID counter is maintained by the document.
git-svn-id: svn://10.0.0.236/trunk@63529 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 03:25:16 +00:00
jst%netscape.com
96aefc9b5d 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


git-svn-id: svn://10.0.0.236/trunk@63290 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 13:27:00 +00:00
jdunn%netscape.com
f14c7dc57f just adding 'newlines' UGH!
git-svn-id: svn://10.0.0.236/trunk@62817 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 03:01:38 +00:00
rickg%netscape.com
8a2887eab8 remove calls to deprecated string methods
git-svn-id: svn://10.0.0.236/trunk@62711 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 10:02:40 +00:00
rickg%netscape.com
1bd57cb94b removed calls to deprecated string methods
git-svn-id: svn://10.0.0.236/trunk@62707 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 09:14:14 +00:00
hyatt%netscape.com
66a75b2282 Improving XBL support.
git-svn-id: svn://10.0.0.236/trunk@62642 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 10:38:36 +00:00
tbogard%aol.net
891750e638 Get the contentViewer from the docShell APIs rather than the webShell ones.
git-svn-id: svn://10.0.0.236/trunk@62566 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 00:29:47 +00:00
tbogard%aol.net
54a675dd69 Converted a number of places to use the docShell APIs instead of the webShell ones.
git-svn-id: svn://10.0.0.236/trunk@62565 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 00:28:44 +00:00
cata%netscape.com
1d5e18767f Backing out fix for #7886 to fix regression #30299
git-svn-id: svn://10.0.0.236/trunk@62223 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-04 21:44:58 +00:00
cata%netscape.com
39c18d688d last bit in activating charset override
git-svn-id: svn://10.0.0.236/trunk@62106 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-03 02:21:24 +00:00
tbogard%aol.net
495826cccc nsIPref is no longer passed around through inits on webshell, content viewers and presContext. In places where it is needed, it can be retrieved from the service manager. I removed a number of the getters and setters for prefs as the prefs will be the same from the service manager so we don't need getters. r=waterson a=rickg
git-svn-id: svn://10.0.0.236/trunk@62038 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 07:13:02 +00:00
norris%netscape.com
bf96355ad4 Fix 28612 META Refresh allowed in Mail/News
r=mstoltz,a=jar
Fix 28658 File upload vulnerability
r=vidur,a=jar


git-svn-id: svn://10.0.0.236/trunk@61523 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 22:34:40 +00:00
nisheeth%netscape.com
942cd9ee54 r=pollmann. Fix for PDT+ bug 28556. We were leaking nsIAtom's in the XML content sink. Thanks to Patrick Beard for providing the fix.
git-svn-id: svn://10.0.0.236/trunk@61520 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 22:16:03 +00:00
jbetak%netscape.com
2db71b24f1 bug 12502, View Source doesn't display non UTF-8 charsets on doc's w/o HTTP or Meta
r=ftang
a=bobj


git-svn-id: svn://10.0.0.236/trunk@61467 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 01:48:22 +00:00
jdunn%netscape.com
659b2712ed Fix problem with NS_IF_ADDREF on member variables inside of const
member functions.  This includes removing all references to
NS_DEF_PTR and the including of nsIPtr.h

r=troy@netscape.com,dougt@netscape.com,scc@netscape.com
# 28114
a=chofmann@netscape.com


git-svn-id: svn://10.0.0.236/trunk@61237 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 23:19:18 +00:00
kmcclusk%netscape.com
31beeacc3d Prevent synchronous paints during reflows bug 20150; r=rods@netscape.com
Call SetTextAlign within SetupDC instead of in each DrawString on WIN32. bug 26973; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@60242 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 15:48:01 +00:00
valeski%netscape.com
8abecb4b3e r=warren. nsIUnicharStreamLoader is dead. Now we have a generic byte stream loader that can be used for any sort of data.
git-svn-id: svn://10.0.0.236/trunk@59559 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 23:04:47 +00:00
pp%ludusdesign.com
a2927ce43e Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot
git-svn-id: svn://10.0.0.236/trunk@59537 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:24:56 +00:00
warren%netscape.com
94953b11eb Fix to propagate failure from MakeAbsolute to DOM event handler. r=vidur,joki
git-svn-id: svn://10.0.0.236/trunk@59032 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 06:55:27 +00:00
nisheeth%netscape.com
26ad5f5255 Work done by Vidur and me. Added a FlushPendingNotifications() method to the document. This method flushes the pending content notifications from the content sink and the pending reflow notifications from the pres shell. This code is turned off for now so that it can be tested more thoroughly by Vidur and me.
git-svn-id: svn://10.0.0.236/trunk@58465 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-24 06:43:15 +00:00
jst%citec.fi
d592dbb12a Fixing build bustage on linux, added a missing .get() on a nsCOMPtr. a=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@58345 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-21 02:30:02 +00:00
vidur%netscape.com
e66d7c18a4 a=chofmann. r=nisheeth, hyatt. Revised fix for bug 24442 and 24524. Switched
reference count handling for the content stack to use nsISupports. The previous
check introduced a leak.


git-svn-id: svn://10.0.0.236/trunk@58340 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-21 01:32:32 +00:00
vidur%netscape.com
80a6fe785d a=chofmann. r=vidur, troy. This is Nisheeth checking in on Vidur's machine. This fixes
bug 24442 and bug 24524.  The content stack wasn't addref'ing the content objects pushed
onto it while the content sink destructor was releasing the content objects.  This caused
a crash because the root content object would get freed one too many times.  Now,
PushContent() addrefs the content object before inserting it into the content stack.


git-svn-id: svn://10.0.0.236/trunk@58332 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-21 00:05:36 +00:00
mcafee%netscape.com
d6b7933dcd Need newline at end of file for some unixes. a=leaf
git-svn-id: svn://10.0.0.236/trunk@58247 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 19:17:22 +00:00
hyatt%netscape.com
9d796b9f81 Fixing refcounting bugs in the XML content sink, and adding support for
content extensibility.  Scrollbars now really use XUL elements. r=waterson


git-svn-id: svn://10.0.0.236/trunk@58224 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 04:44:10 +00:00
hyatt%netscape.com
1d8657b21f Adding a generic element creation interface. Converting the XML factory over
to using this interface.  r=waterson


git-svn-id: svn://10.0.0.236/trunk@58214 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 03:10:45 +00:00
bruce%cybersight.com
b2d33a03a2 End of lines are good. Fixing ports bustage.
git-svn-id: svn://10.0.0.236/trunk@57962 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-16 04:56:08 +00:00