[Webkit-unassigned] [Bug 196127] New: Reproducible case of backwards nextParagraph returning a position ahead of the input position

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 21 19:07:48 PDT 2019


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

            Bug ID: 196127
           Summary: Reproducible case of backwards nextParagraph returning
                    a position ahead of the input position
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: thorton at apple.com

Don't know how to write a standalone test for this yet, but:

<style>body { margin: 0; } iframe { border: none; }</style><meta name='viewport' content='initial-scale=1'><span id='the'>The</span> quick brown fox <span id='jumps'>jumps</span> over the lazy <span id='dog'>dog.</span>

And then select jumps:

getSelection().setBaseAndExtent(jumps, 0, jumps, 1)

If you take the selection start and then call positionOfNextBoundaryOfGranularity() with granularity=paragraph and direction=backwards, *twice*, you end up at the *end* of the document.

-- 
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/20190322/9b433505/attachment.html>


More information about the webkit-unassigned mailing list