Make FrameSelection::Selected{Text,HTML}ForClipboard() not to use VisibleSelection
This patch changes |FrameSelection::Selected{Text,HTML}ForClipboard()| not to
use |VisibleSelection| to avoid editing boundary adjustment. Because of
selection editing boundary adjustment should be applied for selection set by
scripts.
This patch is a follow-up of CL[1] which does editing boundary adjustment
correctly.
Note: This patch changes |selection_test()| to access test window to use
selection in test window in <iframe>.
[1] http://crrev.com/c/1102157 Avoid crossing editing boundaries selection.
Bug: 928726
Change-Id: I7b9716679764f2b8821289c202e8c2c56d94ce06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1647651
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Auto-Submit: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by:
Yoichi Osato <yoichio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669171}
Showing
Please register or sign in to comment