Bug 175032

Summary: Highlight for search match in overflow node is not properly scrolled
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: FramesAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dvoytenko, malte, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: iOS 11   
Attachments:
Description Flags
testcase
none
testcase
none
Patch none

Description Frédéric Wang (:fredw) 2017-08-01 09:49:02 PDT
Created attachment 316865 [details]
testcase

Use "Find in page" in that text case to search "text" and highlight the single search match. Then scroll the overflow node: The highlighted text does not moved with the content of the overflow node.

Extracting this from bug 163911, as that seems orthogonal.
Comment 1 Frédéric Wang (:fredw) 2018-03-13 04:56:47 PDT
Created attachment 335689 [details]
testcase

This is an extended testcase, showing that dynamic scrolls of the main frame or of the subframe make the selection disappear (contrary to desktop).

So to summarize:
- User scroll of a the main frame with hightlighted text works.
- User scroll of a subframe with hightlighted text does not update the position of the highlighted text.
- Programmatic scroll of the main frame or a subframe with hightlighted text makes the selection disappear.
Comment 2 Tim Horton 2019-06-28 17:14:01 PDT
Created attachment 373166 [details]
Patch
Comment 3 WebKit Commit Bot 2019-06-28 20:48:24 PDT
Comment on attachment 373166 [details]
Patch

Clearing flags on attachment: 373166

Committed r246948: <https://trac.webkit.org/changeset/246948>
Comment 4 WebKit Commit Bot 2019-06-28 20:48:25 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2019-06-28 20:49:17 PDT
<rdar://problem/52369021>