Bug 198202

Summary: [iOS] WebPage::positionInformation() may set InteractionInformationAtPosition.isImage to true but leave image unset
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: HTML EditingAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews121 for ios-simulator-wk2
none
Patch
none
Patch none

Description Said Abou-Hallawa 2019-05-23 18:15:44 PDT
One case for this to happen is the image dimension = { 1, 1 }.
Comment 1 Said Abou-Hallawa 2019-05-23 18:18:59 PDT
Created attachment 370537 [details]
Patch
Comment 2 Said Abou-Hallawa 2019-05-23 18:20:35 PDT
<rdar://problem/50711206>
Comment 3 EWS Watchlist 2019-05-23 19:59:46 PDT
Comment on attachment 370537 [details]
Patch

Attachment 370537 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/12274410

New failing tests:
editing/selection/character-granularity-rect.html
Comment 4 EWS Watchlist 2019-05-23 19:59:47 PDT
Created attachment 370555 [details]
Archive of layout-test-results from ews121 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews121  Port: ios-simulator-wk2  Platform: Mac OS X 10.14.5
Comment 5 Tim Horton 2019-05-23 21:23:39 PDT
Comment on attachment 370537 [details]
Patch

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

> Source/WebKit/ChangeLog:18
> +        Since WebPage::positionInformation() is a little bit difficult to read

Hah! I’ve been meaning to do this for years, glad someone finally did.
Comment 6 Said Abou-Hallawa 2019-05-24 17:06:34 PDT
Created attachment 370608 [details]
Patch
Comment 7 Said Abou-Hallawa 2019-05-25 11:21:47 PDT
Created attachment 370637 [details]
Patch
Comment 8 Tim Horton 2019-05-29 13:25:49 PDT
Comment on attachment 370637 [details]
Patch

This is mostly a rubber-stamp since it's hard to read around the moved code.
Comment 9 WebKit Commit Bot 2019-05-29 15:07:40 PDT
Comment on attachment 370637 [details]
Patch

Clearing flags on attachment: 370637

Committed r245872: <https://trac.webkit.org/changeset/245872>
Comment 10 WebKit Commit Bot 2019-05-29 15:07:42 PDT
All reviewed patches have been landed.  Closing bug.