forked from adobe/webkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regression(r129406): Fix the scope of the WidgetHierarchyUpdateSuspen…
…sionScope in Element::Attach(). https://bugs.webkit.org/show_bug.cgi?id=100803 Reviewed by Abhishek Arya. Source/WebCore: Ensures that the suspension scope has gone out of scope before calling into resumePostAttachCallbacks(). Test: fast/dom/adopt-node-crash-2.html * dom/Element.cpp: (WebCore::Element::attach): LayoutTests: * fast/dom/adopt-node-crash-2-expected.txt: Added. * fast/dom/adopt-node-crash-2.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
6ce3b60
commit 8a16132
Showing
5 changed files
with
78 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
2012-11-27 Tom Sepez <[email protected]> | ||
|
||
Regression(r129406): Fix the scope of the WidgetHierarchyUpdateSuspensionScope in Element::Attach(). | ||
https://bugs.webkit.org/show_bug.cgi?id=100803 | ||
|
||
Reviewed by Abhishek Arya. | ||
|
||
* fast/dom/adopt-node-crash-2-expected.txt: Added. | ||
* fast/dom/adopt-node-crash-2.html: Added. | ||
|
||
2012-11-27 Tony Chang <[email protected]> | ||
|
||
Remove hidden limiter div in the input slider shadow DOM | ||
|
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 @@ | ||
Tests for a crash due to adopting a DOM node during DOMFocusOut event. Test passes if it doesn't crash. | ||
|
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,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<div>Tests for a crash due to adopting a DOM node during DOMFocusOut event. Test passes if it doesn't crash.</div> | ||
<script> | ||
if (window.testRunner) { | ||
testRunner.dumpAsText(); | ||
testRunner.waitUntilDone(); | ||
} | ||
</script> | ||
<div id="div1"></div> | ||
<div id="div2"> | ||
<applet> | ||
<iframe srcdoc="<iframe srcdoc=''>"> | ||
</iframe> | ||
</applet> | ||
<header id="header1"> | ||
<keygen autofocus> | ||
</header> | ||
</div> | ||
<script> | ||
function doit() | ||
{ | ||
div2.addEventListener("DOMFocusOut", function () { document.implementation.createDocument("", "", null).adoptNode(div2); }, false); | ||
div1.outerHTML = header1.outerHTML; | ||
if (window.testRunner) | ||
testRunner.notifyDone(); | ||
} | ||
document.addEventListener("DOMContentLoaded", setTimeout("doit()", 1), false); | ||
</script> | ||
</html> |
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 |
---|---|---|
@@ -1,3 +1,18 @@ | ||
2012-11-27 Tom Sepez <[email protected]> | ||
|
||
Regression(r129406): Fix the scope of the WidgetHierarchyUpdateSuspensionScope in Element::Attach(). | ||
https://bugs.webkit.org/show_bug.cgi?id=100803 | ||
|
||
Reviewed by Abhishek Arya. | ||
|
||
Ensures that the suspension scope has gone out of scope before calling into | ||
resumePostAttachCallbacks(). | ||
|
||
Test: fast/dom/adopt-node-crash-2.html | ||
|
||
* dom/Element.cpp: | ||
(WebCore::Element::attach): | ||
|
||
2012-11-27 Tony Chang <[email protected]> | ||
|
||
Remove hidden limiter div in the input slider shadow DOM | ||
|
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