Bug 993435 - Not return null for navigator.connection. r=bz

This commit is contained in:
John Shih 2014-04-09 10:20:31 +08:00
parent ac2c78388b
commit b8531d996b

View File

@ -1602,8 +1602,6 @@ Navigator::GetConnection(ErrorResult& aRv)
aRv.Throw(NS_ERROR_UNEXPECTED); aRv.Throw(NS_ERROR_UNEXPECTED);
return nullptr; return nullptr;
} }
NS_ENSURE_TRUE(mWindow->GetDocShell(), nullptr);
mConnection = new network::Connection(); mConnection = new network::Connection();
mConnection->Init(mWindow); mConnection->Init(mWindow);
} }