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:
Blake Kaplan 2010-12-22 19:40:36 -05:00
Родитель cfe7ad33cc
Коммит 442cce526b
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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;
}