https://bugs.webkit.org/show_bug.cgi?id=115574
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 May 2013 18:46:20 +0000 (18:46 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 May 2013 18:46:20 +0000 (18:46 +0000)
commit31bd6824979927ec7b55eefdf84c0d54011f6198
tree70462386b6afbe3adf4ab959aac7d95b17573ee6
parent6472eb027dcdf4c649411d51e59c6a0261d339b2
https://bugs.webkit.org/show_bug.cgi?id=115574
Crash using new WKBundlePageSetHeaderBanner() API to set a banner to null

Reviewed by Darin Adler.

Don't call addToPage() on a null banner.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::setHeaderPageBanner):
(WebKit::WebPage::setFooterPageBanner):

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