371 Commits

Author SHA1 Message Date
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
mrbkap%gmail.com
3df650a60e bug 276149: Remove nsScanner::Eof() and fix error handling in nsScanner.cpp. patch by Hans-A.Engel@unibas.ch r=mrbkap sr=brendan
git-svn-id: svn://10.0.0.236/trunk@167221 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-03 22:06:27 +00:00
mrbkap%gmail.com
55015dd49f bug 88952: Remove trailing content. This checkin fixes a whole slew of textarea bugs. r=jst sr=rbs
git-svn-id: svn://10.0.0.236/trunk@166010 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-01 04:37:36 +00:00
jst%mozilla.jstenback.com
902a5809c5 Fixing bug 267854. Make sure parser data listeners get all the data that comes in from necko, no matter what the current parser context is. r=bzbarsky@mit.edu, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@164986 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-05 06:50:27 +00:00
jst%mozilla.jstenback.com
bbbde81598 Fixing bug 265334. Adding API for embedders etc to listen to data fed to the parser from the network. r=darin@meer.net, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@164795 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-02 19:52:32 +00:00
mrbkap%gmail.com
c191919eed bug 265814: the output of document.write() is always parsed in quirks mode. r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@164540 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-28 03:24:59 +00:00
bzbarsky%mit.edu
c6733ef5e7 Make createContextualFragment work for XML. Bug 133827, patch by
steve.swanson@mackichan.com, r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@163041 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 22:27:45 +00:00
jst%mozilla.jstenback.com
d44ec428a0 Landing fix for bug 235798. Ignore Internet Explorer conditional comments parsed in document prologue. Patch by mrbkap@rice.edu, r=dbaron@dbaron.org, sr=jst@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@162480 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-17 00:16:48 +00:00
jst%mozilla.jstenback.com
b9f5ad566e Fixing bug 178088. Making our doctype detection code more robust by ignoring whitespace at the begining of the file when looking for the doctype. r=darin@meer.net. sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@161181 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-24 18:37:33 +00:00
cbiesinger%web.de
2970f134c3 Bug 248694 make nsIParser::GetCommand use an nsCString instead of nsString
r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@159409 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-17 21:45:37 +00:00
bzbarsky%mit.edu
839ea49431 On empty HTML pages, don't synthesize parser nodes for <html> and <body>. We handle
that down the line anyway, so things work fine.  Bug 57717, patch by Blake
Kaplan <mrbkap@rice.edu>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@159293 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 21:40:03 +00:00
roc+%cs.cmu.edu
0b0fa89131 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
roc+%cs.cmu.edu
bdc7e5f59b Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +00:00
bzbarsky%mit.edu
d157a98cdd Remove XXX comment that is now addressed (as rbs pointed out). Bug 113201.
git-svn-id: svn://10.0.0.236/trunk@156394 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-14 00:01:57 +00:00
bzbarsky%mit.edu
6a3b796123 Remove bogus data-sniffing code in CanParse() impls, clean up signature, don't
peek a buffer if we're not planning to autodetect the parsemode.  Bug 113201,
r=rbs, sr=jst


git-svn-id: svn://10.0.0.236/trunk@156393 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-13 23:39:06 +00:00
peterv%propagandism.org
7697906006 Merging patch by gerv (from mozilla/htmlparser).
Bug 236613: change to MPL/LGPL/GPL tri-license.


git-svn-id: svn://10.0.0.236/trunk@155383 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-23 13:24:28 +00:00
darin%meer.net
55688e6410 landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt
git-svn-id: svn://10.0.0.236/trunk@152905 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 02:44:03 +00:00
timeless%mozdev.org
de42fc2998 Bug 211249 mozilla/htmlparser/src/nsParser.cpp line 1766 interuptted should be interrupted
r=heikki sr=heikki


git-svn-id: svn://10.0.0.236/trunk@151357 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 04:06:00 +00:00
sicking%bigfoot.com
3c192bc112 Bug 224727: Make IBM doctype trigger quirks mode rather then almost standards.
r=mkaply sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@148849 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 23:50:18 +00:00
darin%meer.net
ddd2eeea63 fixes bug 221431 "crash: @nsHTMLDocument::ResolveName" patch=keeda@hotpop.com r=darin sr=bz
git-svn-id: svn://10.0.0.236/trunk@147696 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-07 18:20:58 +00:00
darin%meer.net
bc1bb52b19 fixes bug 210125 "need to be able to AsyncWait for closure only" r=dougt sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@147597 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 01:46:31 +00:00
timeless%mozdev.org
45269ef258 Adding the ablity to disable view source.
patch by dougt r=bz,sr=darin,b=199335


git-svn-id: svn://10.0.0.236/trunk@145405 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 23:57:39 +00:00
timeless%mozdev.org
ff3c22c2a1 Bug 214445 View Page Source fails
Backing out:
Bug 199335 [minimo]make all viewsource stuff configurable


git-svn-id: svn://10.0.0.236/trunk@145381 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 17:02:52 +00:00
dougt%meer.net
c2677efc6d Adding the ablity to disable view source. r=bz,sr=darin,b=199335
git-svn-id: svn://10.0.0.236/trunk@145367 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 02:39:05 +00:00
jaggernaut%netscape.com
f34216bf2d Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144992 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-20 07:47:59 +00:00
alecf%flett.org
71e5d724e5 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org


git-svn-id: svn://10.0.0.236/trunk@143800 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:40:34 +00:00
alecf%flett.org
1c89787dc0 fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser


git-svn-id: svn://10.0.0.236/trunk@143589 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 18:16:03 +00:00
harishd%netscape.com
6eb39613d1 Preserve tokenizer state between document.writes. b=99467, r=heikki@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@142987 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-28 20:56:21 +00:00
dwitte%stanford.edu
dc7e857400 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.


git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:34:47 +00:00
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