325 Commits

Author SHA1 Message Date
jshin%mailaps.org
30c7db1a35 bug 68738 : UTF-16/32LE with BOM is always detected as UTF-16BE/32BE.
r=ftang, sr=heikki


git-svn-id: svn://10.0.0.236/trunk@140966 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 07:10:48 +00:00
bzbarsky%mit.edu
7812a1f039 Some random code cleanup:
1)  Make SetContentSink and SetParserFilter not claim to return stuff
2)  Clean up nsIParser to use NS_IMETHOD_() where needed.  Sync up with nsParser
3)  Removed some never-used code

Bug 40149, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@140868 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 21:23:34 +00:00
heikki%netscape.com
32f4994ba0 Bug 169980, document.load should add its document to the parent document's loadgroup so that if we leave the current page the load will be aborted aotomatically, r=harishd, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@140600 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 21:44:39 +00:00
dougt%netscape.com
fed2927b2c Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a “only include” cid list that can mask CID’s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
timeless%mozdev.org
7dfa954482 Bug 183355 Typo in parser UTF charset detection code
patch by alexey@ihug.com.au r=ftang sr=heikki


git-svn-id: svn://10.0.0.236/trunk@136613 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-19 00:52:04 +00:00
dbaron%dbaron.org
9b5780673f Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136003 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 20:44:25 +00:00
harishd%netscape.com
25c2e377de Make sure to catch error messages returned by nsCompontentManagerImpl::CreateInstance when creating a dtd ( CNavDTD ). This fixes a shutdown crash. r=timeless, sr=heikki, a=asa
git-svn-id: svn://10.0.0.236/trunk@134872 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-06 01:54:39 +00:00
harishd%netscape.com
003dea7bb8 Make sure to collect FORM attributes if the FORM was found along with misplaced content inside TABLE. b=142965, r=heikki, sr=jst. Added -/W3C/DTD HTML 4.0 Transitional/EN to the quirks list. b=146274, r=heikki, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@134709 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 19:55:19 +00:00
dbaron%fas.harvard.edu
ec61a6b0ab Remove unused parser-related code. b=130439 r=harishd sr=jst
git-svn-id: svn://10.0.0.236/trunk@134577 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-28 19:43:51 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
bzbarsky%mit.edu
4f51e5b41e use prefix ++, not postfix ++. Bug 82615, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@128743 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 22:23:22 +00:00
jfrancis%netscape.com
6cf80b2b8c fix for 159842: parser has no mechanism to allow parsing of incomplete html fragments. sr's from heikki, kin, bz
git-svn-id: svn://10.0.0.236/trunk@128445 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-29 08:17:41 +00:00
alecf%netscape.com
7e8aa74093 fix for bug 157572 - remove nsIAtom references from strings, and thus expicitly #include nsIAtom.h for consumers who are expecting it.
r=dmose, sr=jag, a=asa


git-svn-id: svn://10.0.0.236/trunk@125791 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 18:31:10 +00:00
dbaron%fas.harvard.edu
7c4652cc16 Split strict mode into almost-standards and full-standards mode, where the only quirk in almost standards mode is the quirky inline box model. Remove previous fix for bug 151620. Tweak mode detection to use almost-standards for XHTML Transitional, HTML 4.01 transitional with system ID, and for IBM system DOCTYPE. b=153032 r=karnaze, bzbarsky, harishd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124017 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 21:16:17 +00:00
harishd%netscape.com
884c73af13 No need to tokenize the input stream if the DTD ( NavDTD ) cannot create a content sink. b=138071, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@121014 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 23:18:15 +00:00
harishd%netscape.com
a6dd951b3e Fix line numbers in html. b=111576, r=heikki, sr=jst, a=asa,chofmann
git-svn-id: svn://10.0.0.236/trunk@118658 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-10 22:16:46 +00:00
harishd%netscape.com
6b93bed21c Backing out timeless's checkin. This wasn't supposed to happen until we branched
git-svn-id: svn://10.0.0.236/trunk@118508 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-09 00:43:00 +00:00
shanjian%netscape.com
5e71e472ff #135806 crashes [@ GetNextChar]
modified GetNextChar implementation to handle the fact that aEnd points to
one character beyond the end.
r=harishd, sr=jst, a=asa, adt


git-svn-id: svn://10.0.0.236/trunk@118503 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-09 00:28:49 +00:00
timeless%mac.com
195ad89ec0 Bug 111576 Incorrect line numbers in HTML files
patch by harishd, r=heikki, sr=jst, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@118494 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-08 23:52:12 +00:00
shanjian%netscape.com
9b0af40604 put my previous patch back in. This patch does not seem like cause any
regression in txul.


git-svn-id: svn://10.0.0.236/trunk@118074 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 02:43:17 +00:00
shanjian%netscape.com
56bb70d264 reverse my previous checkin to see if my checkin cause the txul regression.
git-svn-id: svn://10.0.0.236/trunk@118067 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 01:07:19 +00:00
shanjian%netscape.com
58fa1c3c9f #100849 Charset sniffing in parser could not find charset in some cases
rewrote meta charset detection in parser to be more tolerant to various
meta charset specification.
r=harishd, sr=jst, a=asa, adt


