Commit Graph

457 Commits

Author SHA1 Message Date
Aryeh Gregor
f41637535d Bug 780469 - Reduce unnecessary includes in some content/ header files; r=bz 2012-08-06 15:02:08 +03:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
e57dd159b2 Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan 2012-07-20 14:16:17 +03:00
Henri Sivonen
557f7f595e Bug 765381 - Make the destructors on nsHtml5ElementName and nsHtml5AttributeName virtual to avoid warnings in clang. r=ehsan
--HG--
extra : rebase_source : 3c2558dfa8ef5389b2acd97f419d2276d4269a8d
2012-07-13 15:04:11 +03:00
David Zbarsky
b7e10925fa Bug 772758 - Clean up some build warnings in html5 parser r=hsivonen 2012-07-13 11:55:21 -07:00
Henri Sivonen
80c8bb96d3 Bug 765620 - When parsing from stream without executing scripts, avoid script execution-related tree ops. r=smaug 2012-06-20 10:05:39 +03:00
Ed Morley
bb3f6c2bad Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-02 10:03:16 +01:00
Ms2ger
a4ebdb8e6a Bug 767790 - Remove nsIHTMLDocument::{Get,Set}IsFrameset; r=mounir 2012-07-02 08:22:37 +02:00
David Zbarsky
ae718ee1c0 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Olli Pettay
bdc49663e2 Bug 766792 - 'ASSERTION: Somehow there's stuff in the op queue' in nsHtml5TreeOpExecutor::~nsHtml5TreeOpExecutor, r=hsivonen 2012-06-21 17:13:10 +03:00
Henri Sivonen
4f0811d5d3 Bug 764774 - Remove unused variable and object creation from nsParserUtils. r=smaug. 2012-06-15 15:28:28 +03:00
Ryan VanderMeulen
9180278d42 Merge m-c to inbound. 2012-06-14 18:45:40 -04:00
Olli Pettay
d041f5964c Bug 734015 - Slow down parsing of web pages in background tabs, r=hsivonen 2012-06-14 21:00:05 +03:00
Ehsan Akhgari
6e0dbb0661 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (parser parts); r=hsivonen 2012-06-13 00:07:59 -04:00
Ed Morley
10a18d4b30 Backout 4d93e6ed8a49 (bug 764774) for mochitest-chrome failure in test_bug675492.xul 2012-06-14 14:34:42 +01:00
Henri Sivonen
81f5560927 Bug 764774 - Remove unused variable and object creation from nsParserUtils. r=smaug. 2012-06-14 15:18:58 +03:00
Henri Sivonen
79e3d21a31 Bug 750096. r=bzbarsky. 2012-06-14 09:14:47 +03:00
Honza Bambas
41779e1714 Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium 2012-06-12 19:06:20 +02:00
Gervase Markham
d4eb7d5782 Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Ryan VanderMeulen
aea26280da Backout 8cf563a575fd (bug 734015) due to random Moth orange. 2012-05-23 19:27:40 -04:00
Olli Pettay
f7ee740e66 Bug 734015 - Try to slow down parsing of web pages in background tabs, r=hsivonen 2012-05-23 15:55:13 +03:00
Benjamin Smedberg
4f91700da9 Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Henri Sivonen
ad81b49e43 Bug 742414 & Bug 731234 - Highlight script end tag correctly in View Source and avoid crashing when doing so. r=smaug. 2012-04-17 14:53:52 +03:00
Boris Zbarsky
65ea8775ae Bug 721730. When we have a null aKey, don't do a linear search down to mLastBuffer. r=hsivonen 2012-04-13 13:46:07 -04:00
Daniel Holbert
95002fef4b Bug 743404: In nsHtml5TreeOperation::Perform, store the return-value of nsINode::IndexOf in a PRInt32 instead of a PRUint32, so we can range-check it. r=hsivonen 2012-04-10 10:44:49 -07:00
Henri Sivonen
febee54c5c Bug 732343 - Defend HTML document loading against extensions causing bogus use of the old HTML parser. r=smaug. 2012-03-31 17:10:34 +03:00
Ms2ger
968425f97e Bug 738654 - Part b: RemoveChildAt can't fail; r=sicking 2012-03-29 23:09:07 +02:00
Henri Sivonen
470d4a5866 Bug 739033 - Allow external View Source editor code live dangerously. r=smaug. 2012-03-27 09:27:45 +03:00
Henri Sivonen
95b45892e6 Bug 672453 - Whine to console about various character encoding declaration-related authoring errors. r=smaug.
--HG--
rename : extensions/universalchardet/tests/bug631751be_text.html => parser/htmlparser/tests/mochitest/file_bug672453_bomless_utf16.html
2012-03-24 13:34:42 +02:00
Henri Sivonen
0b5228046a Bug 738572 - #include nsIHTMLContentSink.h in fewer places. r=bzbarsky. 2012-03-23 17:21:44 +02:00
Kyle Huey
c90b61825e Bug 737875. r=hsivonen 2012-03-23 07:44:06 -07:00
Henri Sivonen
f2d3f89eb7 Bug 737417 part 1 - Split charset source constants out of nsIParser.h. r=smaug. 2012-03-22 16:42:42 +02:00
Henri Sivonen
cd61e269c7 Bug 717488 part 1. r=smaug. 2012-03-21 14:39:25 +02:00
Henri Sivonen
e8ee050c0f Bug 737013 - Expose sanitizer fragments on parseFragment(), migrate callers to the new interface. r=smaug. 2012-03-20 17:28:42 +02:00
Henri Sivonen
91e98a88cd Bug 709083 - Call DoneCreatingElement before children have been appended to the element. r=bzbarsky. 2012-02-03 15:32:31 +02:00
Henri Sivonen
82c137d953 Bug 650776 part 1 - Introduce a new HTML source to HTML source sanitizer XPCOM API. r=smaug. 2012-03-19 10:16:20 +02:00
Henri Sivonen
c6a3e70119 Bug 733282. r=smontagu. 2012-03-14 13:19:15 +02:00
Boris Zbarsky
d51b138c8b Bug 696301 part 2. Communicate the crossorigin preload state from the parser to the scriptloader. r=sicking,hsivonen 2012-03-10 10:13:52 -06:00
Jacob Holzinger
acfe99c129 Bug 696242 - Convert NS_RegisterStaticAtoms and nsCSSScanner::ReportUnexpectedParams to take an array-reference rather than a pointer and length, making it impossible to pass a pointer/length that are inconsistent. r=jwalden
--HG--
extra : rebase_source : 882b5b4d500b1fa242c0a3cfa3084e4171cbaa9d
2012-03-08 18:22:57 -08:00
Makoto Kato
2c1e47f122 Bug 590390 - deCOM nsICharsetAlias. r=smontagu
--HG--
rename : intl/locale/public/nsICharsetAlias.h => intl/locale/public/nsCharsetAlias.h
rename : intl/locale/src/nsCharsetAliasImp.cpp => intl/locale/src/nsCharsetAlias.cpp
2012-03-05 12:57:51 +09:00
Henri Sivonen
e8058853dd Bug 650784 part 1.5 - Move nsScriptableUnescapeHTML from Toolkit to Core. r=smaug.
--HG--
rename : toolkit/components/feeds/nsIScriptableUnescapeHTML.idl => parser/html/nsIScriptableUnescapeHTML.idl
rename : toolkit/components/feeds/nsScriptableUnescapeHTML.cpp => parser/html/nsParserUtils.cpp
rename : toolkit/components/feeds/nsScriptableUnescapeHTML.h => parser/html/nsParserUtils.h
2012-02-27 13:57:48 +02:00
Henri Sivonen
33afed3ab8 Bug 650784 part 1 - Introduce a new API for converting HTML to plain text. r=smaug. 2012-02-27 13:57:48 +02:00
Nathan Froyd
5d40e7fccd Bug 700659 - Slay nsHashSets in parser. r=hsivonen, smaug 2011-11-08 15:22:47 -05:00
Henri Sivonen
38e003626d Bug 721313 - Do not run normal parse end code when parsing a full document from string. r=smaug. 2012-01-26 15:59:22 +02:00
Ms2ger
e3e8b35541 Bug 718504 - Remove some GetChildAt callers; r=smaug 2012-01-25 08:50:07 +01:00
Henri Sivonen
60292745ec Bug 102699 - Support text/html in DOMParser.parseFromString(). r=smaug.
--HG--
rename : content/base/test/file_html_in_xhr.sjs => parser/htmlparser/tests/mochitest/file_bug102699.sjs
2012-01-20 14:03:49 +02:00
Henri Sivonen
9b60bd476a Bug 714777 - Refactor fragment parsing out of nsHtml5Parser. r=smaug. 2012-01-20 13:16:27 +02:00
Henri Sivonen
3fee03c38e Bug 715103 - Move parser unblocking management from nsContentSink to nsScriptLoader. r=smaug. 2012-01-20 13:16:27 +02:00
Henri Sivonen
838c272dbe Bug 715739 - Make document.write from inside a script-created parser not add to the wyciwyg channel. r=smaug. 2012-01-20 13:16:27 +02:00
Henri Sivonen
334ab5df47 Bug 715112 - Remove duplicate document.close() state tracking. r=smaug. 2012-01-20 13:16:26 +02:00
Jeff Muizelaar
9c9e2eed37 Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Matt Brubeck
2e1e2ae3c5 Back out 88733ce1bef3 (bug 718440) because of Windows build failure 2012-01-17 15:15:47 -08:00
Jeff Muizelaar
581f54f157 Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Henri Sivonen
d54df1015f Bug 655261 - Remove nsIParserFilter from the tree. r=mrbkap. 2012-01-09 14:20:43 +02:00
Henri Sivonen
e277245214 Bug 711049 - Adjust MathML text integration point treatment to comply with spec changes. rs=smaug. 2012-01-02 16:18:29 +02:00
Henri Sivonen
dd53ba4bab Bug 711052 - Make <rp> and <rt> handling match spec edits. r=smaug. 2012-01-02 16:18:29 +02:00
Mats Palmgren
40e1c39875 Bug 706932 - stack overflow when deleting long nsHtml5OwningUTF16Buffer list (recursive dtor). r=hsivonen 2011-12-17 22:19:20 +01:00
Andrew Quartey
80d00b8b88 Bug 689834. Only look at the muted attribute when initially creating the element. r=bzbarsky 2011-12-15 14:36:46 -05:00
Gabor Krizsanits
873b2b62fc Bug 678465 - 'document-element-inserted' doesn't fire on ImageDocument; r=bz 2011-12-15 15:10:36 +00:00
Masatoshi Kimura
ef45bcacdc Bug 704820 - Simplify nsContentUtils::ReportToConsole. r=smaug 2011-12-15 14:47:03 +00:00
Henri Sivonen
bfbe063e6a Bug 695640 - Remove View Source pre chunking, because it is no longer needed for reasonable perf. r=smaug. 2011-11-30 19:44:31 +02:00
Henri Sivonen
4c62e04846 Bug 703965 - Use View Source styling when viewing plain text source. r=smaug. 2011-11-30 19:44:31 +02:00
Henri Sivonen
08bb8d42f9 Bug 699356 - Show the URL of the page in the title of the View Source window. r=smaug. 2011-11-30 19:44:31 +02:00
Matt Brubeck
41aa9b3c38 Back out 38814e0bafb9 through c5d44e6e957b because of test failures 2011-11-30 11:44:50 -08:00
Henri Sivonen
e07e1adbbf Bug 695640 - Remove View Source pre chunking, because it is no longer needed for reasonable perf. r=smaug. 2011-11-30 19:44:31 +02:00
Henri Sivonen
6f9a5aed13 Bug 703965 - Use View Source styling when viewing plain text source. r=smaug. 2011-11-30 19:44:31 +02:00
Henri Sivonen
c832d4cbd9 Bug 699356 - Show the URL of the page in the title of the View Source window. r=smaug. 2011-11-30 19:44:31 +02:00
Henri Sivonen
6b05a156c4 Bug 699365 - Avoid asserting when the parser command is "external-resource". r=smaug. 2011-11-30 15:11:38 +02:00
Henri Sivonen
4982d39971 Bug 535530 - Transition to the return state eagerly when a semicolon has matched when tokenizing a named character reference in HTML. r=smaug. 2011-11-30 15:11:37 +02:00
Henri Sivonen
ec23367d78 Bug 704667 - Take transitions from the comment start state to the data state into account when doing syntax highlighting. r=smaug. 2011-11-29 08:55:09 +02:00
Henri Sivonen
483054770c Bug 704034 - Replace old pre-interned looping attributes with a single loop attribute in the HTML parser. rs=smaug. 2011-11-22 10:29:14 +02:00
Henri Sivonen
d6f3956f8a Bug 704058 - Sync HTML parser .java sources in m-c with the htmlparser repo. rs=smaug. DONTBUILD 2011-11-21 16:12:15 +02:00
Henri Sivonen
44e424ee00 Bug 651072 - Support HTML parsing in XMLHttpRequest. r=smaug. 2011-11-16 09:38:51 +02:00
Andrew
a7c87d3b14 Bug 466626 - Make nsStyleLinkElement::ParseLinkTypes return a bitmask; r=roc 2011-11-20 11:13:40 +00:00
Matt Brubeck
2c50849fa3 Back out 75ace50df008 to try to fix failures after last central/inbound merge on a CLOSED TREE 2011-11-16 11:50:48 -08:00
Ed Morley
6000587a19 Merge mozilla-central to mozilla-inbound 2011-11-16 18:05:23 +00:00
Ms2ger
3cc9466821 Bug 697494 - Outparamdel nsIParser::GetStreamListener; r=hsivonen 2011-11-16 08:50:19 +01:00
Ms2ger
8c93cf88ec Bug 698261 - Remove the aElementType argument of NS_NewElement; r=bz 2011-11-16 08:50:19 +01:00
Ms2ger
87cfab5086 Bug 669012 - Part b: Introduce nsIScriptElement::AttemptToExecute; r=smaug+hsivonen. 2011-11-16 08:50:18 +01:00
Henri Sivonen
09985ff269 Bug 651072 - Support HTML parsing in XMLHttpRequest. r=smaug. 2011-11-16 09:38:51 +02:00
Henri Sivonen
1ed9041d38 Bug 700260 - Honor the view_source.tab_size pref in a way that actually works. r=smaug. 2011-11-07 21:20:14 +02:00
Henri Sivonen
de222b191d Bug 700042 - Support turning off View Source syntax highlighting. r=smaug. 2011-11-07 21:20:14 +02:00
Henri Sivonen
02166bddb5 Bug 699752 - Remove stray preposition from parser error reporting. r=smaug. 2011-11-07 11:29:18 +02:00
Henri Sivonen
002e5a0069 Bug 699750 - Fix accidental use of int instead of PRInt32. r=smaug. 2011-11-07 11:29:17 +02:00
Henri Sivonen
6578e60cbf Bug 699749 - Avoid the term "astral" in error messages. r=l10n. 2011-11-04 15:36:29 +02:00
Henri Sivonen
0d4f001013 Bug 698935 addendum - Rename the errStrayStartTag string key because the value changed. r=l10n. 2011-11-04 15:36:29 +02:00
Henri Sivonen
6682f94acf Bug 699347 - Avoid crashing when viewing source of XML files that have an XML declaration without the encoding pseudo-attribute. r=smaug. 2011-11-03 16:31:27 +02:00
Henri Sivonen
34ec811b55 Bug 659763 - Make document.open("text/plain") work with the new parser. r=Olli.Pettay. 2011-11-01 17:27:36 +02:00
Henri Sivonen
dc6ff15cba Bug 479959 - Reimplement text/plain loading using the HTML5 parser. r=Olli.Pettay. 2011-11-01 17:27:36 +02:00
Henri Sivonen
e434910347 Bug 482921 part 14 - Address review comments. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
aa15aa3b1f Bug 482921 part 11 - Deduplicate the tokenizer loop in .cpp. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
31b733036d Bug 482921 part 10 - Support parametrized error messages in new View Source. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
801c32d635 Bug 482921 part 8 - Start a new <pre> occasionally in View Source refixing bug 86355. r=bzbarsky. 2011-11-01 13:33:11 +02:00
Henri Sivonen
d9b76169a4 Bug 482921 part 7 - Add an id for each line in new View Source. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
2963a24ae6 Bug 482921 part 6 - Use the internal encoding declaration in the XML View Source case. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
e0a7b8950f Bug 482921 part 5 - Add entry point for new View Source for XML; Make new View Source easy to disable. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
2e697f57ad Bug 482921 part 4 - Support XML syntax highlighting in the parser core. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
f55328bb86 Bug 482921 part 3 - Highlight tree builder-level errors in View Source. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
d55e46aa36 Bug 482921 part 2 - Highligh tokenizer-level errors in View Source. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00