зеркало из https://github.com/mozilla/gecko-dev.git
bug 607758 - Crash [@ nsWindowWatcher::OpenWindowJSInternal] when trying to show profile manager r=jst a=blocking-fennec
This commit is contained in:
Родитель
b33f6e7f97
Коммит
91bbf7b196
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче