icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -152,7 +152,8 @@ NS_IMPL_ISUPPORTS(NavigateLoadListener, nsIWebProgressListener,
|
|||
} // anonymous namespace
|
||||
|
||||
RefPtr<ClientOpPromise> ClientNavigateOpChild::DoNavigate(
|
||||
const ClientNavigateOpConstructorArgs& aArgs) {
|
||||
const ClientNavigateOpConstructorArgs& aArgs,
|
||||
mozilla::ipc::ActorLifecycleProxy* aProxy) {
|
||||
nsCOMPtr<nsPIDOMWindowInner> window;
|
||||
|
||||
// Navigating the target client window will result in the original
|
||||
|
|
@ -278,6 +279,12 @@ RefPtr<ClientOpPromise> ClientNavigateOpChild::DoNavigate(
|
|||
return ClientOpPromise::CreateAndReject(result, __func__);
|
||||
}
|
||||
|
||||
if (!aProxy->Get() || !CanSend()) {
|
||||
CopyableErrorResult result;
|
||||
result.ThrowInvalidStateError("Unknown Client");
|
||||
return ClientOpPromise::CreateAndReject(result, __func__);
|
||||
}
|
||||
|
||||
RefPtr<ClientOpPromise::Private> promise =
|
||||
new ClientOpPromise::Private(__func__);
|
||||
|
||||
|
|
@ -305,8 +312,12 @@ void ClientNavigateOpChild::ActorDestroy(ActorDestroyReason aReason) {
|
|||
mPromiseRequestHolder.DisconnectIfExists();
|
||||
}
|
||||
|
||||
void ClientNavigateOpChild::Init(const ClientNavigateOpConstructorArgs& aArgs) {
|
||||
RefPtr<ClientOpPromise> promise = DoNavigate(aArgs);
|
||||
void ClientNavigateOpChild::Init(const ClientNavigateOpConstructorArgs& aArgs,
|
||||
mozilla::ipc::ActorLifecycleProxy* aProxy) {
|
||||
RefPtr<ClientOpPromise> promise = DoNavigate(aArgs, aProxy);
|
||||
if (!aProxy->Get() || !CanSend()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Normally we get the event target from the window in DoNavigate(). If a
|
||||
// failure occurred, though, we may need to fall back to the current thread
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue