mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 497593, assertion should be allowing null values, r+sr=smaug
This commit is contained in:
parent
f89e4a34da
commit
3df989bd5f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user