summaryrefslogtreecommitdiffstats
path: root/dom/xhr/XMLHttpRequestWorker.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /dom/xhr/XMLHttpRequestWorker.cpp
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/xhr/XMLHttpRequestWorker.cpp')
-rw-r--r--dom/xhr/XMLHttpRequestWorker.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/dom/xhr/XMLHttpRequestWorker.cpp b/dom/xhr/XMLHttpRequestWorker.cpp
index 67cba876db..974b465aa6 100644
--- a/dom/xhr/XMLHttpRequestWorker.cpp
+++ b/dom/xhr/XMLHttpRequestWorker.cpp
@@ -290,8 +290,7 @@ class MainThreadProxyRunnable : public MainThreadWorkerSyncRunnable {
MainThreadProxyRunnable(WorkerPrivate* aWorkerPrivate, Proxy* aProxy,
const char* aName = "MainThreadProxyRunnable")
- : MainThreadWorkerSyncRunnable(aWorkerPrivate, aProxy->GetEventTarget(),
- aName),
+ : MainThreadWorkerSyncRunnable(aProxy->GetEventTarget(), aName),
mProxy(aProxy) {
MOZ_ASSERT(aProxy);
}
@@ -777,9 +776,9 @@ void Proxy::Teardown() {
if (mSyncLoopTarget) {
// We have an unclosed sync loop. Fix that now.
RefPtr<MainThreadStopSyncLoopRunnable> runnable =
- new MainThreadStopSyncLoopRunnable(
- mWorkerPrivate, std::move(mSyncLoopTarget), NS_ERROR_FAILURE);
- MOZ_ALWAYS_TRUE(runnable->Dispatch());
+ new MainThreadStopSyncLoopRunnable(std::move(mSyncLoopTarget),
+ NS_ERROR_FAILURE);
+ MOZ_ALWAYS_TRUE(runnable->Dispatch(mWorkerPrivate));
}
mOutstandingSendCount = 0;
@@ -886,7 +885,7 @@ Proxy::HandleEvent(Event* aEvent) {
}
if (runnable) {
- runnable->Dispatch();
+ runnable->Dispatch(mWorkerPrivate);
}
}
@@ -924,7 +923,7 @@ LoadStartDetectionRunnable::Run() {
RefPtr<ProxyCompleteRunnable> runnable =
new ProxyCompleteRunnable(mWorkerPrivate, mProxy, mChannelId);
- if (runnable->Dispatch()) {
+ if (runnable->Dispatch(mWorkerPrivate)) {
mProxy->mWorkerPrivate = nullptr;
mProxy->mSyncLoopTarget = nullptr;
mProxy->mOutstandingSendCount--;