341 Commits

Author SHA1 Message Date
waterson%netscape.com
17ec076943 Bug 74728, redux. Fix without leaking tokens: make sure that nsCParserNode always has an nsTokenAllocator object. r=harishd, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@91383 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:27:11 +00:00
waterson%netscape.com
1ef6e620b4 Bug 68213. Require users of nsFixedSizeAllocator to specify object size at Free() time to avoid 8 byte overhead per allocation. r=harishd, brendan, shaver, hyatt; sr=scc
git-svn-id: svn://10.0.0.236/trunk@91251 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:00:08 +00:00
harishd%netscape.com
b41e36791e 69331 - <?XML..> does not require BODY!!
66985 - Do not open BODY for INPUT type=hidden. For compatibility
72639 - Discard nested FORMS
2749  - Enable Strict comment parsing.

Replace PRBools with bit operation.
nsScanner Append() should return nsresult not PRBool.

r=heikki
sr=jst


git-svn-id: svn://10.0.0.236/trunk@90964 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 22:44:05 +00:00
disttsc%bart.nl
f69c0e7cd8 bug 73339: Remove NS_ConvertToString (just another name for NS_ConvertASCIItoUCS2) from the tree. r=jst, sr=scc
git-svn-id: svn://10.0.0.236/trunk@90514 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 11:17:17 +00:00
harishd%netscape.com
9a1300e224 69160 - Parser stack & sink stack should be 1:1 even when handling nested MAPs.
3248  - Added Support for http headers ( link,content-base,default-style ) in the sink.
41426 - Making sure that XML like syntax ( <tag/> ) does not produce an extra end tag ( <tag></tag> ) in view-source.
62803 - Stop processing NOFRAME content ( will have to add support to process the content once we have to ability to turn off frames).

r=heikki,sr=vidur


git-svn-id: svn://10.0.0.236/trunk@88427 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 00:37:04 +00:00
harishd%netscape.com
6cb66fa5cb 63423 - Unblock parser before evaluating external js content.
63661 - Do not create an end token automatically if the tag did not contain '>'
33051 - Handle residual style before closing a tag.
58992 - Leaf content should go thro' the normal HandleToken path.
61462 - Release parser bundle only when the parser is about to shutdown

r=jst
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@86373 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 23:35:29 +00:00
heikki%netscape.com
a4f8173ec8 Bug 44564. Problems with internal subset, especially with view source XML. Also fixed CDATA section problems. Some cleanups. r=harishd, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@86136 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-03 01:13:55 +00:00
harishd%netscape.com
4541137502 61630 - propagate onstop request.
48256 - Verify hierarchy requested by a child tag.
43678 - Make TABLE a legal child of P.
58942 - MAP is not a legal child of TR!
57999 - When the parser is enabled make sure to pass correct information to ResumeParse().
59669 - Remove a warning.

r=heikki
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@85991 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 21:03:48 +00:00
harishd%netscape.com
7a086d6265 Made parser nodes arena allocated. Also, fixed a few potential leaks.
Note: Parser nodes could be heap allocated by enabling HEAP_ALLOCATED_NODES flag.
r=jst
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@85501 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 19:37:23 +00:00
rickg%netscape.com
bedc6b6b8a Inadvertently removed a IF_RELEASE(); r=waterson
git-svn-id: svn://10.0.0.236/trunk@84556 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 04:44:39 +00:00
rickg%netscape.com
c98cf928ae various bug fixes and landed blizzard patch to remove iostream from parser. r=harish, attinasi, kmcclusk; sr=buster
git-svn-id: svn://10.0.0.236/trunk@84554 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 03:37:15 +00:00
harishd%netscape.com
446727274f 56070 - Rewrote the handling of misplaced content inside TABLE to also be effective when document
is provided in multipel buffers.
62954 - DD is not a legal child of SELECT.

r=heikki
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@84384 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 22:15:06 +00:00
vidur%netscape.com
3e62b3f9f3 Changes to parser to allow less copying. Use of the new nsSliding[Sub]String classes so that tokens can hold substrings that keep references into the scanner buffer. Cleaned up token interface and general string usage. r=harishd,heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@83553 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:58:14 +00:00
harishd%netscape.com
73f54d3808 59189 - Make sure that SanitizeKey() is accessed only by the attribute token.
r=jar
sr=scc


git-svn-id: svn://10.0.0.236/trunk@82333 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 06:03:34 +00:00
rickg%netscape.com
fdc899aa10 RTM+Limbo bugs: 55980, 57378. r=harishd, sr=buster, a=pdt.
git-svn-id: svn://10.0.0.236/trunk@81972 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-29 01:28:45 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
rickg%netscape.com
8d22dc81e8 fixed rtm++ bugs: 56665, 57173. r=attinasi, harishd; sr=buster.
git-svn-id: svn://10.0.0.236/trunk@81439 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 06:38:48 +00:00
harishd%netscape.com
88aa869a01 56501 - Dealing with NOSCRIPT contents
r=jst
sr=scc, vidur


git-svn-id: svn://10.0.0.236/trunk@81234 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-15 17:30:08 +00:00
rickg%netscape.com
74d9db565a fix RTM++56085 crasher; r=attinasi, sr=buster
git-svn-id: svn://10.0.0.236/trunk@81095 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:16:56 +00:00
leaf%mozilla.org
8cb2416476 backing out backout. rickg and buster found the one line problem in nsElementTable.cpp, fixed on n6 branch, merging to trunk.
git-svn-id: svn://10.0.0.236/trunk@81036 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 18:46:55 +00:00
leaf%mozilla.org
2f29f2439c backing out rickg's htmlparser changes (backing out fixes 56265 for two
independent developers).


git-svn-id: svn://10.0.0.236/trunk@81034 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 18:22:15 +00:00
rickg%netscape.com
2bad60b783 fixed RTM++ compatibility bugs: 53011, 54117, 54651, 54834, 54840, 55095. sr=buster, r=buster, attinasi, harish, sfraser for various portions.
git-svn-id: svn://10.0.0.236/trunk@80977 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:42:00 +00:00
harishd%netscape.com
664ab05c31 53489 - FMR fix ( r=jst, a=vidur ).
54448 - Allow param to be a kid of BODY for compatibility ( r=jst, a=vidur ).
53935 - Failed to reinitialize a variable "theIndex" that provoked a crash ( r=jst, a=buster)
53695 - Keep a reference to the first misplaced token for later use ( r=jst, a=buster ).


git-svn-id: svn://10.0.0.236/trunk@80464 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 20:10:28 +00:00
rickg%netscape.com
832bd11159 fix potential leak from checkin for bug 48351. r=harishd, a=syd
git-svn-id: svn://10.0.0.236/trunk@79705 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-21 04:00:34 +00:00
rickg%netscape.com
4621c994de fixed nsbeta3+PDT[n] bugs: 48351, 49278, 50070, 52478. Partial fix (WIP) for 49678 and 52725. R=attinasi, buster, syd. A=buster
git-svn-id: svn://10.0.0.236/trunk@79696 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-21 02:58:12 +00:00
harishd%netscape.com
1bb3ea3774 42429 - Enabling code that I'd to back out due to bug 52443.
Looks like the TABLE code is ready to face the change.

r=rickg
a=jst


git-svn-id: svn://10.0.0.236/trunk@79549 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 22:13:53 +00:00
rickg%netscape.com
c80e00b312 fixed bug 40487 and 26347; r=attinasi/harishd
git-svn-id: svn://10.0.0.236/trunk@79226 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 23:31:07 +00:00
harishd%netscape.com
b4de04b36e 52361 - parser shouldn't generate synthetic doctype because
it affects SCRIPTs

r=jst


git-svn-id: svn://10.0.0.236/trunk@79147 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 19:02:13 +00:00
harishd%netscape.com
d4f00ae502 52443 - smoketest blocker
Backing out my change, in the parser,that allowed newlines/whitespace
inside TABLE,TR,TBODY,TFOOT,THEAD. Will reenable this
change once the TABLE code is ready to deal with newlines
/whitespace inside the above mentioned elements.

Btw, this file was untouched by rayw's carpool.

r=vidur
a=granrose


