DescriptionEditing: Pass failure information of CompositeEditCommand::deleteSelection() to TypingCommand::doApply().
Passing EditingState through the following path in order to abort the command
gracefully:
- CompositeEditCommand::deleteSelection()
- TypingCommand::deleteKeyPressed()
- TypingCommand::doApply()
This is necessary in the following case. It removes <body> from the document
during Delete command.
<iframe id=tCF5 src="javascript:onunload = function() {
if (!top.container) {
top.container = document.createElement('div');
top.container.appendChild(frameElement.parentNode);
}
}">M!?+Bvi9SO[
</iframe><script>
document.designMode = 'on';
rr746 = document.createRange();
rr746.selectNodeContents(tCF5)
window.getSelection().addRange(rr746);
document.execCommand("Delete")
</script>
BUG=570869
Committed: https://crrev.com/ac72a2a815cfd6f42518224671bddf7b5ac6e3f4
Cr-Commit-Position: refs/heads/master@{#374634}
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|