Commit Graph

423 Commits

Author SHA1 Message Date
Mitchell Field
9818f00bf2 Bug 560095 - Use mozilla::services::GetObserverService(). r=biesi,dveditz,gavin,josh,jst,mrbkap,roc,sdwilsh,shaver,sicking,smontagu,surkov 2010-04-29 18:59:13 +02:00
Henri Sivonen
58caddd7b4 Bug 551344 part 6 - Address more review comments from sicking in the Java parts of the HTML5 parser. r=jonas.
--HG--
extra : rebase_source : b89e63cce5869fc0518eacc1102f0d1b4b12d356
2010-04-19 16:25:13 +03:00
Henri Sivonen
711ffaef52 Bug 548232 - Make meta charset not have an effect on document.open()ed documents in the HTML5 parser (reverting most of bug 539887). r=bzbarsky.
--HG--
extra : rebase_source : 3f001d62e55a4ecd02c4ab8d1f6997e1547aef4e
2010-04-16 13:52:06 +03:00
Mounir Lamouri
dbdc60fd52 Bug 346485 - "Implement output element" [r=smaug,hsivonen,mrbkap,timeless,roc sr=jst] 2010-04-26 03:42:00 -04:00
Henri Sivonen
3347cbeda8 Bug 551344 part 4.5 - Drop flush timer safely when the cycle collector unlink nsHtml5Parser before nsHtml5StreamParser. r=jonas.
--HG--
extra : rebase_source : 1074aa1d53c749d2cb402abc5d084dfa969c352f
2010-04-27 10:33:06 +03:00
Henri Sivonen
5c3712d80a Bug 551344 part 4 - Address more review comments from sicking in the C++ parts of the HTML5 parser. r=jonas.
--HG--
extra : rebase_source : b15efefa4ba578dead7645770f5ce3fa8becefda
2010-04-16 13:52:06 +03:00
Jonas Sicking
930783a5d2 Bug 515401: Make implementation of <base> HTML5 compliant, and clean it up. r=benjamn a=dholbert 2010-04-23 09:10:07 -07:00
Robert O'Callahan
75dc672dff Backed out changeset 7432d20f5b86 2010-04-23 16:34:06 +12:00
Mounir Lamouri
fba2c4e7f0 Bug 346485. Implement HTML5 <output> element. r=smaug,hsivonen,mrbkap,sr=jst 2010-04-23 14:43:23 +12:00
Henri Sivonen
ec4be11d2b Bug 539210 - Revise the README of the HTML5 parser Java to C++ translator to cover all makefile functionality. r=bnewman. NPOTB. 2010-04-22 11:24:54 +03:00
Olli Pettay
857f96fac4 Bug 559311 - [HTML5] nsContentUtils::CreateContextualFragment doesn't cache HTML5 parser properly, r=smaug 2010-04-21 14:54:40 +03:00
Henri Sivonen
5653937f4d Bug 559819 - Change the string id for the isindex prompt. r=l10n.
--HG--
extra : rebase_source : 34212e52674deb7e3c20ef3dab91785d3f70bdf4
2010-04-20 17:19:30 +03:00
Jonas Sicking
1a83956b1c Bug 518110: Kill HTMLBaseFontElement interface and HTMLHeadElement.profile. Also merge nsHTMLHeadElement and nsHTMLHtmlElement into nsHTMLSharedElement. r=jst
--HG--
extra : rebase_source : 651aeed4f884405ffd980b3b74a0dbb21f931156
2010-04-19 12:06:00 -07:00
Henri Sivonen
ff15bc6c29 Bug 551344 part 5 - Address more sicking's review comments in the Java parts of the HTML5 parser. r=jonas. 2010-04-16 13:52:06 +03:00
Henri Sivonen
21d2f60a92 Bug 551344 part 3 supplement - Rename the getter for the length of list of active formatting elements in the HTML5 parser. r=jonas. 2010-04-16 13:52:06 +03:00
Henri Sivonen
47c742aea1 Bug 551344 part 1 - Address sicking's review comments in nsHtml5Parser.cpp. r=jonas. 2010-03-15 14:04:41 +02:00
Henri Sivonen
8bfa38a78e Bug 558302 - Make <button> non-scoping in the HTML5 parser. r=bnewman. 2010-04-16 13:52:06 +03:00
Henri Sivonen
1601c4c313 Bug 555906 - </datalist> does not implicitly close an <option> in the HTML5 parser. r=bnewman. 2010-04-09 18:48:30 +03:00
Henri Sivonen
5664e3de35 Sync the Java sources of the HTML5 parser with the parser repo. rs=sicking. NPOTB. 2010-04-09 18:48:29 +03:00
Henri Sivonen
b4912a8aa5 Bug 500631 part 1 - Make the default isindex prompt use a localized string in the HTML5 parser. r=bnewman. 2010-03-17 10:26:17 +02:00
Henri Sivonen
28a25f85ce Test adjustment for bug 500631 - Update html5lib tree builder test data to reflect the new isindex prompt from the spec. r=bnewman. 2010-04-09 17:11:56 +03:00
Henri Sivonen
3ae90f450c Bug 551344 part 3 - Address sicking's review comments in nsHtml5StreamParser.cpp. r=jonas. 2010-04-09 17:11:56 +03:00
Henri Sivonen
a0036b91e6 Bug 551344 part 2 - Address sicking's review comments in nsHtml5TreeOpExecutor.cpp. r=jonas. 2010-03-15 14:04:42 +02:00
Craig Topper
771eede254 Bug 557416: Remove unnecessary includes and forward declarations of nsPresContext. r=roc 2010-04-10 16:10:12 -04:00
Peter Van der Beken
5ee0f2a342 Fix for bug 555496 ( XML invalid character error is reported on a completely unrelated location). r=bz.
--HG--
extra : rebase_source : 5db24ca46d2204efc961ab3b21c7a2ea48dc669c
2010-03-30 12:45:59 +02:00
Michael Wu
c7af30faed Bug 553121 - Use resource URIs instead of file URIs for DTDs, r+sr=jst 2010-04-02 11:32:38 -07:00
Henri Sivonen
de75440fbe Bug 501082 - Use a more efficient data layout for the named character tables in the HTML5 parser. Based on patch by dbaron. r=bnewman.
--HG--
extra : rebase_source : abe4519a3eeacdc2f89343b26c7b961f62dfb435
2010-03-29 14:01:18 +03:00
Henri Sivonen
1608f31ed7 Bug 555899 - Make the HTML5 parser have a limit of 200 on the stack depth like the old parser. rs=sicking. 2010-03-30 11:21:36 +03:00
Henri Sivonen
d9cf6edf3d Bug 555462 follow-up - Sync HTML5 parser Java sources with the backout. rs=sicking. NPOTB. 2010-03-30 11:21:36 +03:00
Henri Sivonen
a2caf355ca Bug 555462 - Back out changeset a0f0fde99844 for causing a buffer overrun. 2010-03-30 11:21:36 +03:00
Henri Sivonen
0f3605a261 Bug 554513 - Remove buffer growth limits from the HTML5 parser where the old parser did not have the exact corresponding limits. rs=sicking.
--HG--
extra : rebase_source : d9de246b1e950dc314a9680a0043b29d576e291e
2010-03-26 09:50:21 +02:00
Henri Sivonen
1889c29241 Bug 539434 follow-up - Sync the Java sources of the HTML5 parser with the htmlparser repository. rs=sicking. NPOTB.
--HG--
extra : rebase_source : 6ff1b377ab4663bc7a34c805da92a5d8e3adaed1
2010-03-26 09:50:20 +02:00
Henri Sivonen
629a0e668d Bug 543458 - Make the HTML5 tree op executor use nsContentSink code for deciding when to return to the event loop. r=bnewman.
--HG--
extra : rebase_source : fa41825753811279070d232c7d467600d7b2d523
2010-02-26 11:18:38 +02:00
Ben Newman
19ee453611 Bug 539434 - [HTML5] The translator isn't updating parser/html/javasrc/. r=hsivonen
--HG--
extra : rebase_source : c3f47999413d3382720b1ebb108327ea5d67066e
2010-03-22 10:30:07 -07:00
Henri Sivonen
11c18b934e Bug 546641 - Map &#13; to CR in the HTML5 parser. rs=sicking.
--HG--
extra : rebase_source : 0c021cc263ea7172b0f386be89a6e6d45fba23c0
2010-03-09 15:13:48 +02:00
Henri Sivonen
7bc8dbf67a Bug 489820 and bug 483209 - Make the HTML5 parser check buffer bounds less often and place limits on buffer growth. rs=sicking.
--HG--
extra : rebase_source : 57088761bab23d50aab5bb6b2e5f22f50a48c2e8
2010-02-12 09:49:06 +02:00
Henri Sivonen
d858fa708c Bug 506090 - Speed up the tokenization of named character references in the HTML5 parser. r=bnewman.
--HG--
extra : rebase_source : bee1464b806dd5b1ce85fe6257ffcad18de61825
2010-02-10 11:23:35 +02:00
Henri Sivonen
1b6028dc09 Bug 540574 - Make the HTML5 parser break out of doc update on <body> and remove trailing white space from test_bug386782.html. r=bnewman.
--HG--
extra : rebase_source : 8a0b6e679c70c6d2429a9fdbf469cc59d285ca2f
2010-02-22 14:17:33 +02:00
Henri Sivonen
13fbcec474 Bug 539887 - Make document.written meta charset affect the charset of document.opened documents in the HTML5 parser. r=bnewman.
--HG--
extra : rebase_source : 71434258f5a6f330e1e0583826fbb415fb110b0b
2010-03-09 14:39:32 +02:00
Henri Sivonen
c325b81e27 Test for bug 536097 - Copy endTag flag when copying HTML5 tokenizer state. r=jmuizelaar.
--HG--
extra : rebase_source : afca17c363c02d8e8594ea0eee4d435fdd500732
2010-03-12 12:27:15 +02:00
Henri Sivonen
1398345c93 Bug 536097 - Copy endTag flag when copying HTML5 tokenizer state. rs=sicking.
--HG--
extra : rebase_source : a7effe977998b9fe7dd32abed804a0e3a70df079
2010-03-12 12:27:15 +02:00
Henri Sivonen
c90899f45f Bug 549591 - Atom staticness checks lack a negation in the HTML5 parser. r=jonas.
--HG--
extra : rebase_source : 37591aca16f6e95e1afede9c567232d1fa84e2da
2010-02-26 11:18:35 +02:00
Jonathan Griffin
ed46314fb5 Bug 546635. Update html5 parser tests from html5lib sources. r=hsivonen
--HG--
extra : rebase_source : 9f59fb08aba7a3cf9cc1b5c3ba4a1ba5c357dd0a
2010-03-08 14:40:53 -08:00
Jonas Sicking
e6aa8d8aab Bug 534136 part 4bis: Fix review comments from peterv that should have been in initial patch. 2010-03-08 08:03:55 -08:00
Jonas Sicking
088a5c3e1c Bug 534136 Part 4: Inline accessors on nsIAtom. r=peterv sr=jst 2010-03-08 07:45:00 -08:00
Jonas Sicking
3175f89133 Bug 534136 Part 3: Optimize atom-using code for the fact that atoms store 16bit strings. Also take advantage of new nsAtomString API. r=bz 2010-03-08 07:45:00 -08:00
Jonas Sicking
c4106f7f22 Bug 534136 Part 2: Use 16bit-char buffers inside atoms. r=bz sr=mrbkap 2010-03-08 07:45:00 -08:00
Jonas Sicking
1a6c0165bf Bug 534136 Part 1: Make atoms keep a pointer to an nsStringBuffer rather than storing the data inline. r=bsmedberg 2010-03-08 07:44:59 -08:00
Zack Weinberg
1e69ee7cc3 Bug 544112 part 1: Make speculative and chrome style sheet loads go through the document object. Rearrange some C++ unit tests so they'll still link after part 2. r=bzbarsky sr=dbaron
--HG--
rename : layout/html/tests/ParseCSS.cpp => layout/style/test/ParseCSS.cpp
rename : layout/html/tests/TestCSSPropertyLookup.cpp => layout/style/test/TestCSSPropertyLookup.cpp
2010-03-02 13:00:39 -08:00
Justin Wood
02a4e81b4f Bug 546103, Remove remnant MOZ_PERF_METRICS from parser/, r=mrbkap 2010-03-01 23:38:21 -05:00
Henri Sivonen
56b37d5371 Bug 545658 - Change the sniffing limit of the HTML5 parser to 1K. r=jst. 2010-02-26 11:18:38 +02:00
Henri Sivonen
f2f731789d Bug 516422 - Copy link prefetching from nsHTMLContentSink to the HTML5 parser. r=bnewman.
--HG--
extra : rebase_source : c0a5999b05919fa496ddcee94f7be74d004288f3
2010-02-25 13:37:35 +02:00
Henri Sivonen
cb3f5d69ed Bug 545402 - Make test_bug42976.html run from onload and make HTML5 createContextualFragment work on DOMs that do not have a docshell. r=Olli.Pettay.
--HG--
extra : rebase_source : 74002d7f9936045065406e412477df9b740ee766
2010-02-22 14:17:31 +02:00
Henri Sivonen
4ed8dd0ba9 Bug 547685 - Weaken test_bug418464.html to make both the old and the HTML5 parser pass. r=bzbarsky.
--HG--
extra : rebase_source : 36fb899487e57618e50b697a75c659c89defb4b7
2010-02-23 15:58:17 +02:00
Henri Sivonen
56cd24d21e Bug 545854 - Add the <keygen> macro to the HTML5 parser. r=bnewman.
--HG--
extra : rebase_source : afd36441c60abba7453fd91c32beec4e6e1fd17b
2010-02-22 14:17:30 +02:00
Doug Turner
8bd84320eb Adding new line to the end of nsHtml5SpeculativeLoader.h to avoid dozens of compiler warnings. trivial fix, no bug
--HG--
extra : rebase_source : c32715faff9ea1c2e06b41ffa9ca1f1e316c68f8
2010-02-23 16:36:30 -08:00
Frédéric Wang
e55eb6a822 Bug 124709. Treat application/mathml+xml as an XML type. r=bzbarsky 2009-11-29 23:18:53 +01:00
Frédéric Wang
8b46e8bd69 Bug 530275. Move more MIME types into nsMimeTypes.h so we don't have to hardcode the strings in various places. r=bzbarsky 2009-11-21 00:12:42 +01:00
Timothy Nikkel
92355591c8 Bug 545593. Remove nsViewManager::Enable/DisableRefresh. r=roc 2010-02-18 13:23:23 -06:00
Timothy Nikkel
53fe3ff52d Backed out changeset 93c7b23284b8 (Bug 545593) for causing Md oth failures on linux. 2010-02-12 16:46:04 -06:00
Timothy Nikkel
73241cb6bc Bug 545593. Remove nsViewManager::Enable/DisableRefresh. r=roc
--HG--
extra : rebase_source : 963053b0f3d5712308b53c665dddcedae08a2b21
2010-02-11 18:14:59 -06:00
Henri Sivonen
3e7e62f762 Bug 541079 - Make app cache selection happen before speculative loads in the HTML5 parser. r=bnewman. 2010-02-02 09:43:18 +02:00
Henri Sivonen
8c86ce90ed Bug 539895 - Flush tree ops in the HTML5 parser upon </select> and </textarea> to make form state restoration work. r=bnewman. 2010-01-20 15:43:58 +02:00
Geoff Lankow
480c28af9d Bug 295506 - Variable tabulator width instead of fixed width of 4 spaces. r=mrbkap 2010-02-03 13:59:01 +01:00
Henri Sivonen
6835111d7b Bug 539215 - Chunk long tree op queue flushes into multiple runnables in the HTML5 parser. r=bnewman.
--HG--
extra : rebase_source : 31f125d0e833aaea2c1bd4755c16d5e7fd5f2e83
2010-01-14 15:58:27 +02:00
Henri Sivonen
84a8e6139d Bug 520581 - HTML5 parser reverses attributes on some elements. r=bzbarsky.
--HG--
extra : rebase_source : 2018b107ac2e508a20e245d49d396e7c1ea7230d
2009-12-23 10:32:39 +02:00
Palo Misik
1cab8b3389 Bug 530505: Rev IID on parser interfaces for Gecko 1.9.3 r=mrbkap 2010-01-23 11:31:17 -05:00
Henri Sivonen
f7637638e6 Bug 539917 - document.writes parsed in reverse order when document.open()ed HTML5 parser gets blocked. r=bnewman. 2010-01-18 15:39:17 +02:00
Henri Sivonen
e57b659dd4 Bug 537557 - Thread-unsafe refcounting in the HTML5 parser when chardet enabled. r=bnewman. 2010-01-12 15:15:10 +02:00
Robert Longson
cbd82b1050 Bug 531259 - The SVG script element should respect the aFromParser flag on NS_NewElement. r=hsivonen, r+sr=jst 2010-01-15 11:44:12 +00:00
Henri Sivonen
9a711fcc66 Bug 537683 - No longer break out of doc update batch upon nsIParser::Terminate() in the HTML5 parser. r=bnewman. 2010-01-05 14:37:05 +02:00
Henri Sivonen
5ba187632d Bug 538193 - Copy over content model element and content model element name when loading state from another HTML5 tokenizer. rs=sicking. 2010-01-11 15:18:37 +02:00
Henri Sivonen
b1b31fb0f1 Bug 514602 - Restore frameset-ok properly when the HTML5 tree builder has left the "in body" insertion mode and comes back. rs=sicking.
--HG--
extra : rebase_source : 42788e58309762098b4b9bb6efadff07335c011b
2009-12-23 10:31:48 +02:00
Henri Sivonen
f5ca5f174a Bug 535810 - Avoid deleting the empty attribute holder in the isindex case. rs=sicking. 2009-12-21 13:18:34 +02:00
Henri Sivonen
5e7912c55e Backing out a change set with a faulty commit message. 2009-12-21 14:03:14 +02:00
Henri Sivonen
4602a4bd81 Avoid deleting the empty attribute holder in the isindex case. rs=sicking.
--HG--
extra : rebase_source : fe35acd60c7f9bbb7512bc931288ee93338872b9
2009-12-21 13:38:58 +02:00
Zbyszek Skowron
7db9570a81 Bug 530090 - Memory leaks in jArray in HTML5 parser. r=hsivonen.
--HG--
extra : rebase_source : 01c86f02f90ebff4bbd173b766b4ce4798751aa8
2009-12-21 13:38:58 +02:00
Henri Sivonen
3b37fbc386 Bug 535499 - Copy the return state over when loading HTML5 tokenizer state from another tokenizer. rs=sicking. 2009-12-17 12:15:08 +02:00
Henri Sivonen
ca2beb2410 Bug 535134 - Make <table><form> in HTML5 tree builder sensitive to the form pointer. rs=sicking.
--HG--
extra : rebase_source : 05a5700c04e31be9d88e3675065b0ad7043665c4
2009-12-16 16:07:06 +02:00
Henri Sivonen
dca9c0448b Bug 535126 - Fix text flushing and EOF bugs in script data states in the HTML5 tokenizer. rs=sicking.
--HG--
extra : rebase_source : 4f62b7ce50fcd4e6224b628f159075a01adf28d3
2009-12-16 15:35:34 +02:00
Henri Sivonen
989c31fb2e Bug 535116 - EOF handling after <xmp>< in wrong in the HTML5 parser. rs=sicking.
--HG--
extra : rebase_source : 707323bc1dbdf085d202aa3a14914eb9e1f9a362
2009-12-16 14:14:02 +02:00
Henri Sivonen
75fb424ed5 Bug 525094 - Avoid shadowing member fields with local variables in the HTML5 parser. rs=sicking.
--HG--
extra : rebase_source : bb52f6d5f9e335a7473524c6acc410b62b3c0863
2009-12-15 15:19:09 +02:00
Henri Sivonen
085d3626c1 Bug 531106 - Crash in [@ nsHtml5Parser::DropStreamParser] triggered by Softpedia framebreaker. r=bnewman. 2009-11-30 17:34:51 +02:00
Henri Sivonen
f4ab766e30 Bug 534546 - Script with defer attribute never runs in the HTML5 parser. Part of the patch for bug 515610 (r=bnewman) but not landed due to a bad merge.
--HG--
extra : rebase_source : 9a6d14b2147370d16bd27b206e12b05037279d83
2009-12-14 15:51:15 +02:00
Jae-Seong Lee-Russo
f7d2537752 Bug 530364 - Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX in /parser, r=mrbkap 2009-12-13 09:32:10 -08:00
Robert Longson
ecadcf59af Bug 467477 - View Source should linkify xlink:href. r=mrbkap 2009-12-12 14:37:22 +00:00
Henri Sivonen
5d189ebc4c Bug 515610 - Make defer and async work with the speculating HTML5 parser. r=bnewman.
--HG--
extra : rebase_source : 19dc4eaddf51c50cb416d62081fcef4ecd8d11c4
2009-11-17 10:52:30 +02:00
Henri Sivonen
e8f639313e Bug 527896 - Freeze script deferredness and asyncness upon insertion to tree by HTML5 parser. r&sr=sicking.
--HG--
extra : rebase_source : a070df9af738e1716929cecf6163f82b74ab4e1d
2009-11-17 10:52:30 +02:00
Henri Sivonen
51e2be55ca Bug 497848 - HTML5 parser fails layout/reftests/bugs/376532-1.html. rs=sicking.
--HG--
extra : rebase_source : 77f3601b318c191626e3dfe8718d2841528cdbbd
2009-12-10 16:27:48 -08:00
Henri Sivonen
41bfb374eb Bug 502568 - HTML5 parser should flush occasionally when loading pure text. r=bnewman.
--HG--
extra : rebase_source : f1de8b7729f1570bf859578bf04192a4c5b6df05
2009-11-17 10:52:30 +02:00
Henri Sivonen
4d6e3587fa Bug 529829 - Crash [@ nsHtml5HtmlAttributes::getLocalName] with isindex attribute. rs=sicking.
--HG--
extra : rebase_source : 302169406834433818327cd19e81938e6569d48c
2009-12-10 16:27:48 -08:00
Henri Sivonen
e5056935a8 Bug 510648 - Delete attribute holder upon emitting an end tag token in the HTML5 parser. rs=sicking.
--HG--
extra : rebase_source : 6586cf2e40a86a77ba4b72f132676d6b1e50516f
2009-12-10 16:27:48 -08:00
Henri Sivonen
c081e1091d Bug 531373 - Script between head and body is not executed by HTML5 parser. rs=sicking.
--HG--
extra : rebase_source : 074c8ea07bec9bcc0dfde3e2ad95cb0d8e49ea6f
2009-12-10 16:27:48 -08:00
Henri Sivonen
4fc8acb2ef Bug 503632 - Script containing <!-- in a string never ends up closed in the HTML5 parser. rs=sicking.
--HG--
extra : rebase_source : 688505ad32f1e88d07ee31bf62f302c131d7f2bb
2009-11-30 17:34:51 +02:00
Henri Sivonen
f2a0a3924a Bug 509009, bug 497848 - Update the HTML5 tokenizer to spec (excluding script changes) as of 2009-11-24. rs=sicking.
--HG--
extra : rebase_source : 1ea9013dcd1a4a4b4d0000f810916d3569cd0172
2009-11-30 17:34:51 +02:00
Henri Sivonen
03c379948c Bug 502804, bug 510063 - Update the HTML5 tree builder to spec as of 2009-11-24. rs=sicking.
--HG--
extra : rebase_source : 3707836f9ad9d61921bf7455d74ee0844f6a4d02
2009-11-30 17:34:51 +02:00
Henri Sivonen
c3ad67c833 Bug 528442 - Call WillCallDoneAddingChildren for SVG scripts in the HTML5 parser. r=bnewman.
--HG--
extra : rebase_source : 7fef8d4a9ac5fcc442229ea7c3349944c5d4ecef
2009-11-17 10:52:30 +02:00
Henri Sivonen
841cc3cb3e Bug 509666 - Notify the right document in the HTML5 parser when nodes have been moved between documents during the parse. r=bnewman.
--HG--
extra : rebase_source : ecf04f12b213b6be84887b83c98e15817074d374
2009-11-11 10:37:35 +02:00
Henri Sivonen
bcac5a67b9 Bug 497861 - Wrong form state preservation on reparse in HTML5 parser. r=bnewman.
--HG--
extra : rebase_source : 841506bea91507339e89eefa95cde68ca2d9a5dd
2009-11-06 15:06:48 +02:00
Henri Sivonen
8e383819dc Crashtest for bug 525229 - Crash [@ nsHtml5PendingNotification::nsHtml5PendingNotification] when document.writing an external script followed by start tag. r=bnewman.
--HG--
extra : rebase_source : 706b0fd3c4eadfc39d984eee4d71288d7b8c46e2
2009-11-11 10:37:34 +02:00