git-svn-id: svn://10.0.0.236/trunk@79137 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 16:59:56 +00:00
rickg%netscape.com
c433e250f9 fixed nsbeta3+ crash (bug# unavailable 'cause bugzilla is down) and removed FMM. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@79094 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 07:28:44 +00:00
harishd%netscape.com
f513e653c1 42429 - Preserve newline/whitespace inside TABLE,TR,TBODY,THEAD,TFOOT
50710 - Stop after popping a style stack otherwise it might cause a MLK
r=rickg


git-svn-id: svn://10.0.0.236/trunk@78903 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 21:17:47 +00:00
rickg%netscape.com
ece465da5b fixed nsbeta3 bugs (crash and compatibility), an FMM, reduced memory usage. Top100+Regression tests ok. R=harishd/buster
git-svn-id: svn://10.0.0.236/trunk@78537 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 23:06:13 +00:00
harishd%netscape.com
69b6374ae7 7670 - Enabling NOSCRIPT content.
47827 - Make sure to check DD's hierarchy.

r=jst


git-svn-id: svn://10.0.0.236/trunk@77890 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 18:17:17 +00:00
harishd%netscape.com
34a0c50b1e 46702 ( nsbeta3+ ) Partial - Made token cache to be arena based.
r=vidur


git-svn-id: svn://10.0.0.236/trunk@77624 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 18:22:03 +00:00
akkana%netscape.com
485815f3a4 41868 and 45994: Diffs from Harish to implement CreateCompatibleDTD, r=me
git-svn-id: svn://10.0.0.236/trunk@77406 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-28 23:44:18 +00:00
warren%netscape.com
b8f243ef1f Bug 15623. Fixed registration of nsKeygenHandler.
git-svn-id: svn://10.0.0.236/trunk@77214 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-25 18:48:50 +00:00
harishd%netscape.com
be80e197f0 bug 30487 ( nsbeta3+ ) - Watch out for barriers before popping off any stylistic
information
bug 37618 ( nsbeta3+ ) - Orpahaned residual tag can close only inline parents.
bug 44085 ( nsbeta3+ ) - Push comment into misplaced list if there are items in
queued in the list.
bug 22886 ( nsbeta3+ ) - Relax refresh header parsing, in the sink, a little bit
so that '.' is accounted for.

r=pollmann


git-svn-id: svn://10.0.0.236/trunk@76575 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:54:49 +00:00
harishd%netscape.com
5288903c8f Fix bug
40713 ( nsbeta2+ ) - Style should leak out of TABLE.

r=dbaron@fas.harvard.edu


git-svn-id: svn://10.0.0.236/trunk@72804 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 20:50:00 +00:00
rickg%netscape.com
d7521ac142 fixed nsbeta2 bug 41049; removed warnings
git-svn-id: svn://10.0.0.236/trunk@72004 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-11 18:43:35 +00:00
rickg%netscape.com
2e1ef1b2c7 fixed several nsbeta2+ bugs; r=harish, buster; a=pdt
git-svn-id: svn://10.0.0.236/trunk@71963 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-10 02:53:04 +00:00
harishd%netscape.com
29189d4b10 Fix for:
37247 (nsbeta2+) - XIF DTD / HTMLContentSinkStream shouldn't add end tags
for IMG,PARAM,SOUND,INPUT..etc., ( leaf tags ).

r=akkana.

41427 (nsbeta2+) - Avoid transient style handling in a head context.
40408 (nsbeta2+) - Check for nsresult in nsFragmentContentSink::AddLeaf().
The HTMLTag array was,erroneously,going out-of-bounds for XMP tag.
40741 (nsbeta2+) - Text, only document, was getting sucked up into <!DOCTYPE>
40143 (nsbeta2+) - Use scanner's mIncremental memeber wisely when data is
supplied through document.write();
40552 (nsbeta2+) - Contain default <!DOCTYPE> to html documents only.

r=rickg

30617 (nsbeta2+) - Misplaced AREA tag should be informed with base target info.

r=vidur.


git-svn-id: svn://10.0.0.236/trunk@71802 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 21:30:48 +00:00
rickg%netscape.com
76d5cb7753 fixed beta2 bugs: 38203, 38228, 39520, 40060, and WIP for bug 40190; also enabled debug code for automated regression testing of content models.
git-svn-id: svn://10.0.0.236/trunk@70819 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 06:19:32 +00:00
harishd%netscape.com
3ae31acebc Fix for
36148 - Mlk [ r= rickg ] nsParser::Parse(string)
39713 - Crash caused by an uninitialized ref. counter
39466 - Handling XML error before calling DidBuildModel().

r=nisheeth

a=waterson


git-svn-id: svn://10.0.0.236/trunk@70609 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-22 21:32:06 +00:00
harishd%netscape.com
0389aba1fa Fix for
38601 - Calling DidBuildModel(), through nsParser::Terminate(),
        for documents stopped abruptly ( stopped before a complete load ).
Fixed a few warnings.
r=nisheeth


git-svn-id: svn://10.0.0.236/trunk@69863 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 21:08:57 +00:00
sfraser%netscape.com
2b5f698903 Fix warnings.
git-svn-id: svn://10.0.0.236/trunk@69812 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 19:00:55 +00:00
rickg%netscape.com
b2d584ed34 StrictDTD wip, and fixed bugs: 37417 and 26023
git-svn-id: svn://10.0.0.236/trunk@69768 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 07:28:12 +00:00
harishd%netscape.com
1ddf9f1307 Fix for bugs:
34351 ( nsbeta2+ ) - Made webshell service available to
observer base through parser bundle.
37503,36852 ( nsbeta2+ ) - Fixed crash in Observer base...
( caused by a wrong assumtion for document key ). The key now is
always nsISupports*.
24474 - Fixed content leakage in my.netscape.com caused by a script
entity in LAYER.
31890 - Mlk fix ( patch provided by Patrick ) ( r=me )

r= nisheeth


git-svn-id: svn://10.0.0.236/trunk@69671 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-14 19:24:59 +00:00
rickg%netscape.com
5ba9ef8801 restore keygen
git-svn-id: svn://10.0.0.236/trunk@68761 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 00:31:25 +00:00
rickg%netscape.com
a5a71d088a fixed bug 36449
git-svn-id: svn://10.0.0.236/trunk@68760 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 00:29:59 +00:00