DescriptionEditing: Pass failure information of RemoveNodeCommand to ReplaceSelectionCommand.
Passing EditingState through the following path in order to abort the command
gracefully:
- RemoveNodeCommand::doApply()
- CompositeEditCommand::applyCommandToComposite()
- CompositeEditCommand::removeNode()
- DeleteSelectionCommand::removeNode()
- DeleteSelectionCommand::handleGeneralDelete()
- DeleteSelectionCommand::doApply()
- CompositeEditCommand::applyCommandToComposite()
- CompositeEditCommand::deleteSelection()
- ReplaceSelectionCommand::doApply()
This is necessary in the following case. It removes <body> from the document
during InsertHTML command.
<iframe src="javascript:onunload = function() {
if (!top.container) {
top.container = document.createElement('div');
top.container.appendChild(frameElement.parentNode);
}
}">
</iframe>
<iframe onload="
document.counter = 1;
if (document.counter <= 16) {
document.designMode = 'on';
document.execCommand('selectall');
document.execCommand('inserthtml', false);
}">
BUG=541002, 529929
Committed: https://crrev.com/2185123a479eddd9e20a97b89b23619e79a7af09
Cr-Commit-Position: refs/heads/master@{#374622}
Patch Set 1 #
Total comments: 5
Patch Set 2 : add a comment #Messages
Total messages: 16 (8 generated)
|