Fix for clusterfuzz crash while insertText is executed
While executing insertTextCommand with text having paragraph seperator, on a unusual selection content which has a nested anchor element within same block, this crash happens. While insertion of the paragraph seperator, the |PositionAvoidingSpecialElementBoundary| algorithm inserts new A element which was making the already calculated start block parent 'null' making content to crash. The crash is avoided by doing safety checks. Bug: 792548 Change-Id: Ica9e38857edac95a7151fda993ae5ef6e7b17ca3 Reviewed-on: https://chromium-review.googlesource.com/822550Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Tanvir Rizvi <tanvir.rizvi@samsung.com> Cr-Commit-Position: refs/heads/master@{#524656}
Showing
Please register or sign in to comment