Commit Graph

282 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Henri Sivonen
9c5afe21fa Bug 529544 - Shut down the HTML5 parser thread from an observer (random crash [@ mozilla::storage::Connection::Close()]). r=sdwilsh.
--HG--
extra : rebase_source : b63735cb935261066b0836d451967a87a5c22929
2009-11-24 14:28:18 +02:00
Jesse Ruderman
b4b916d596 Add crashtests for a few bugs 2009-12-06 17:53:38 -08:00
Jesse Ruderman
308e1a0311 Add crashtests for several bugs 2009-12-06 16:54:07 -08:00
Henri Sivonen
374fb3dd3e Fix the bad orange fix in the previous push. 2009-11-19 17:24:20 +02:00
Henri Sivonen
4c86f702bb Bug 529544 - Make the HTML5 parser not participate on Mochitest. (orange fix)
--HG--
extra : rebase_source : 95fd43ff5dbc85b48750bfd17f9f802506c92925
2009-11-19 17:13:19 +02:00
Henri Sivonen
6159e111f3 Bug 521970 - Remove the ContinueParsing() method. r&sr=mrbkap.
--HG--
extra : rebase_source : 95833f94665e2c9c64a34b7e1bd827ef85a074db
2009-10-21 15:00:29 +03:00
Henri Sivonen
62853870ee Bug 503473 - Prevent document.write() in the HTML5 parser where prohibited by HTML5. r=bnewman, sr=sicking.
--HG--
extra : rebase_source : 0f574695c4d6fad936e9d0960f07261aa192b13d
2009-10-15 14:29:11 +03:00
Jonas Sicking
07bfcef872 Bug 521668: Don't parse more data from the network, even if pumping the event loop from a event handler rather than from a <script>. r=mrbkap 2009-11-06 15:30:24 -08:00
Phil Ringnalda
4ee2e4bdb1 Bug 523054 - Sweep out some more viewer orts, r=dbaron 2009-10-25 10:03:17 -07:00
Blake Kaplan
bc48a0588d Attempting to wallpaper over the topcrash reported in bug 408116. r+sr=jst@mozilla.com 2009-10-23 14:50:40 -07:00
Jesse Ruderman
25cd932599 Add bug 515816's testcase as a crashtest 2009-10-17 19:35:08 -07:00
Taras Glek
b0e277f707 Bug 522229 - XML Pretty-Print no longer colored r=bz
--HG--
extra : rebase_source : a4bac99887fcdae4b82e02e05e765cb9388858aa
2009-10-14 14:34:50 -07:00
Taras Glek
45c73c60d8 Bug 515777 - move css files, hiddenWindow.html to jar r=bsmedberg sr=bz
--HG--
extra : rebase_source : c6ba6e900ceed210620d47f70c9b962a808a29fe
2009-10-12 12:31:50 -07:00
Taras Glek
c7f069ab70 Backed out changeset e22bef491d84 2009-10-08 16:43:55 -07:00
Taras Glek
4c56f842c8 Bug 515777 - move css files, hiddenWindow.html to jar r=bsmedberg sr=bz 2009-10-08 11:22:50 -07:00
Jonas Sicking
0d2f92b52e Bug 518104 - Implement HTML5 changes to <script defer>. r=hsivonen, sr=mrbkap. (Tests fixed and code merged to tip by hsivonen.) 2009-10-02 14:13:59 +03:00
Blake Kaplan
04aac79f62 Bug 519337 - Don't read the sentinel value from a string. r=sicking 2009-09-30 15:15:51 -07:00
Henri Sivonen
adce3cb5c8 Bug 499642 - Split the HTML5 parser into stream parser, doc.write parser and tree op executor. r=bnewman, sr=mrbkap. 2009-09-18 12:21:47 +03:00
Taras Glek
8943704095 Bug 457949 - no need for Stopwatch r=bsmedberg
--HG--
extra : rebase_source : 5cd3baecf54295012b28d42fc7bf4c9b34e12714
2009-08-28 11:03:51 -07:00
Benjamin Smedberg
2e9438fd2f Followup to bug 398573 - remove REQUIRES from the tree since it is no longer used... automatically generated patch, rs=ted 2009-08-25 08:59:31 -07:00
Mats Palmgren
24d627f9cf Fix reorderToMatchExpected by maintaining the inAttrList state correctly. Extend the test file syntax with comment and todo features. b=462701 r=sayrer 2009-08-24 01:22:22 +02:00
Dão Gottwald
0b99c9dd72 Backed out changeset fc7d931fd75b 2009-08-15 10:30:23 +02:00
Jonathan Griffin
c38d2d7030 Add html5 parser tests: tree construction, tokenizer, and comparison beteween Gecko and JS parsers. bug 373864; r=sayrer 2009-08-14 15:02:39 -07:00
Tommy Fogwell
de9537d4f0 Bug 484898 - Remove unused *_TIMER macros in CNavDTD and nsViewSourceHTML. r=bnewman sr=jst
--HG--
extra : rebase_source : f84584ede02f022edeb4b073c598a812134f5d1d
2009-08-14 09:56:03 -07:00
Henri Sivonen
9fd5b6b79a Backout rev 58f91861b1f1. Accidental changes included. 2009-08-13 10:48:13 +03:00
Henri Sivonen
2b3ede7ed7 Bug 509672 - Make HTML5 parser not fire mutation events when adding attributes to root or body elements. r=jonas 2009-08-13 10:45:24 +03:00
Jonathan Griffin
db59ca0328 Add test for bug 502600; cause parser compatibility mode tests to be run with and without the HTML5 parser enabled. r=hsivonen, sr=bz 2009-08-06 13:22:01 -07:00
Blake Kaplan
95fa693563 Bug 497013 - Fix some re-entrancy bugs in the parser. r+sr=sicking 2009-08-04 14:32:46 -07:00
Jonathan Griffin
e83c1d8b93 Add mochitest for bug 502091. 2009-08-05 10:32:20 -07:00
Robert O'Callahan
a3ed732448 Backed out changeset 60add17e8ed3 2009-08-05 16:44:03 +12:00
Yu-Hsun Lin
ab00cb4b56 Bug 486081. Remove unused nsTime class. r=roc
--HG--
extra : rebase_source : 582694b45d1d56759a619a4243abfc5a05453d8a
2009-08-05 14:39:05 +12:00
Henri Sivonen
5cfd6d5ab3 Bug 501015 - Address code style comments from timeless. r+sr=mrbkap 2009-07-15 14:30:33 +03:00
bjarne@runitsoft.com
6687250282 Bug 457809 - Speculatively load images from preloading. r=mrbkap, sr=bzbarsky 2009-07-07 22:23:20 -07:00
Henri Sivonen
af98547431 Bug 487949 - Land HTML5 parser on trunk preffed off r=mrbkap, sr=jonas 2009-06-29 00:44:22 +02:00
Johnny Stenback
eb2ed73403 Backed out changeset 168dd0eb7283 2009-06-28 11:47:11 -07:00
Henri Sivonen
28fcb8397f Merge trunk into HTML5 repo 2009-06-26 18:22:48 +03:00
Ben Newman
2baeab87c0 Bug 484121 (6/6) - Don't let DTDs hold parser references. r+sr=mrbkap 2009-06-23 14:22:17 -07:00
Ben Newman
15437233b4 Bug 484121 (5/6) - Avoid needlessly passing nsIContentSink parameters to nsIDTD methods. r+sr=mrbkap 2009-06-23 14:22:17 -07:00
Ben Newman
d0673daedb Bug 484121 (4/6) - Let the parser call nsIContentSink::{Will,Did}BuildModel directly. r+sr=mrbkap 2009-06-23 14:22:16 -07:00
Ben Newman
b009474f4b Bug 484121 (3/6) - Get rid of nsIDTD::Will{Resume,Interrupt}Parse. r+sr=mrbkap 2009-06-23 14:22:16 -07:00
Ben Newman
94f19e102d Bug 484121 (2/6) - Add nsIDTD::GetMode to eliminate heinous const_cast. r+sr=mrbkap 2009-06-23 14:22:16 -07:00
Ben Newman
38ce0e67f1 Bug 484121 (1/6) - Decompose nsHTMLTokenizer::GetFlags. r+sr=mrbkap 2009-06-23 14:22:16 -07:00
Henri Sivonen
69949bfe89 Merge trunk into HTML5 repo 2009-06-05 14:52:43 +03:00
Henri Sivonen
7b8db88561 Merge trunk into HTML5 repo 2009-05-25 19:16:57 +03:00
Jonas Sicking
d378472c28 Bug 481566: Add prefs to control making the content sink more responsive. r/sr=mrbkap 2009-05-19 08:54:42 -07:00
Henri Sivonen
fee082ae9f Merge the trunk into HTML5 parsing repo 2009-05-04 11:19:16 -07:00
Blake Kaplan
ae947363e1 Bug 490937 - Eagerly start prefetching URIs that we've found when we're done with our section of the document. Don't wait for the parser to tell us to go ahead. r+sr=jst 2009-05-14 13:02:13 -07:00
Henri Sivonen
7daea6f8df Adjust nsParser to implement the HTML5 ParseFragment stub 2009-04-23 13:18:19 +03:00
Henri Sivonen
5c1801d482 Implement one single parsing quirk for HTML5 parser: <p><table>. Required to pass Acid2 and to be compatible with legacy content. 2009-04-22 12:17:08 +03:00
Henri Sivonen
e096617179 Merge trunk into HTML5 parsing repo 2009-03-30 15:32:26 +03:00
Blake Kaplan
c1dd12b814 Bug 495663 - Count newlines correctly if we have an alternate ending position. r+sr=sicking 2009-06-01 20:44:37 -07:00
Blake Kaplan
ed18be0cf5 Bug 488730 - Count newlines correctly when skipping whitespace. r+sr=sicking 2009-06-01 20:44:37 -07:00
Jesse Ruderman
dddd44794e Add crashtests 2009-05-26 11:53:12 -07:00
Henri Sivonen
4a6930f177 Merge the trunk into HTML5 parsing repo 2009-03-26 14:10:18 +02:00
Arpad Borsos
46a23fbb59 Bug 474369 - get rid of nsVoidArray, parser part; r+sr=mrbkap 2009-03-25 09:13:05 +01:00
Peter Van der Beken
7ffc24f45e Backing out 8f9ff81ef3fa to try to fix orange. 2009-03-24 10:43:42 +01:00
Ben Newman
5f8644e892 imported patch simplify-nsIDTD.diff 2009-03-23 18:26:46 -07:00
Ben Newman
3f5a61bc5e imported patch parser-own-dtd.diff 2009-03-23 18:26:46 -07:00
Boris Zbarsky
1c1a3affbf Backing out changeset b47f0de93a82 (bug 457809) due to test failures 2009-03-24 19:18:25 -04:00
bjarne@runitsoft.com
2129bba0b3 Bug 457809 and bug 457810 - Speculatively load images and stylesheets (respectively). r=mrbkap, sr=bz 2009-03-24 12:52:00 -04:00
Henri Sivonen
d4a2fbc016 Merge trunk into HTML5 parsing repo 2009-03-20 17:09:05 +02:00
Boris Zbarsky
64b2d5e1bf Bug 490957. Eliminate nsWebShell. r+sr=bsmedberg 2009-05-07 15:21:53 -04:00
L. David Baron
8c38aba811 Switch HTML mochitests from using MochiKit.js to packed.js. (Bug 490955) r=sayrer 2009-05-06 13:46:04 -07:00
Bob Clary
5ceb37fc14 bug 328751 - crash test by Tom Ferris. 2009-04-24 10:08:11 -07:00
Jonas Sicking
53e008e58c Bug 478889: Make script-defer work in xhtml. r/sr=peterv
--HG--
extra : rebase_source : 4e2abc2b35c72f7c5831f58b0f1c6940b1824de7
2009-03-15 17:53:09 -07:00
Jonas Sicking
c9c9ae21d9 back out changes that weren't supposed to be checked in 2009-03-10 00:03:48 -07:00
Jonas Sicking
e59a5b673b Bug 475636: Disallow refresh to javascript uris. r/sr=bz
--HG--
extra : rebase_source : 1fdfc3148c257aee22001be045258cc985ee027a
2009-03-09 23:03:39 -07:00
Henri Sivonen
a895ed96a7 Merge HTML5 work with trunk 2009-03-09 12:24:48 +02:00
Chris Pearce
ce9746ec0f Chris Pearce - Bug 480889 - Nested <source> elements appear in video's childNodes. r+/sr+ mrbkap 2009-03-09 09:53:58 +13:00
Johnathan Nightingale
bb9eab1dc1 Backed out changeset fdbe218cdcc7 - Causing crashtest hangs on linux. Tracked by bug 479499. 2009-03-03 09:43:47 -05:00
Blake Kaplan
5db7a023ea Add a crashtest for bug 460706. 2009-02-26 17:01:10 -08:00
Blake Kaplan
d74a4498d3 Bug 479499 - Gracefully handle receiving more data while inside the expat driver. r+sr=peterv 2009-02-25 17:38:28 -08:00
Henri Sivonen
9dd56634ea Add innerHTML parsing with HTML5 parser 2009-02-20 18:13:48 +02:00
Doug Turner
32ff514c95 Bug 479480 - drop the XP_MAC specific MAX_REFLOW_DEPTH. r=josh, sr=dbaron 2009-02-20 13:28:15 -08:00
Blake Kaplan
979e570cb8 Bug 478699 - Tell the scanner it's incremental so we don't preload partial tokens. r+sr=jst 2009-02-17 14:59:49 -08:00
Makoto Kato
545bdd7ff2 Bug 174351: Encoding errors aren't treated as fatal XML errors. r=smontagu, sr=peterv 2009-02-16 04:22:47 -08:00
Jesse Ruderman
f154077a31 Add crashtests 2009-02-13 14:54:17 -08:00
Henri Sivonen
77c2b73306 Restart HTML5 parser on meta charset; release stack and list memory in tree builder 2009-01-16 15:21:48 +02:00
Jesse Ruderman
46006e4349 Use 'skip' instead of commenting-out to disable crashtests 2009-02-11 00:17:29 -08:00
Jesse Ruderman
68344d4b52 Add a bunch of crashtests 2009-02-10 22:18:05 -08:00
Jesse Ruderman
c9eb6349ac Add some crashtests 2009-02-10 16:36:04 -08:00
Jesse Ruderman
5f1cc5c3ce Add a bunch of crashtests 2009-02-10 00:09:40 -08:00
Blake Kaplan
2b3cfc1b17 Disable this test since it's randomly crashing on tinderbox. 2009-02-04 14:35:25 -08:00
Jonas Sicking
52bfc6ae03 Bug 483818: Remove the currently-running-script counter from the parser since it's hard to keep it correct when we're creating a new parser due to document.write etc. r/sr=mrbkap 2009-04-15 15:34:50 -07:00
Nochum Sossonko
0703b6838c Test for bug 364188 - param closes open div elements. r+sr=mrbkap 2009-04-11 10:56:13 +02:00
Boris Zbarsky
35edb04b3a Bug 485012. Allow passing a charset hint (e.g. the element's 'charset' attribute for preloads) to nsICSSLoader::LoadSheet. r+sr=peterv 2009-04-10 10:29:08 -04:00
Boris Zbarsky
a8e468bd0d Backing out changeset ec2bec209571 and changeset 140f64990c51 (fix for bug 481566) due to test failures. 2009-04-04 01:55:51 -04:00