Changeset 285813 in webkit
- Timestamp:
- Nov 15, 2021, 10:56:59 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/editing/editing-position-crash-expected.txt (added)
-
LayoutTests/fast/editing/editing-position-crash.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/editing/CreateLinkCommand.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r285805 r285813 1 2021-11-15 Gabriel Nava Marino <gnavamarino@apple.com> 2 3 nullptr deref in CompositeEditCommand::insertNodeAt 4 https://bugs.webkit.org/show_bug.cgi?id=232837 5 6 Reviewed by Wenson Hsieh and Darin Adler. 7 8 * fast/editing/editing-position-crash-expected.txt: Added. 9 * fast/editing/editing-position-crash.html: Added. 10 1 11 2021-11-15 Tyler Wilcock <tyler_w@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r285810 r285813 1 2021-11-15 Gabriel Nava Marino <gnavamarino@apple.com> 2 3 nullptr deref in CompositeEditCommand::insertNodeAt 4 https://bugs.webkit.org/show_bug.cgi?id=232837 5 6 Reviewed by Wenson Hsieh and Darin Adler. 7 8 Check endingSelection is not orphan before inserting nodes at 9 the start position. 10 11 Test: fast/editing/editing-position-crash.html 12 13 * editing/CreateLinkCommand.cpp: 14 (WebCore::CreateLinkCommand::doApply): 15 1 16 2021-11-15 Andreu Botella <andreu@andreubotella.com> 2 17 -
trunk/Source/WebCore/editing/CreateLinkCommand.cpp
r266557 r285813 41 41 void CreateLinkCommand::doApply() 42 42 { 43 if (endingSelection().isNone ())43 if (endingSelection().isNoneOrOrphaned()) 44 44 return; 45 45 46 46 auto anchorElement = HTMLAnchorElement::create(document()); 47 47 anchorElement->setHref(m_url);
Note:
See TracChangeset
for help on using the changeset viewer.