Add editability check in indent command.
When selection positions span across contexts with different editability regions, the block formatting command tries to split the nodes and perform indenting by copying over content to start position from where the end position is. This leads to a crash while verifying node split output in |RangeForParagraphSplittingTextNodesIfNeeded|. Fix is to check whether the start and end positions are inside the same editable region or not and if they don't share the same editable context, then just bail out. Bug: 996134 Change-Id: I298ae6c8b0c631620266e3f201c0f3c8849d3300 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2582866 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#835519}
Showing
Please register or sign in to comment