git-svn-id: svn://10.0.0.236/trunk@118041 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-03 22:34:27 +00:00
dbaron%fas.harvard.edu
772b5b8c58 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117354 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-24 00:16:18 +00:00
darin%netscape.com
8defbf5d26 b=128508 "freeze nsIChannel nsIRequest" r=gagan, sr=rpotts, a=asa
git-svn-id: svn://10.0.0.236/trunk@117002 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:50:33 +00:00
harishd%netscape.com
9d5cd54796 META tags enclosed in a comment should be ignored. b=124904, r=dp/heikki, sr=darin, a=asa
git-svn-id: svn://10.0.0.236/trunk@116878 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 21:41:41 +00:00
dbaron%fas.harvard.edu
a397ea7022 Remove unused (or used only if one of the magic enviroment variables ENABLE_STRICT or MOZ_VALIDATE_HTML was set) parser-related code, mostly associated with the strict DTD. b=130439 r=harishd sr=jst a=shaver
git-svn-id: svn://10.0.0.236/trunk@116720 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 15:34:43 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
harishd%netscape.com
1a9e99d353 Make sure to flush the tokenizer stack after tokenizing SCRIPT content. Note: This checkin also includes code clean up. b=104856, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@114540 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:45:20 +00:00
alecf%netscape.com
4331ed65d3 First part of fix for bug 107575 - remove nsString::FindChar because there is already an nsAString::FindChar, and remove the "ignore case" option in RFindChar
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@113200 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 06:04:29 +00:00
alecf%netscape.com
9416759610 back out my accidental checkin
git-svn-id: svn://10.0.0.236/trunk@113018 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 02:47:30 +00:00
alecf%netscape.com
a3f49498a1 fix for bug 121508 - clean up nsStringStream and nsIParser APIs.. r=dougt, sr=jst
git-svn-id: svn://10.0.0.236/trunk@113007 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 22:02:00 +00:00
harishd%netscape.com
753b76b639 Removed mDoctypeText from nsExpatDriver. This |could| improve Ts/Txul time slightly. b=102345, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112743 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:15:58 +00:00
timeless%mac.com
85980b3c4a Bug 119310 preferences + open in new tab + clicking browser crashes @nsLoadGroup::RemoveRequest
assert instead of crashing if some load fails
r=darin sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112243 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:16:51 +00:00
harishd%netscape.com
78612453d2 119038 - Make sure that WillResume() and WillInterrupt() get called on the sink. This should fix the fast loader assertion. r=heikki, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@111914 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 01:26:41 +00:00
harishd%netscape.com
476668ebbc 105137 - Eliminate nsTokens, nsParserNode usage for xml/xbl/xul/rdf documents. r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@111618 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 01:37:50 +00:00
harishd%netscape.com
e4e2a1571e 95487 - document.write shouldn't be interrupted. r=kmcclusk, sr=jst
git-svn-id: svn://10.0.0.236/trunk@111313 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-03 21:25:33 +00:00
shanjian%netscape.com
3356940ad2 #112793 fine tune frame charset mechanism
Besides charset, document now records charset source as well.
nsCharsetSource was replaced by PRInt32.
Some code relocation in nsHTMLDocument.cpp
r=yokoyama sr=waterson


git-svn-id: svn://10.0.0.236/trunk@111062 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-26 03:17:59 +00:00
timeless%mac.com
21c081c8bc Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst


git-svn-id: svn://10.0.0.236/trunk@111049 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-23 23:23:41 +00:00
jaggernaut%netscape.com
576ec93128 Bug 113228: Replace ns{C}String::To{Upper,Lower}Case with global versions. r=bzbarsky, sr=jst
git-svn-id: svn://10.0.0.236/trunk@110611 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 07:14:49 +00:00
jaggernaut%netscape.com
436d43f211 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 11:58:03 +00:00
dbaron%fas.harvard.edu
2a2655f16e Add two more IETF HTML 3 doctypes to the list of quirks-mode doctypes. b=109123 r=harishd sr=jst
git-svn-id: svn://10.0.0.236/trunk@110097 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-08 22:47:15 +00:00
jst%netscape.com
e9bd9a6f04 Fixing bug 109400. Removing unnecessary layers of abstraction from nsHTMLTags that does nothing for us except using more memory than we need to use, and makes us slower. This makes nsHTMLTags::LookupTag() 4 times faster. r=harishd@netscape.com, rs=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109117 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 06:13:11 +00:00
rpotts%netscape.com
19db6dc154 Removing dead, wrong, evil, dangerous code from the parser!!
git-svn-id: svn://10.0.0.236/trunk@108797 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 05:50:04 +00:00
rpotts%netscape.com
e318b93922 bug #102737 (r=harishd@netscape.com, sr=jst@netscape.com) one more time! only emit an empty HTML document when the content type is *not* text/plain
git-svn-id: svn://10.0.0.236/trunk@108793 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 04:37:39 +00:00
bzbarsky%mit.edu
c59df8124b Make SetInnerHTML use the right parser mode (ie strict for strict
documents instead of always quirks).  Bug 106565, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@108271 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 04:48:30 +00:00
bzbarsky%mit.edu
068756d821 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107987 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:33:42 +00:00
dbaron%fas.harvard.edu
52bea38360 Add assertions that users of nsDependentC?String meet the requirements of nsAFlatC?String. Add nsDependentSingleFragmentC?Substring for users that don't. Additional cleanup after bug 100214. b=104651 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@107556 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:12:20 +00:00
kmcclusk%netscape.com
d0fb62d700 Fix leak of parser objects when page load is interrupted by calling nsParser::CancelParsingEvents inside nsParser::Terminate; bug 108049 (patch from aaronr@us.ibm.com) r=harishd sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107527 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 01:02:56 +00:00
harishd%netscape.com
887aaf1681 107994 - Backing out rpotts change ( bug 102737 ) to fix the smoketest blocker.
git-svn-id: svn://10.0.0.236/trunk@106981 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 19:40:48 +00:00
rpotts%netscape.com
36740b6e82 bug #102737 (r=harishd@netscape.com, sr=jst@netscape.com) do not emit <html> ... </html> for empty text/plain documents.
git-svn-id: svn://10.0.0.236/trunk@106857 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:15:57 +00:00