Changeset 89522 in webkit
- Timestamp:
- Jun 22, 2011, 7:31:11 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 deleted
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/parser/block-nesting-cap-expected.txt (modified) (1 diff)
-
LayoutTests/fast/parser/block-nesting-cap-table-expected.txt (deleted)
-
LayoutTests/fast/parser/block-nesting-cap-table.html (deleted)
-
LayoutTests/fast/parser/element-nesting-cap-expected.txt (deleted)
-
LayoutTests/fast/parser/element-nesting-cap.html (deleted)
-
LayoutTests/fast/parser/script-tests/block-nesting-cap-table.js (deleted)
-
LayoutTests/fast/parser/script-tests/block-nesting-cap.js (modified) (2 diffs)
-
LayoutTests/fast/parser/script-tests/element-nesting-cap.js (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/Settings.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r89519 r89522 1 2011-06-22 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 Lower HTML parser DOM depth limit to 2048 6 https://bugs.webkit.org/show_bug.cgi?id=63219 7 8 Update nest test to reflect new limit and remove tests that were 9 testing specific behaviors of the old parser. 10 11 * fast/parser/block-nesting-cap-expected.txt: 12 * fast/parser/block-nesting-cap-table-expected.txt: Removed. 13 * fast/parser/block-nesting-cap-table.html: Removed. 14 * fast/parser/element-nesting-cap-expected.txt: Removed. 15 * fast/parser/element-nesting-cap.html: Removed. 16 * fast/parser/script-tests/block-nesting-cap-table.js: Removed. 17 * fast/parser/script-tests/block-nesting-cap.js: 18 * fast/parser/script-tests/element-nesting-cap.js: Removed. 19 1 20 2011-06-22 Kent Tamura <tkent@chromium.org> 2 21 -
trunk/LayoutTests/fast/parser/block-nesting-cap-expected.txt
r89453 r89522 1 Test that the HTML parser does not allow the nesting depth of "block-level" elements to exceed 4096.1 Test that the HTML parser does not allow the nesting depth of "block-level" elements to exceed 2048. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 PASS d 4096.parentNode === d4094is true7 PASS d 4095.parentNode === d4094is true8 PASS d 4096.previousSibling === d4095is true6 PASS d2048.parentNode === d2046 is true 7 PASS d2047.parentNode === d2046 is true 8 PASS d2048.previousSibling === d2047 is true 9 9 PASS successfullyParsed is true 10 10 -
trunk/LayoutTests/fast/parser/script-tests/block-nesting-cap.js
r48552 r89522 1 description('Test that the HTML parser does not allow the nesting depth of "block-level" elements to exceed 4096.');1 description('Test that the HTML parser does not allow the nesting depth of "block-level" elements to exceed 2048.'); 2 2 3 var depth = 4100;3 var depth = 2100; 4 4 var markup = ""; 5 5 var i; … … 9 9 doc.body.innerHTML = markup; 10 10 11 var d 4094 = doc.getElementById("d4094");12 var d 4095 = doc.getElementById("d4095");13 var d 4096 = doc.getElementById("d4096");11 var d2046 = doc.getElementById("d2046"); 12 var d2047 = doc.getElementById("d2047"); 13 var d2048 = doc.getElementById("d2048"); 14 14 15 shouldBe("d 4096.parentNode === d4094", "true");16 shouldBe("d 4095.parentNode === d4094", "true");17 shouldBe("d 4096.previousSibling === d4095", "true");15 shouldBe("d2048.parentNode === d2046", "true"); 16 shouldBe("d2047.parentNode === d2046", "true"); 17 shouldBe("d2048.previousSibling === d2047", "true"); 18 18 19 19 var successfullyParsed = true; -
trunk/Source/WebCore/ChangeLog
r89521 r89522 1 2011-06-22 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 Lower HTML parser DOM depth limit to 2048 6 https://bugs.webkit.org/show_bug.cgi?id=63219 7 8 Lower the default depth limit from 4096 to 2048. There isn't a good 9 reason to have such pathologically nested content, and by-and-large, 10 the rendering code is not setup to support it that well. Adding this 11 aggressive limit now will allow us to see if anything breaks in the 12 nightlies. 13 14 * page/Settings.h: 15 1 16 2011-06-22 Julien Chaffraix <jchaffraix@webkit.org> 2 17 -
trunk/Source/WebCore/page/Settings.h
r89453 r89522 389 389 bool usePreHTML5ParserQuirks() const { return m_usePreHTML5ParserQuirks; } 390 390 391 static const unsigned defaultMaximumHTMLParserDOMTreeDepth = 4096;391 static const unsigned defaultMaximumHTMLParserDOMTreeDepth = 2048; 392 392 void setMaximumHTMLParserDOMTreeDepth(unsigned maximumHTMLParserDOMTreeDepth) { m_maximumHTMLParserDOMTreeDepth = maximumHTMLParserDOMTreeDepth; } 393 393 unsigned maximumHTMLParserDOMTreeDepth() const { return m_maximumHTMLParserDOMTreeDepth; }
Note:
See TracChangeset
for help on using the changeset viewer.