bug 607758 - Crash [@ nsWindowWatcher::OpenWindowJSInternal] when trying to show profile manager r=jst a=blocking-fennec

This commit is contained in:
Brad Lassey 2010-11-05 13:43:13 -04:00
Родитель b33f6e7f97
Коммит 91bbf7b196
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -582,6 +582,8 @@ nsWindowWatcher::OpenWindowJSInternal(nsIDOMWindow *aParent,
nsCOMPtr<nsIScriptSecurityManager>
sm(do_GetService(NS_SCRIPTSECURITYMANAGER_CONTRACTID));
NS_ENSURE_TRUE(sm, NS_ERROR_FAILURE);
// Remember who's calling us. This code used to assume a null
// subject principal if it failed to get the principal, but that's
// just not safe, so bail on errors here.