403 Commits

Author SHA1 Message Date
jonas%sicking.cc
ca0c3c7ee3 Bug 403549: Avoid memory churn from nsContentUtils::CreateContextualFragment by giving nsIParser::ParseFragment a better signature. r/sr=stuart
git-svn-id: svn://10.0.0.236/trunk@239246 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-13 01:41:40 +00:00
reed%reedloden.com
5388db454e Remove extraneous space to cause unit test machines to build.
git-svn-id: svn://10.0.0.236/trunk@239132 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-10 22:49:09 +00:00
sayrer%gmail.com
08fd65ccf4 Bug 397804. Use the short CC macro in nsParser. r/sr/a=sicking.
git-svn-id: svn://10.0.0.236/trunk@237233 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-04 02:11:57 +00:00
sayrer%gmail.com
7cf190dc22 Bug 397804. pages loading feeds as content can trigger a leak. r=jst, sr=sicking, a=sicking
git-svn-id: svn://10.0.0.236/trunk@236822 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-28 03:00:36 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
sharparrow1%yahoo.com
9057c0b45b Bug 384898: Cleanup nsScanner. r=mrbkap, sr=jst
git-svn-id: svn://10.0.0.236/trunk@228788 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 00:21:47 +00:00
mrbkap%gmail.com
5ebdab7ced Don't call DidBuildModel twice if Terminate is called twice since consumers aren't expecting it. bug 378982, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@226741 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-21 18:09:54 +00:00
mats.palmgren%bredband.net
e321f60278 Improve the <!DOCTYPE> parsing. b=363883 r=mrbkap sr=jst
git-svn-id: svn://10.0.0.236/trunk@226115 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-08 12:19:32 +00:00
jonas%sicking.cc
dc89ea1f2d Bug 18333: Make the XML content sink incremental. Patch by Henri Sivonen<hsivonen@iki.fi>. r=peterv sr=sicking
git-svn-id: svn://10.0.0.236/trunk@219201 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 21:21:06 +00:00
sayrer%gmail.com
9391e15bea bug 339350. js: innerHTML removes 2 last simbols ']]' in application/xhtml+xml documents. r=mrbkap, sr=sicking
git-svn-id: svn://10.0.0.236/trunk@213458 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-10 21:28:23 +00:00
sayrer%gmail.com
aaeae25f4d b=339599. nsISAXXMLReader expects a nsIChannel passed to onStartRequest, but interface takes an nsIRequest. r=mrbkap, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@200259 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 03:03:28 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
mrbkap%gmail.com
3ad008c538 CNavDTD shouldn't have a DTD and we shouldn't try to QI to it. bug 327980, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@190770 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-22 00:00:38 +00:00
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
mrbkap%gmail.com
7bd7ef3c84 Don't create extra parser contexts once the parser has been terminated. Also make sure to clean up any extra parser contexts if they do get created. bug 323441, r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@188682 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-01 18:57:09 +00:00
mrbkap%gmail.com
b7ece70d44 Remove the obsolete concept of "DTD verification". bug 323958, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@188516 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-30 23:45:19 +00:00
mrbkap%gmail.com
8b6ba84a47 bug 324738: Remove some unnecessary complexity from the parser and hardcode DTDs. r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@188251 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 19:07:41 +00:00
mrbkap%gmail.com
44fd52082e bug 321781: document.close() causes weird things to happen when asynchronous things were document.written. r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@188077 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-24 01:25:14 +00:00
peterv%propagandism.org
7c949449af Fix for bug 316582 (Clean up style in parser/htmlparser - CParserContext and small nsParser changes). r=mrbkap, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@187543 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-13 14:45:32 +00:00
mrbkap%gmail.com
2e63354637 bug 321344: Make sure we always enter the loop. There's no reason to actually
test anything here because we never really did before. Review from peterv is
still pending, but brendan wants this on the trunk because it breaks
XMLHttpRequest.


git-svn-id: svn://10.0.0.236/trunk@186556 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-24 07:39:09 +00:00
mrbkap%gmail.com
66b4dc4c78 bug 316582: Clean up stye in parser/htmlparser. r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@186462 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-22 22:31:36 +00:00
timeless%mozdev.org
dae7b0629a Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185282 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 21:57:13 +00:00
timeless%mozdev.org
8a213cf6db Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185276 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 19:48:04 +00:00
mrbkap%gmail.com
7afa2a74e6 bug 317452: nsParser::Tokenize has no reason to be recursive. r=jag sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@185165 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-22 23:29:30 +00:00
peterv%propagandism.org
029c09a76e Backout due to tree orange.
git-svn-id: svn://10.0.0.236/trunk@185043 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-21 14:59:12 +00:00
timeless%mozdev.org
db63280166 Bug 106386 Correct misspellings in source code
patch by supernova_00@yahoo.com r=timeless


