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

@ -47,6 +47,7 @@
#include "mozilla/dom/XMLHttpRequestEventTarget.h"
#include "mozilla/dom/XMLHttpRequestString.h"
#include "mozilla/Encoding.h"
#include "mozilla/WeakPtr.h"
#ifdef Status
/* Xlib headers insist on this for some reason... Nuke it because
@ -183,6 +184,7 @@ class XMLHttpRequestDoneNotifier;
// Make sure that any non-DOM interfaces added here are also added to
// nsXMLHttpRequestXPCOMifier.
class XMLHttpRequestMainThread final : public XMLHttpRequest,
public SupportsWeakPtr,
public nsIStreamListener,
public nsIChannelEventSink,
public nsIProgressEventSink,
@ -844,21 +846,18 @@ class nsXHRParseEndListener : public nsIDOMEventListener {
public:
NS_DECL_ISUPPORTS
NS_IMETHOD HandleEvent(Event* event) override {
if (mXHR) {
mXHR->OnBodyParseEnd();
if (RefPtr<XMLHttpRequestMainThread> xhr = mXHR.get()) {
xhr->OnBodyParseEnd();
}
mXHR = nullptr;
return NS_OK;
}
explicit nsXHRParseEndListener(XMLHttpRequestMainThread* aXHR) : mXHR(aXHR) {}
void SetIsStale() { mXHR = nullptr; }
private:
virtual ~nsXHRParseEndListener() = default;
XMLHttpRequestMainThread* mXHR;
WeakPtr<XMLHttpRequestMainThread> mXHR;
};
} // namespace dom