Changeset 153366 in webkit
- Timestamp:
- Jul 25, 2013 8:59:22 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r153362 r153366 1 2013-07-25 Ryosuke Niwa <rniwa@webkit.org> 2 3 Fix document leak when selection is created inside the document 4 https://bugs.webkit.org/show_bug.cgi?id=119122 5 6 Reviewed by Andreas Kling. 7 8 Added a regression test. 9 10 * editing/selection/leak-document-with-selection-inside-expected.txt: Added. 11 * editing/selection/leak-document-with-selection-inside.html: Added. 12 1 13 2013-07-25 Bem Jones-Bey <bjonesbe@adobe.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r153356 r153366 1 2013-07-25 Ryosuke Niwa <rniwa@webkit.org> 2 3 Fix document leak when selection is created inside the document 4 https://bugs.webkit.org/show_bug.cgi?id=119122 5 6 Reviewed by Andreas Kling. 7 8 Merge https://chromium.googlesource.com/chromium/blink/+/b908cb4c8da93316d787de31c93f2a43de332a10 9 10 The bug was caused by FrameSelection::m_previousCaretNode holding onto a Node, leaking its document. 11 Fixed the bug by explicitly clearing it in FrameSelection::prepareForDestruction. 12 13 Test: editing/selection/leak-document-with-selection-inside.html 14 15 * editing/FrameSelection.cpp: 16 (WebCore::FrameSelection::prepareForDestruction): 17 1 18 2013-07-25 Andreas Kling <akling@apple.com> 2 19 -
trunk/Source/WebCore/editing/FrameSelection.cpp
r152889 r153366 1210 1210 1211 1211 setSelection(VisibleSelection(), CloseTyping | ClearTypingStyle | DoNotUpdateAppearance); 1212 m_previousCaretNode.clear(); 1212 1213 } 1213 1214
Note: See TracChangeset
for help on using the changeset viewer.