544 Commits

Author SHA1 Message Date
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
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
norris%netscape.com
17c637de9c Added intersection of principals when multiple scripts are encountered. r=norris
(this is mstoltz's checkin)


git-svn-id: svn://10.0.0.236/trunk@63539 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 04:12:56 +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
norris%netscape.com
09ff59d528 Fix a number of security bugs. (I can't see the numbers at home because
they have restricted visibility.)
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@63404 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 17:48:12 +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
akkana%netscape.com
eed43f5587 nsCOMPtr tainting problem -- need to include nsIParserService.h
git-svn-id: svn://10.0.0.236/trunk@63222 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 01:12:11 +00:00
akkana%netscape.com
910ccafcb4 29032, 29239: linebreaks in <pre> and in plaintext mail.
19137: preserve style of copied text.          r=mjudge


git-svn-id: svn://10.0.0.236/trunk@63208 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 00:08:27 +00:00
attinasi%netscape.com
71ee99d1fa Fixed a problem where loading an image into second browser window was not updating the dimensions. Also added temporary code to put the image type in the title, even though the image type is not really accurate yet. b=24478 r=dcone
git-svn-id: svn://10.0.0.236/trunk@63177 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:58:12 +00:00
blizzard%redhat.com
38572a5d11 fix for bug #18186. remove work around in layout code and properly implement nsIFile::GetLastMofificationDate() on unix. r=vidur,jst,dougt a=waterson
git-svn-id: svn://10.0.0.236/trunk@62992 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 03:08:28 +00:00
joki%netscape.com
04b8c32143 Fix bug 25353, check if jsval is a string before converting it to one. a:rickg, r:vidur
git-svn-id: svn://10.0.0.236/trunk@62825 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 03:18:43 +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
valeski%netscape.com
802411e84d r=jevering, a=jevering. 31447. We weren't accommodating the comma as a delimiter, now we are. call 720.841.4229 if there's a problem
git-svn-id: svn://10.0.0.236/trunk@62674 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 01:11:41 +00:00
troy%netscape.com
820330faa6 r=troy@netscape.com Patch from pnunn@netscape.com that eliminates asserts
in the xpcom ref counting macros that the class should have threadsafe
addref/release functions but doesn't


git-svn-id: svn://10.0.0.236/trunk@62656 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 16:59:16 +00:00
norris%netscape.com
732190b52e Remove mURL from nsWebShell, and GetURL from nsIWebShell.
r=travis


git-svn-id: svn://10.0.0.236/trunk@62618 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 02:57:39 +00:00
tbogard%aol.net
cd4d5288b0 Converted a number of places to talk in terms of the docShell APIs instead of the webShell ones.
git-svn-id: svn://10.0.0.236/trunk@62569 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 00:35:36 +00:00
tbogard%aol.net
729158bad0 Get the contentViewer through the docShell APIs instead of the webShell ones.
git-svn-id: svn://10.0.0.236/trunk@62568 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 00:34:54 +00:00
jevering%netscape.com
8b1c3b85c4 this is valeski in jevering's tree. a=jevering. r=ltabb (nice!), r=vidur. forcing cache bypass for inline JS url loads. this is a workaround, not a final fix
git-svn-id: svn://10.0.0.236/trunk@62525 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-10 06:25:13 +00:00
jst%netscape.com
3022974dcd Checking in fix for PDT+ bug 17489, now the HTML content sink correctly notifies the document about new content that apper after style/link tags that appear in the document content and not in the document head. r=vidur@netscape.com, a=jevering@netscape.com
git-svn-id: svn://10.0.0.236/trunk@62518 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-10 02:00:42 +00:00
norris%netscape.com
bc6c244897 Fix bug 30736 Errors in .js files not reported correctly
a=pdt,r=jband@netscape.com


git-svn-id: svn://10.0.0.236/trunk@62327 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 21:08:46 +00:00
warren%netscape.com
d100457780 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar
git-svn-id: svn://10.0.0.236/trunk@62243 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:26:01 +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
valeski%netscape.com
80e8c2996f r=gagan. 29870. We weren't handling a malformed http-equiv refresh header.
git-svn-id: svn://10.0.0.236/trunk@62183 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-04 00:32:30 +00:00
cata%netscape.com
1d485f061e activating charset override. bug #7886, r=ftang, a=bobj
git-svn-id: svn://10.0.0.236/trunk@62105 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-03 02:20:53 +00:00
jst%citec.fi
5195de87f5 Temporary (untill the real problem gets fixed) fix for PDT+ bug 18186. r=vidur, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@62058 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 15:06:05 +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
pollmann%netscape.com
8a83557c05 Bug 28670: Move scroll methods from webshell to docshell r=travis a=rickg
git-svn-id: svn://10.0.0.236/trunk@61848 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 06:51:48 +00:00
rods%netscape.com
6fe59b394c Makes it so select tag are monolithic, this means the sink doesn't get flushed
until the end tag of a select. This helps performance a great deal. If it gets flushed
inbetween then the remaining options are added one at a time using the AddOption
and this is a lot less effecient.
b 28593, r=vidur


git-svn-id: svn://10.0.0.236/trunk@61807 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-28 21:38:30 +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
pollmann%netscape.com
744a9edd0b Bug 14827: Removing code that wrongly set scrolling to auto for every document r=harishd a=rickg
git-svn-id: svn://10.0.0.236/trunk@61348 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-19 02:34:20 +00:00
troy%netscape.com
2dd6a71001 b=27056 a=jar@netscape.com r=troy@netscape.com Change made by Vidur.
Avoid notifications in the middle of a table row


git-svn-id: svn://10.0.0.236/trunk@61149 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 23:43:59 +00:00
joki%netscape.com
dcc35666e8 Fixes for bug 9544, 9552, 9558, 9561, and 13309. event handler 4x compat. and capture/bubble fixes. r:pollmann
git-svn-id: svn://10.0.0.236/trunk@61096 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 06:59:07 +00:00
attinasi%netscape.com
f88bc2d37f Made external stylesheets load synchronously, always. Controlled by a define in case we want to re-enable asynch external stylesheets later. r=pierre,troy b=17309
git-svn-id: svn://10.0.0.236/trunk@61093 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 06:50:39 +00:00
nisheeth%netscape.com
650cc21844 r=harishd. Fix for bug 27507. Removed a bogus assert.
git-svn-id: svn://10.0.0.236/trunk@60936 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 22:03:05 +00:00
ftang%netscape.com
c9956df79a fix 22203. r=cata/jbetak do not call the reload but set the parser charset directly if auto detect happen in the first block.
git-svn-id: svn://10.0.0.236/trunk@60855 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 09:15:18 +00:00
evaughan%netscape.com
03ab66fac1 bug fix for 24351, 22512
-r saari


git-svn-id: svn://10.0.0.236/trunk@60675 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-14 01:42:09 +00:00
attinasi%netscape.com
2f3dac1279 Image title is now set after load is completed so the dimensions will be valid.r=pnunn b=27365
git-svn-id: svn://10.0.0.236/trunk@60603 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-12 18:09:40 +00:00
harishd%netscape.com
d5026b4536 21008 - Handling NOTAGS in HEAD.
r=vidur - For changes in content sink.


git-svn-id: svn://10.0.0.236/trunk@60504 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 22:07:12 +00:00
rickg%netscape.com
bc4aa61e7a fixed bug24346; r=harishd
git-svn-id: svn://10.0.0.236/trunk@60476 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 12:10:40 +00:00
pollmann%netscape.com
ab48c21ac0 Bug 10434: legend.form return form legend is in r=buster
Bug 26669: Don't execute script in noframe and noscript tags r=harishd,vidur


git-svn-id: svn://10.0.0.236/trunk@60382 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 01:18:41 +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
tbogard%aol.net
c416db8338 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
git-svn-id: svn://10.0.0.236/trunk@60129 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 13:40:10 +00:00
valeski%netscape.com
0305c31ba1 25557, 26083. r=morse. We now capture cookies from HTTP-EQUIV and we also handle HTTP-EQUIV refresh headers that include single/double quotes
git-svn-id: svn://10.0.0.236/trunk@59790 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 22:50:39 +00:00
vidur%netscape.com
d55b639f5b 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
git-svn-id: svn://10.0.0.236/trunk@59576 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 00:25:53 +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
akkana%netscape.com
3d478016f0 24635: Don't convert entities in title differently from the rest of the document. Fix suggested by rickg, r=me
git-svn-id: svn://10.0.0.236/trunk@59550 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:47:24 +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
vidur%netscape.com
1fc69f769b Partial performance fix for bug 25509. Restrict the size of text nodes (the max is settable via a pref-content.maxtextrun). r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@59310 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 23:39:19 +00:00
attinasi%netscape.com
010367b83d Removed unused argument statements for elimination of warnings. No functional changes.
git-svn-id: svn://10.0.0.236/trunk@59247 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 13:54:39 +00:00