[Webkit-unassigned] [Bug 227364] New: iOS WKWebView findString not selecting and scrolling
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 24 11:05:08 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=227364
Bug ID: 227364
Summary: iOS WKWebView findString not selecting and scrolling
Product: WebKit
Version: Other
Hardware: iPhone / iPad
OS: iOS 14
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zero.griffin at gmail.com
CC: kkinnunen at apple.com
Since iOS 14 WebKit supports findString, but there is no documentation whatsoever yet.
However on the WWDC Sessions Discover WKWebView enhancements they mention that is a basic functionality for "Find on Page", where you can find a string and the WebView will select it and scroll to center it.
It seems very easy to use and to be finding the string as I get a result of matchFound true, but there is no selection and there is no scrolling. Maybe I'm missing something?
This is the code I have tried:
let webView = WKWebView()
// ...
// after loading a website with the desired string on it.
// ...
webView.find("hello world") { result in
print(result.matchFound) // true
}
--
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/20210624/c6252521/attachment.htm>
More information about the webkit-unassigned
mailing list