Bug 541743 - Closing two tabs from yelp.com in rapid succession crashes Camino [@ nsCOMPtr_base::assign_from_qi(nsQueryInterface, nsID const&) | nsDocShell::FirePageHideNotification(int) ] [@ nsDocShell::FirePageHideNotification(int) ], so hold a strong ref to the docshell. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=bz, a1.9.0.19=beltzner
git-svn-id: svn://10.0.0.236/trunk@259822 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9ac9e59801
commit
e6e07a0078
@ -1586,6 +1586,7 @@ NS_IMETHODIMP nsWebBrowser::ScrollByPages(PRInt32 aNumPages)
|
|||||||
|
|
||||||
NS_IMETHODIMP nsWebBrowser::SetDocShell(nsIDocShell* aDocShell)
|
NS_IMETHODIMP nsWebBrowser::SetDocShell(nsIDocShell* aDocShell)
|
||||||
{
|
{
|
||||||
|
nsCOMPtr<nsIDocShell> kungFuDeathGrip(mDocShell);
|
||||||
if(aDocShell)
|
if(aDocShell)
|
||||||
{
|
{
|
||||||
NS_ENSURE_TRUE(!mDocShell, NS_ERROR_FAILURE);
|
NS_ENSURE_TRUE(!mDocShell, NS_ERROR_FAILURE);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user