Fix race in FindController code
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jan 2015 18:29:56 +0000 (18:29 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jan 2015 18:29:56 +0000 (18:29 +0000)
commit0e331890240f69a61d7668446280fb0423a0aaa9
tree0486323f74e997f969530641e72fc66dd835d0a3
parent85cab2fe19e2e3994120ba2523aa584ffeb4b33a
Fix race in FindController code
https://bugs.webkit.org/show_bug.cgi?id=140114

Reviewed by Anders Carlsson.

No idea how to reproduce this. Just ran into the crash in my local testing.

* WebProcess/WebPage/FindController.cpp:
(WebKit::FindController::findString): Use a RefPtr to guarantee the FindController is
not deleted while a this pointer is stored in a function.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/FindController.cpp