icecat: add release icecat-140.10.1-1gnu1 for ecne

This commit is contained in:
Ark74 2026-05-04 16:58:41 -06:00
parent a5f93cb214
commit ff85d7c623
1256 changed files with 63469 additions and 24141 deletions

View file

@ -18,9 +18,6 @@
#include "mozilla/net/WebSocketChannelParent.h"
#include "mozilla/net/WebSocketEventListenerParent.h"
#include "mozilla/net/DataChannelParent.h"
#ifdef MOZ_WIDGET_GTK
# include "mozilla/net/GIOChannelParent.h"
#endif
#include "mozilla/net/DocumentChannelParent.h"
#include "mozilla/net/SimpleChannelParent.h"
#include "mozilla/net/AltDataOutputStreamParent.h"
@ -330,51 +327,6 @@ mozilla::ipc::IPCResult NeckoParent::RecvPDataChannelConstructor(
return IPC_OK();
}
#ifdef MOZ_WIDGET_GTK
static already_AddRefed<nsIPrincipal> GetRequestingPrincipal(
const GIOChannelCreationArgs& aArgs) {
if (aArgs.type() != GIOChannelCreationArgs::TGIOChannelOpenArgs) {
return nullptr;
}
const GIOChannelOpenArgs& args = aArgs.get_GIOChannelOpenArgs();
return GetRequestingPrincipal(args.loadInfo());
}
PGIOChannelParent* NeckoParent::AllocPGIOChannelParent(
PBrowserParent* aBrowser, const SerializedLoadContext& aSerialized,
const GIOChannelCreationArgs& aOpenArgs) {
nsCOMPtr<nsIPrincipal> requestingPrincipal =
GetRequestingPrincipal(aOpenArgs);
nsCOMPtr<nsILoadContext> loadContext;
CreateChannelLoadContext(aBrowser, Manager(), aSerialized,
requestingPrincipal, loadContext);
PBOverrideStatus overrideStatus =
PBOverrideStatusFromLoadContext(aSerialized);
GIOChannelParent* p = new GIOChannelParent(BrowserParent::GetFrom(aBrowser),
loadContext, overrideStatus);
p->AddRef();
return p;
}
bool NeckoParent::DeallocPGIOChannelParent(PGIOChannelParent* channel) {
GIOChannelParent* p = static_cast<GIOChannelParent*>(channel);
p->Release();
return true;
}
mozilla::ipc::IPCResult NeckoParent::RecvPGIOChannelConstructor(
PGIOChannelParent* actor, PBrowserParent* aBrowser,
const SerializedLoadContext& aSerialized,
const GIOChannelCreationArgs& aOpenArgs) {
GIOChannelParent* p = static_cast<GIOChannelParent*>(actor);
DebugOnly<bool> rv = p->Init(aOpenArgs);
MOZ_ASSERT(rv);
return IPC_OK();
}
#endif
PSimpleChannelParent* NeckoParent::AllocPSimpleChannelParent(
const uint32_t& channelId) {
RefPtr<SimpleChannelParent> p = new SimpleChannelParent();
@ -432,6 +384,9 @@ PTCPServerSocketParent* NeckoParent::AllocPTCPServerSocketParent(
mozilla::ipc::IPCResult NeckoParent::RecvPTCPServerSocketConstructor(
PTCPServerSocketParent* aActor, const uint16_t& aLocalPort,
const uint16_t& aBacklog, const bool& aUseArrayBuffers) {
if (!StaticPrefs::dom_tcpsocket_in_child_enabled()) {
return IPC_FAIL(this, "tcp socket not enabled");
}
static_cast<TCPServerSocketParent*>(aActor)->Init();
return IPC_OK();
}
@ -452,6 +407,9 @@ PUDPSocketParent* NeckoParent::AllocPUDPSocketParent(
mozilla::ipc::IPCResult NeckoParent::RecvPUDPSocketConstructor(
PUDPSocketParent* aActor, nsIPrincipal* aPrincipal,
const nsACString& aFilter) {
if (!StaticPrefs::dom_udpsocket_enabled() && aFilter.IsEmpty()) {
return IPC_FAIL(this, "udp socket not enabled");
}
if (!static_cast<UDPSocketParent*>(aActor)->Init(aPrincipal, aFilter)) {
return IPC_FAIL_NO_REASON(this);
}