git-svn-id: svn://10.0.0.236/trunk@185035 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-21 06:25:15 +00:00
mrbkap%gmail.com
3a647b1136 bug 311907: Use a function that correctly updates the DTD internal flags so that invalid <body>s in the new string don't confuse us. r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@184600 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-14 21:55:34 +00:00
mrbkap%gmail.com
d2ad849da9 bug 315927: Clean up nsHTMLTokenizer to not have so many virtual methods. Also clean up CParserContext::GetTokenizer. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@184466 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-11 19:11:36 +00:00
mrbkap%gmail.com
7b7b3071c8 bug 313823: Handle illegal forms of meta charset tags better. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@183377 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 01:10:37 +00:00
mrbkap%gmail.com
1f9d7bc6df bug 307593: Remove the unused and very broken CWordTokenizer class. Patch by Hans-Andreas Engel <Hans-A.Engel@unibas.ch>. r=mrbkap sr=jst
git-svn-id: svn://10.0.0.236/trunk@179927 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 21:59:51 +00:00
peterv%propagandism.org
92b741449b Fix for bug 153998 (COtherDTD should go; composer should handle containment checking itself). r=mrbkap, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@179660 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 14:18:56 +00:00
bzbarsky%mit.edu
0fc90867a3 Sync up the MIME type list in parser with what nsContentDLF has, and improve
the error handling for cases when a mismatch does happen.  Bug 306502,
r=mrbkap, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@179398 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-31 17:33:54 +00:00
mrbkap%gmail.com
a97d5d8a28 bug 305448: Fix leak when page load is terminated while we have multiple parser contexts around (e.g., for a script load started from a document.write). r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@178639 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 21:51:00 +00:00
peterv%propagandism.org
4f974157e9 Fix for bug 298391 (Remove some unused stuff from parser code). r=mrbkap, sr=jst, a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@175091 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 13:21:59 +00:00
mrbkap%gmail.com
f2a332e8d4 bug 296677: Fix nsParser::ParseFragment to not screw up setting <textarea>'s innerHTML. r=jst sr=peterv a=asa
git-svn-id: svn://10.0.0.236/trunk@174716 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 18:59:59 +00:00
mrbkap%gmail.com
3561d0632c bug 296121: The parser leaks when somebody calls document.open() and doesn't write any data. r+sr=bzbarsky a=shaver
git-svn-id: svn://10.0.0.236/trunk@173997 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 22:37:04 +00:00
mrbkap%gmail.com
866b6f0775 bug 295519: Set the scanner's mIncremental member so that the tokenizer doesn't throw away content. r+sr=jst a=shaver
git-svn-id: svn://10.0.0.236/trunk@173995 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 22:32:23 +00:00
mrbkap%gmail.com
e95dc9b671 bug 287990: Bring back <plaintext> support. This supports it "properly" (i.e., no end tag). r=jst sr=dbaron a=shaver
git-svn-id: svn://10.0.0.236/trunk@173994 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 22:30:43 +00:00
cbiesinger%web.de
620f913e6e 295916 r=mrbkap sr=bz a=shaver
- make parser handle calling Parse with an empty string and aLastCall=true
  correctly
- call that from document.close() even in the non-HTML case


git-svn-id: svn://10.0.0.236/trunk@173960 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 19:13:39 +00:00
mrbkap%gmail.com
46f4abf94f bug 294402: Change some unnecessary assertions into warnings. r=brendan sr=bzbarsky a=brendan
git-svn-id: svn://10.0.0.236/trunk@173510 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-17 16:27:21 +00:00
bzbarsky%mit.edu
a16228acf0 Fix crashes when document.load is called on an already-parsing XML document.
Bug 289292, r=sicking, sr=jst, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@172812 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 16:57:24 +00:00
bzbarsky%mit.edu
3d75b80be5 Make sure to wrap a buffered stream around the stream we're passed before
sending it to the parser (which expects a buffered stream).  Bug 287409,
r=darin, sr=jst


git-svn-id: svn://10.0.0.236/trunk@171362 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 04:18:08 +00:00
mrbkap%gmail.com
de71c5320e bug 283036: Append a <body> tag to the context of HTML context stacks to make sure that all context is flushed out of the DTD before we process the new content. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@169631 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-23 04:32:21 +00:00
mrbkap%gmail.com
c49d96100e bug 263053: Get rid of the <endnote> tag when parsing fragments with context, since this can fail if the input stream contains another <endnote> tag. Instead, parse the context in different "chunks" from the new buffer, and notify the fragment sink by way of functions. r=peterv sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@169415 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 19:18:39 +00:00
mrbkap%gmail.com
1f32d7b4db bug 280713: Make sure OnStopRequest updates the correct parsercontext to make sure that pages always get a last chunk shot at tokenization. r=jst sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@169403 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 18:29:02 +00:00
mrbkap%gmail.com
d6ade3fac7 bug 280713: Lost <iframe> from a document because the mIncremental member of the scanner was not getting set properly. r=jst sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168933 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 21:07:38 +00:00
bzbarsky%mit.edu
12f6fa15c7 Add a "safe" way to unblock the parser, to protect against CSSLoader
stupidity.  Bug 220542, patch by Blake Kaplan <mrbkap@gmail.com>, r=jst,
sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@168404 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-27 19:28:22 +00:00
aaronleventhal%moonset.net
45aa5f40a8 Bug 223302. ASSERTION: OnDataAvailable implementation consumed no data: nsParser. r=bz, sr=darin
git-svn-id: svn://10.0.0.236/trunk@167560 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-12 00:55:25 +00:00
aaronleventhal%moonset.net
348c3e0667 Backing out the following fix because tree is closed. Sorry for the mistake. Bug 223302. ASSERTION: OnDataAvailable implementation consumed no data: nsParser. r=bz, sr=darin
git-svn-id: svn://10.0.0.236/trunk@167553 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-11 23:39:22 +00:00
aaronleventhal%moonset.net
e89f017aa4 Bug 223302. ASSERTION: OnDataAvailable implementation consumed no data: nsParser. r=bz, sr=darin
git-svn-id: svn://10.0.0.236/trunk@167552 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-11 23:26:10 +00:00