[Webkit-unassigned] [Bug 175131] New: Context menu change selection in table, which leaks to next cell

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 3 06:19:54 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=175131

            Bug ID: 175131
           Summary: Context menu change selection in table, which leaks to
                    next cell
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: m.samsel at cksource.com
                CC: wenson_hsieh at apple.com

Problem seems to be related to: #32622, behaviour is the same but not for the empty cell.

Steps to reproduce the problem:
1. Open this code snippet https://codepen.io/msamsel/pen/yoaRWP
2. Put cursor caret at the end of cell. After last letter in specific cell
3. Right click to open context menu

You can also use just regular table, with some tools which investigate current selection.

What is the expected behaviour?
Selection won't change, or selection remain inside this same cell

What went wrong?
Selection is enlarged, changed to range type and focusNode point to next cell.
We had caret type selection inside one cell and this create range type selection with 2 cells.

Does this work in other browsers? No
 Behaviour is the same in Chrome

Problem doesn't exist on Firefox.

OS Version: OS X 10.12.6
Flash Version: 

It seems that problem is related to feature which automatically highlight and select word which is right clicked. Unfortunately here selection point to next cell what seems to be not ok.
You can make this same type of selection if you put caret after last letter in cell, and then use Shift + Right Arrow to select next character. This will select 2 cells but not first character in next cell.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170803/a2fa8eca/attachment.html>


More information about the webkit-unassigned mailing list