Changeset 106715 in webkit
- Timestamp:
- Feb 3, 2012, 5:22:38 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/remove-body-during-title-creation-expected.txt (added)
-
LayoutTests/fast/dom/remove-body-during-title-creation.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/ContainerNode.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106705 r106715 1 2012-02-03 Ryosuke Niwa <rniwa@webkit.org> 2 3 Crash in Node::dispatchSubtreeModifiedEvent 4 https://bugs.webkit.org/show_bug.cgi?id=77449 5 6 Reviewed by Alexey Proskuryakov. 7 8 Add a regression test for the crash. 9 10 * fast/dom/remove-body-during-title-creation-expected.txt: Added. 11 * fast/dom/remove-body-during-title-creation.html: Added. 12 1 13 2012-02-03 Joshua Bell <jsbell@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r106711 r106715 1 2012-02-03 Ryosuke Niwa <rniwa@webkit.org> 2 3 Crash in Node::dispatchSubtreeModifiedEvent 4 https://bugs.webkit.org/show_bug.cgi?id=77449 5 6 Reviewed by Alexey Proskuryakov. 7 8 The bug was caused by appendChild not retaining this pointer. 9 This is normally okay because there's another owner within JSC/V8 binding code that 10 holds onto the node but this isn't the case when nodes are created as a part 11 of setting document.title. Fixed the crash by retaining the pointer as needed. 12 13 Test: fast/dom/remove-body-during-title-creation.html 14 15 * dom/ContainerNode.cpp: 16 (WebCore::ContainerNode::appendChild): 17 1 18 2012-02-03 Anders Carlsson <andersca@apple.com> 2 19 -
trunk/Source/WebCore/dom/ContainerNode.cpp
r106418 r106715 605 605 bool ContainerNode::appendChild(PassRefPtr<Node> newChild, ExceptionCode& ec, bool shouldLazyAttach) 606 606 { 607 RefPtr<ContainerNode> protector(this); 608 607 609 // Check that this node is not "floating". 608 610 // If it is, it can be deleted as a side effect of sending mutation events.
Note:
See TracChangeset
for help on using the changeset viewer.