diff options
author | tkent <tkent@chromium.org> | 2016-02-09 23:51:32 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-10 07:52:19 +0000 |
commit | 2185123a479eddd9e20a97b89b23619e79a7af09 (patch) | |
tree | 648cf31d6a7edbe86094fbdec599147ca69ceda5 /tools | |
parent | 53413eca47e43fe3420d2d1a8bf6507810584d23 (diff) | |
download | chromium_src-2185123a479eddd9e20a97b89b23619e79a7af09.zip chromium_src-2185123a479eddd9e20a97b89b23619e79a7af09.tar.gz chromium_src-2185123a479eddd9e20a97b89b23619e79a7af09.tar.bz2 |
Editing: 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
Review URL: https://codereview.chromium.org/1690513002
Cr-Commit-Position: refs/heads/master@{#374622}
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions