[Webkit-unassigned] [Bug 180054] New: Dangerous downcast via static_cast for find delegate.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 27 13:54:18 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=180054
Bug ID: 180054
Summary: Dangerous downcast via static_cast for find delegate.
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jeremyj-wk at apple.com
WKWebView:
- (void)_setFindDelegate:(id<_WKFindDelegate>)findDelegate
{
static_cast<WebKit::FindClient&>(_page->findClient()).setDelegate(findDelegate);
}
void WebPageProxy::close()
...
m_findClient = std::make_unique<API::FindClient>();
Calling _setFindDelegate: after the PageProxy has been closed is unsafe.
--
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/20171127/baf90483/attachment.html>
More information about the webkit-unassigned
mailing list