Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r163579 - Make adoption agency use the task queue
https://bugs.webkit.org/show_bug.cgi?id=109445 Reviewed by Ryosuke Niwa. Source/WebCore: Tests: fast/parser/adoption-agency-crash-01.html fast/parser/adoption-agency-crash-02.html fast/parser/adoption-agency-crash-03.html * html/parser/HTMLConstructionSite.cpp: (WebCore::insert): (WebCore::executeInsertTask): (WebCore::executeReparentTask): (WebCore::executeInsertAlreadyParsedChildTask): (WebCore::executeTakeAllChildrenTask): (WebCore::executeTask): (WebCore::HTMLConstructionSite::attachLater): (WebCore::HTMLConstructionSite::executeQueuedTasks): (WebCore::HTMLConstructionSite::insertTextNode): (WebCore::HTMLConstructionSite::reparent): (WebCore::HTMLConstructionSite::insertAlreadyParsedChild): (WebCore::HTMLConstructionSite::takeAllChildren): (WebCore::HTMLConstructionSite::fosterParent): * html/parser/HTMLConstructionSite.h: (WebCore::HTMLConstructionSiteTask::HTMLConstructionSiteTask): (WebCore::HTMLConstructionSiteTask::oldParent): * html/parser/HTMLTreeBuilder.cpp: (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): LayoutTests: * TestExpectations: * fast/parser/adoption-agency-crash-01-expected.txt: Added. * fast/parser/adoption-agency-crash-01.html: Added. * fast/parser/adoption-agency-crash-02-expected.txt: Added. * fast/parser/adoption-agency-crash-02.html: Added. * fast/parser/adoption-agency-crash-03-expected.txt: Added. * fast/parser/adoption-agency-crash-03.html: Added.
- Loading branch information
1 parent
7fd44b9
commit a6079ab
Showing
12 changed files
with
206 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
LayoutTests/fast/parser/adoption-agency-crash-01-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PASS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
|
||
document.write('<a><p><iframe onload="document.write(\'<script>void(0)<\/script></a>\');"></iframe><script>document.body.innerHTML = \'PASS\';<\/script>'); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PASS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
|
||
document.write('<a><p><iframe onload="document.write(\'<script>document.body.innerHTML = "PASS";<\/script></a>\');"></iframe>'); | ||
</script> |
2 changes: 2 additions & 0 deletions
2
LayoutTests/fast/parser/adoption-agency-crash-03-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PASS 1 of 2 | ||
PASS 2 of 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
</script> | ||
<iframe onload="document.write('<a><blockquote>PASS 2 of 2<iframe onload="document.write(\'<a>\')"></iframe><script>document.body.innerHTML = \'PASS 1 of 2\';</script>');"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters