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
ftang%netscape.com
15b3ae1f9e
fix bug 93343 so we can display UTF-16 and UTF-32.
...
r=harishd sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@105808 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:58:22 +00:00
harishd%netscape.com
eeeb1c2290
97769 - Replace nsITagStack with a simple nsVoidArray. Also, nuked nsITagStack since it is not of a big help.r=heikki, sr=jst.
...
99282 - Make sure only HEAD attributes get added to the attribute list in ::OpenHead(). r=heikki, sr=jst.
100466 - Stop DT from containing DL.r=heikki,sr=jst.
102370 - DT should not close DD and vice versa.r=heikki,sr=jst.
100397 - In order for residual style to kick in...disable the check for wellformedness in quirks mode.r=alexandru,sr=attinasi.
102376 - Release nsIRequest in nsParser::DidBuildModel() since nsIRequest is not required past DidBuildModel.r=heikki,sr=darin.
git-svn-id: svn://10.0.0.236/trunk@105792 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:48:18 +00:00
dbaron%fas.harvard.edu
1382ac90eb
Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@105468 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 05:31:36 +00:00
jst%netscape.com
a76d9ab54f
Fixing bug 104031. Bad string code in nsHTMLDocument::WriteCommon(). r=bzbarsky@mit.edu, sr=vidur@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@105453 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 01:31:49 +00:00
heikki%netscape.com
1a58cc7538
Bug 98214, minor performance improvements and cleanup. r=harishd, sr=vidur.
...
git-svn-id: svn://10.0.0.236/trunk@105300 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-12 22:01:19 +00:00
dbaron%fas.harvard.edu
02bed3343d
Make HoTMetaL 4 doctype trigger quirks mode. b=102442 r=harishd sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@104388 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-02 02:40:28 +00:00
seawood%netscape.com
daedea9e78
Files must end with a newline.
...
Fixing tinderbox bustage
git-svn-id: svn://10.0.0.236/trunk@104191 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 03:55:30 +00:00
harishd%netscape.com
1c4e4c74ec
96364 - Register html tag observers directly to parser service rather than nsObserverService. Doing so, reduces a lot of overhead. Also, the observers are now notified via sink. This eliminates the need for parser bundle.
...
r=dp,shanjian,sfraser, sr=rpotts.
git-svn-id: svn://10.0.0.236/trunk@104152 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 23:08:17 +00:00
gerv%gerv.net
cf694b8116
License changes, take 2. Bug 98089. mozilla/include/, /mozilla/htmlparser/, /mozilla/intl/ (part 1).
...
git-svn-id: svn://10.0.0.236/trunk@103776 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 00:40:45 +00:00
dbaron%fas.harvard.edu
9dff5d268e
Fix crash due to unsigned integer underflow. b=100451 r=jag, harishd sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@103259 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 02:15:21 +00:00
jaggernaut%netscape.com
08a47b4511
Fix debug build bustage on Windows by changing |for (PRUint32 i=0; ..; ..) {} for (PRUint32 i=0; ..; ..) {}| to |PRUint32 i; for (i=0; ..; ..) {} for (i=0; ..; ..) {}|
...
git-svn-id: svn://10.0.0.236/trunk@102911 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-14 09:27:57 +00:00
dbaron%fas.harvard.edu
638d954dab
Make public identifier matching case-insensitive to expand the set of public identifiers triggering quirks mode since some existing pages use FPIs with incorrect case. Add two additional FPIs to the list. b=98977 r=harishd sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@102899 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-14 04:18:59 +00:00
dbaron%fas.harvard.edu
e59c2701d9
Make forward-compatible the DOCTYPE handling for determining whether to be in quirks mode or strict mode: properly parse the DOCTYPE declaration and use a list of known public identifiers that should trigger quirks. Remove some remnants of modes that no longer exist. b=55264 r=harishd sr=vidur
...
git-svn-id: svn://10.0.0.236/trunk@102591 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 18:37:19 +00:00
darin%netscape.com
c45df76363
fixes bug 90288 (part 2) "not honoring Pragma: no-cache from HTTP-EQUIV"
...
r=gagan, sr=dougt
git-svn-id: svn://10.0.0.236/trunk@101577 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:38:46 +00:00
dbaron%fas.harvard.edu
3485888237
Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
...
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
loadrunner%betak.net
af975c6740
bug 91696, Meta tag does not work, r=shanjian , sr=vidur
...
git-svn-id: svn://10.0.0.236/trunk@100723 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 02:15:41 +00:00
harishd%netscape.com
36086848b7
91320 - Removed unused files from htmlparser module and created a public directory.
...
r= heikki
sr=vidur
git-svn-id: svn://10.0.0.236/trunk@100322 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-03 21:15:15 +00:00
jaggernaut%netscape.com
2b3b3b2586
Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@99906 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 07:54:28 +00:00
harishd%netscape.com
5cc0b9b42c
91205 - Removed a debug flag that accidently got enabled.
...
r=nisheeth, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@99537 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-18 22:56:22 +00:00
harishd%netscape.com
e3a070393b
90379 - Added null check to avert a topcrash. Real problem unknown!
...
r=heikki,sr=blake
git-svn-id: svn://10.0.0.236/trunk@99432 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-17 20:46:17 +00:00
harishd%netscape.com
58688829ca
87110 - Avoid memory bloat by moving Malloc out of do-while. Also do not propagate error messages
...
from unicode coverter. r=ftang, sr=vidur.
89732 - Stop searching for words if mOffset is negative. r=jst sr=vidur
git-svn-id: svn://10.0.0.236/trunk@99195 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 18:21:23 +00:00
vidur%netscape.com
8426597d5f
Fix for bugs 89177 and 89155. We now ignore bad charsets, ones that aren't recognized by the charset alias service and a fixed list of UTF-16 and UTF-32 charsets. r=yokoyama, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@99029 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-11 00:59:14 +00:00
harishd%netscape.com
b7dcadfafa
Forgot to include this comment in my previous checkin.
...
88746 - Make sure to not update *end*. Also, skip quotes when the charset has no value. r=heikki sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@98725 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-05 22:26:10 +00:00
harishd%netscape.com
eb02af6620
40072 - (patch provided by pollmann) Do not process METAs after FRAMESET. r=harishd sr=vidur
...
58809 - Handle numeric & hexadecimal entities correctly r=heikki sr=vidur
72249 - Per SGML endtag can contain whitespace between generic identifier and tagc. r=heikki sr=vidur
82971 - if the last character was a CR make sure to not lose that information. r=heikki sr=vidur
git-svn-id: svn://10.0.0.236/trunk@98721 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-05 22:20:34 +00:00
jaggernaut%netscape.com
51b17b5bf0
Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
...
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.
nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
vidur%netscape.com
599c0d0fe9
Fix for bug 81253. We now sniff upto the first 2k of the first buffer of any HTML stream, looking for a META tag with charset information. If charset information is found, we use it for unicode conversion. This deals with the bulk of cases where we used to do a reload based on charset information in the document. In the worst case (if charset information exists but isn't found during sniffing) we fall back to the reload case. This fix improves initial page load performance for pages with a charset. Degradation in performance for pages loaded out of the cache is still being investigated. r=harishd, sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@98320 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 22:56:58 +00:00