mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 993435 - Not return null for navigator.connection. r=bz
This commit is contained in:
parent
ac2c78388b
commit
b8531d996b
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user