⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 98796 in webkit


Ignore:
Timestamp:
Oct 28, 2011, 11:31:16 PM (15 years ago)
Author:
rniwa@webkit.org
Message:

Potential crash in ReplaceNodeWithSpanCommand
https://bugs.webkit.org/show_bug.cgi?id=71145

Reviewed by Ojan Vafai.

Fix a potential crash without tests because we don't have a reduction.

  • editing/ReplaceNodeWithSpanCommand.cpp:

(WebCore::swapInNodePreservingAttributesAndChildren):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r98795 r98796  
     12011-10-28  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Potential crash in ReplaceNodeWithSpanCommand
     4        https://bugs.webkit.org/show_bug.cgi?id=71145
     5
     6        Reviewed by Ojan Vafai.
     7
     8        Fix a potential crash without tests because we don't have a reduction.
     9
     10        * editing/ReplaceNodeWithSpanCommand.cpp:
     11        (WebCore::swapInNodePreservingAttributesAndChildren):
     12
    1132011-10-28  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp

    r95901 r98796  
    5353    ASSERT(nodeToReplace->inDocument());
    5454    ExceptionCode ec = 0;
    55     ContainerNode* parentNode = nodeToReplace->parentNode();
     55    RefPtr<ContainerNode> parentNode = nodeToReplace->parentNode();
    5656    parentNode->insertBefore(newNode, nodeToReplace, ec);
    5757    ASSERT(!ec);
Note: See TracChangeset for help on using the changeset viewer.