Fix crash when PageBanner::detachFromPage() is called from WebPage::~WebPage().
authoradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 2 Jul 2013 19:51:47 +0000 (19:51 +0000)
committeradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 2 Jul 2013 19:51:47 +0000 (19:51 +0000)
commit19aa43b54d714c61a4914aa99e45b070b2e11138
tree1471ad5fc38f3a28567018ee40f19dd21d1e8e42
parent2a5d5eedd2d5c961b4926e3b974ea0e758c4cc21
Fix crash when PageBanner::detachFromPage() is called from WebPage::~WebPage().
https://bugs.webkit.org/show_bug.cgi?id=118268

Reviewed by Beth Dakin.

* WebProcess/WebPage/mac/PageBannerMac.mm:
(WebKit::PageBanner::detachFromPage): Add some null checks. m_webPage->corePage()
can be null if this method is called after the web page is closed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@152316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/mac/PageBannerMac.mm