Bug 215319

Summary: REGRESSION (r265176): Cannot make or extend selections in iOS WebKitLegacy
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, darin, hi, megan_gardner, sam, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Tim Horton 2020-08-10 00:36:32 PDT
REGRESSION (r265176): Cannot make or extend selections in iOS WebKitLegacy
Comment 1 Tim Horton 2020-08-10 00:37:01 PDT
Created attachment 406286 [details]
Patch
Comment 2 Tim Horton 2020-08-10 00:37:04 PDT
<rdar://problem/66688560>
Comment 3 Devin Rousso 2020-08-10 00:38:37 PDT
Comment on attachment 406286 [details]
Patch

r=mews
Comment 4 EWS 2020-08-10 01:18:07 PDT
Committed r265424: <https://trac.webkit.org/changeset/265424>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 406286 [details].
Comment 5 Darin Adler 2020-08-10 10:59:38 PDT
Comment on attachment 406286 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=406286&action=review

> Source/WebKitLegacy/ios/ChangeLog:12
> +        * WebCoreSupport/WebVisiblePosition.mm:
> +        (+[DOMRange rangeForFirstPosition:second:]):
> +        We want to ensure that firstPosition is *before* secondPosition, so
> +        the change in r265176 got the condition backwards. Swap it.

So sorry! I should make a regression test.