Changeset 105050 in webkit
- Timestamp:
- Jan 16, 2012 3:31:38 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r105019 r105050 1 2012-01-16 Shinya Kawanaka <shinyak@google.com> 2 3 [crash] Renderer crashes when spell checking a disabled input field. 4 https://bugs.webkit.org/show_bug.cgi?id=75941 5 6 Reviewed by Hajime Morita. 7 8 * ManualTests/editing-disabled-node-replace-crash.html: Added. 9 1 10 2012-01-13 Simon Fraser <simon.fraser@apple.com> 2 11 -
trunk/Source/WebCore/ChangeLog
r105049 r105050 1 2012-01-16 Shinya Kawanaka <shinyak@google.com> 2 3 [crash] Renderer crashes when spell checking a disabled input field. 4 https://bugs.webkit.org/show_bug.cgi?id=75941 5 6 Reviewed by Hajime Morita. 7 8 We confirm the selection is editable before replacing text. 9 10 Tests: ManualTests/editing-disabled-node-replace-crash.html 11 12 * editing/Editor.cpp: 13 (WebCore::Editor::replaceSelectionWithFragment): 14 * editing/ReplaceSelectionCommand.cpp: 15 (WebCore::ReplaceSelectionCommand::doApply): 16 1 17 2012-01-16 Pablo Flouret <pablof@motorola.com> 2 18 -
trunk/Source/WebCore/editing/Editor.cpp
r103119 r105050 401 401 void Editor::replaceSelectionWithFragment(PassRefPtr<DocumentFragment> fragment, bool selectReplacement, bool smartReplace, bool matchStyle) 402 402 { 403 if (m_frame->selection()->isNone() || ! fragment)403 if (m_frame->selection()->isNone() || !m_frame->selection()->isContentEditable() || !fragment) 404 404 return; 405 405 -
trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp
r102864 r105050 818 818 return; 819 819 820 if (!selection.rootEditableElement()) 821 return; 822 820 823 ReplacementFragment fragment(document(), m_documentFragment.get(), m_matchStyle, selection); 821 824 if (performTrivialReplace(fragment))
Note: See TracChangeset
for help on using the changeset viewer.