Changeset 269136 in webkit
- Timestamp:
- Oct 28, 2020, 8:53:02 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/editing/execCommand/insert-list-nested-with-orphaned-expected.txt (modified) (1 diff)
-
LayoutTests/editing/selection/delete-selection-with-disconnected-extent-expected.txt (added)
-
LayoutTests/editing/selection/delete-selection-with-disconnected-extent.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/editing/VisibleSelection.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r269135 r269136 1 2020-10-28 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION(r267329): Crash in VisibleSelection::toNormalizedRange() 4 https://bugs.webkit.org/show_bug.cgi?id=218276 5 6 Reviewed by Wenson Hsieh. 7 8 Added a regression test and rebaselined the test now that we got the pre-r267329 behavior back. 9 10 * editing/execCommand/insert-list-nested-with-orphaned-expected.txt: Reverted the rebaseline in r267329. 11 * editing/selection/delete-selection-with-disconnected-extent-expected.txt: Added. 12 * editing/selection/delete-selection-with-disconnected-extent.html: Added. 13 1 14 2020-10-28 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 15 -
trunk/LayoutTests/editing/execCommand/insert-list-nested-with-orphaned-expected.txt
r267329 r269136 18 18 | <ol> 19 19 | <li> 20 | " because of you"20 | "<#selection-caret>because of you" 21 21 | " 22 22 " -
trunk/Source/WebCore/ChangeLog
r269134 r269136 1 2020-10-28 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION(r267329): Crash in VisibleSelection::toNormalizedRange() 4 https://bugs.webkit.org/show_bug.cgi?id=218276 5 6 Reviewed by Wenson Hsieh. 7 8 The crash was a symptom of the issue that m_extent or m_base could be null but not the other 9 when canonicalizing a non-null Position with VisiblePosition will make it null. 10 11 Fixed the bug by making sure base and extent's nullness match. 12 13 Test: editing/selection/delete-selection-with-disconnected-extent.html 14 15 * editing/VisibleSelection.cpp: 16 (WebCore::VisibleSelection::setBaseAndExtentToDeepEquivalents): 17 1 18 2020-10-28 Chris Dumez <cdumez@apple.com> 2 19 -
trunk/Source/WebCore/editing/VisibleSelection.cpp
r268847 r269136 233 233 else 234 234 m_extent = VisiblePosition(m_focus, m_affinity).deepEquivalent(); 235 if (m_base.isNull() != m_extent.isNull()) { 236 if (m_base.isNull()) 237 m_base = m_extent; 238 else 239 m_extent = m_base; 240 } 235 241 } 236 242
Note:
See TracChangeset
for help on using the changeset viewer.