Bug 141410

Summary: Hit testing is misplaced when selecting on wikipedia page
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: WebKit2Assignee: Enrica Casucci <enrica>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: iOS 8.0   
Attachments:
Description Flags
Patch
simon.fraser: review-
Patch2 simon.fraser: review+

Description Enrica Casucci 2015-02-09 15:42:34 PST
Repro steps:
1. Navigate to wikipedia.org
2. Type a search term in the search field
3. Press enter
4. After the page loads try to select something using long press.

Results:
The selection is either not visible at all or in the incorrect place.

rdar://problem/19768211
Comment 1 Enrica Casucci 2015-02-09 15:48:34 PST
Created attachment 246301 [details]
Patch
Comment 2 Simon Fraser (smfr) 2015-02-09 15:51:17 PST
Comment on attachment 246301 [details]
Patch

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

> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:4553
> +    m_assistedNode = 0;

nullptr.

Higher up is a
if (!frame->isMainFrame())
 return;

check so what if the assisted node is in a subframe?

I still think we should do this on teardown/caching of the previous document, not the loading of the new one.
Comment 3 Enrica Casucci 2015-02-10 14:56:39 PST
Created attachment 246343 [details]
Patch2
Comment 4 Enrica Casucci 2015-02-10 15:02:55 PST
https://trac.webkit.org/r179885