зеркало из https://github.com/mozilla/pjs.git
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. r=bz
This commit is contained in:
Родитель
776993d4ff
Коммит
62e69790b7
|
@ -1600,6 +1600,7 @@ NS_IMETHODIMP nsWebBrowser::ScrollByPages(PRInt32 aNumPages)
|
|||
|
||||
NS_IMETHODIMP nsWebBrowser::SetDocShell(nsIDocShell* aDocShell)
|
||||
{
|
||||
nsCOMPtr<nsIDocShell> kungFuDeathGrip(mDocShell);
|
||||
if(aDocShell)
|
||||
{
|
||||
NS_ENSURE_TRUE(!mDocShell, NS_ERROR_FAILURE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче