Bug 497593, assertion should be allowing null values, r+sr=smaug

This commit is contained in:
Neil Deakin 2009-06-15 11:05:47 -04:00
parent f89e4a34da
commit 3df989bd5f

View File

@ -313,7 +313,7 @@ nsFocusManager::SetActiveWindow(nsIDOMWindow* aWindow)
{
// only top-level windows can be made active
nsCOMPtr<nsPIDOMWindow> piWindow = do_QueryInterface(aWindow);
NS_ASSERTION(piWindow && piWindow->IsOuterWindow(), "outer window expected");
NS_ASSERTION(!piWindow || piWindow->IsOuterWindow(), "outer window expected");
NS_ENSURE_TRUE(piWindow && (piWindow == piWindow->GetPrivateRoot()),
NS_ERROR_INVALID_ARG);