355 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
sfraser%netscape.com
b568f44c40 Add an UpdateCommandState method to the command maanger.
git-svn-id: svn://10.0.0.236/trunk@67696 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 01:33:22 +00:00
mjudge%netscape.com
e7664ef7d7 small change to the way you get selection
git-svn-id: svn://10.0.0.236/trunk@67487 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:22:07 +00:00
waterson%netscape.com
3be3c2bff5 Fix memory churn caused by implicit nsString ctor.
git-svn-id: svn://10.0.0.236/trunk@67383 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 06:44:13 +00:00
waterson%netscape.com
541385fe5a Fix memory churn caused by implicit nsString ctor.
git-svn-id: svn://10.0.0.236/trunk@67377 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 05:53:36 +00:00
waterson%netscape.com
2d18faeefc Move template builder 'release' to SetScriptGlobalObject() so that we'll always release the template builders regardless of whether someone else leaks the nsXULDocument object.
git-svn-id: svn://10.0.0.236/trunk@67345 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:32:02 +00:00
jst%netscape.com
e7caf2b7ff Landing DOM Level 2 CSS and Views interfaces and implementation.
git-svn-id: svn://10.0.0.236/trunk@67227 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 13:58:56 +00:00
sfraser%netscape.com
f6a67ae209 Implemented new calls on the command manager which are callthroughs from the controller, with a context parameter.
git-svn-id: svn://10.0.0.236/trunk@67208 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 06:15:40 +00:00
sfraser%netscape.com
13c74256d0 Lots of new comments, added interface for nsIStateUpdatingControllerCommand, and added calls on the command manager which are callthroughs from the controller, with a context parameter.
git-svn-id: svn://10.0.0.236/trunk@67207 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 06:15:23 +00:00
waterson%netscape.com
3138935719 Remove XIF assertions. akk and mjudge say this is ok.
git-svn-id: svn://10.0.0.236/trunk@67178 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:47:15 +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
sfraser%netscape.com
98f2662236 Add some null checks to prevent crashes if calling GetControllerAt with an index that is too large.
git-svn-id: svn://10.0.0.236/trunk@67150 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:58:14 +00:00
waterson%netscape.com
1122960544 Use fixed size arena allocator for element map.
git-svn-id: svn://10.0.0.236/trunk@67017 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:21:57 +00:00
anthonyd%netscape.com
10a34f6e1b drawing selection as tri-state. on-off-disabled. hardcoded disable color to grey right now. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@66600 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:11:41 +00:00
waterson%netscape.com
c1ec9e04ea Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@66208 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 17:51:01 +00:00
scc%netscape.com
8c7f6c18d8 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66199 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 14:30:23 +00:00
mccabe%netscape.com
5c6b7446d6 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.


git-svn-id: svn://10.0.0.236/trunk@66050 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 01:56:47 +00:00
sspitzer%netscape.com
eb928ab05c bulletproofing fix for bug #35568. r=waterson.
git-svn-id: svn://10.0.0.236/trunk@65678 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 07:38:17 +00:00
tbogard%aol.net
835aca6ed0 Changed to use the enumeration rather than the string based parameter to the parser loading mode.
git-svn-id: svn://10.0.0.236/trunk@65622 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:48:37 +00:00
waterson%netscape.com
c7054a1246 Bug 29507. Clean up PresShell refcounting. r=troy
git-svn-id: svn://10.0.0.236/trunk@65336 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-05 05:17:36 +00:00
mkaply%us.ibm.com
b3f0f45fdd # 34082
r= waterson@netscape.com
OS/2 Visual Age build - Adding PR_CALLBACK to some functoins for linkage


git-svn-id: svn://10.0.0.236/trunk@65302 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-05 02:39:51 +00:00
waterson%netscape.com
dd7c0d8e23 Bug 26402, try number two. Do event handler recompilation and 'style' attribute fixup in nsXULElement::SetDocument(). Fix uninitialized out params in nsXULElement::GetAttribute() and nsXULElement::GetClasses().
git-svn-id: svn://10.0.0.236/trunk@65006 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 05:36:17 +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
waterson%netscape.com
3e62fee14f Bug 26402. Compile event handlers when content is inserted into the document. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@64689 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 04:03:25 +00:00
jim_nance%yahoo.com
b1ccfbf2cb 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


git-svn-id: svn://10.0.0.236/trunk@64566 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 03:21:26 +00:00
warren%netscape.com
9fa657f1cd 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.
git-svn-id: svn://10.0.0.236/trunk@64449 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 03:58:50 +00:00
rickg%netscape.com
ca29e7ca98 removed reference to nsString2
git-svn-id: svn://10.0.0.236/trunk@64196 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-26 23:17:01 +00:00
scc%netscape.com
6acfd0d21a small changes to clients of string converting APIs
git-svn-id: svn://10.0.0.236/trunk@64172 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-26 10:52:00 +00:00
rickg%netscape.com
232833d976 changed Parser(stream) to accept mimetype
git-svn-id: svn://10.0.0.236/trunk@64096 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-25 03:32:55 +00:00
jim_nance%yahoo.com
4e7663b8a1 Fix bug 33019. Compiler warnings.
Reviewed and approved by:
law, mscott, radha, brade, shaver, & dveditz


git-svn-id: svn://10.0.0.236/trunk@64065 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 22:11:55 +00:00
mstoltz%netscape.com
6bc9c31751 Changed UpdatePrincipal to AddPrincipal; it takes an input parameter now instead of an inout parameter; this is clearer. r=norris
git-svn-id: svn://10.0.0.236/trunk@63828 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 04:53:16 +00:00
hyatt%netscape.com
682a6abf95 Giving XUL a <script> tag. r=danm
git-svn-id: svn://10.0.0.236/trunk@63808 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 01:17:08 +00:00
hyatt%netscape.com
2eea7163c1 Marking my territory. ;)
git-svn-id: svn://10.0.0.236/trunk@63578 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 13:15:24 +00:00
norris%netscape.com
93ee43a3b2 added updatePrincipal function to nsDocument. r=norris (this is mstoltz's checkin)
git-svn-id: svn://10.0.0.236/trunk@63542 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 04:20:04 +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
dougt%netscape.com
6f9fac33b3 adding GetSecurityInfo to the nsIChannel. bug 29646 r= warren.
git-svn-id: svn://10.0.0.236/trunk@63320 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 22:07:37 +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
dbaron%fas.harvard.edu
e96bd9a82b Fix bug 28570, leak of nsXULPrototypeDocument and nsJSContext (and things they owned). r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@63107 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 01:11:02 +00:00
beard%netscape.com
e8fb300544 uncovered leak exposes a crasher, this fixes it. r=waterson
git-svn-id: svn://10.0.0.236/trunk@63092 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 23:58:01 +00:00
rickg%netscape.com
4fdc8bcb58 removed calls to deprecated nsString methods
git-svn-id: svn://10.0.0.236/trunk@62717 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 11:06:57 +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
tbogard%aol.net
2acf8d3834 Use the docShell APIs instead of the webShell ones where possible.
git-svn-id: svn://10.0.0.236/trunk@62561 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 00:22:48 +00:00
waterson%netscape.com
160a979d59 Bug 27222. Add a parser observer, so we're always guaranteed to be notified when an overlay completes (even if the overlay wasn't there). Keeps us from 'hanging' when an overlay file is missing. r=harishd, a=jevering
git-svn-id: svn://10.0.0.236/trunk@62285 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 02:33:44 +00:00
waterson%netscape.com
4d0463bed4 Bug 29148. Don't abort in the case where an invalid stylesheet reference has somehow made it into the prototype document, but the stylesheet was never put into the cache (an empty CSS file will cause this to happen). Instead, just keep on truckin'. r=rjc, a=jar
git-svn-id: svn://10.0.0.236/trunk@62168 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-03 23:14:09 +00:00
pollmann%netscape.com
3c19530bbd Bug 28670: Move XUL scrollbar removal to nsCSSFrameConstructor r=travis a=rickg
git-svn-id: svn://10.0.0.236/trunk@61846 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 06:51:05 +00:00
jdunn%netscape.com
2592ac53d5 adding newline
git-svn-id: svn://10.0.0.236/trunk@61801 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-28 20:50:38 +00:00
saari%netscape.com
b4608e9377 fix for 28467, a=jar, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@61712 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-26 00:59:41 +00:00
law%netscape.com
b68c10b8db Fix from Chris Waterson to suppress bogus assertion failure when adding overlays to personal toolbar; this is a prerequisite to other changes for bug #11871; r=waterson@netscape.com, a=jevering@netscape.com
git-svn-id: svn://10.0.0.236/trunk@61639 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-25 02:28:45 +00:00
danm%netscape.com
6a87de793b stop up small but profuse leak on NT; probably a runtime lib bug. r=waterson a=jevering
git-svn-id: svn://10.0.0.236/trunk@61419 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-22 04:13:24 +00:00