зеркало из https://github.com/mozilla/pjs.git
Bug 594699 - Null check this to return to pre-bug 532730 behavior in pathological cases. r=jst a=blocking-betaN
This commit is contained in:
Родитель
cfe7ad33cc
Коммит
442cce526b
|
@ -520,7 +520,7 @@ nsWindowWatcher::OpenWindowJSInternal(nsIDOMWindow *aParent,
|
|||
|
||||
nsCOMPtr<nsIContentUtils> utils =
|
||||
do_GetService("@mozilla.org/content/contentutils;1");
|
||||
if (!utils->IsSafeToRunScript()) {
|
||||
if (utils && !utils->IsSafeToRunScript()) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче