summaryrefslogtreecommitdiffstats
path: root/dom/workers/WorkerDebugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/WorkerDebugger.cpp')
-rw-r--r--dom/workers/WorkerDebugger.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/dom/workers/WorkerDebugger.cpp b/dom/workers/WorkerDebugger.cpp
index a3e0af7a38..43cccf1102 100644
--- a/dom/workers/WorkerDebugger.cpp
+++ b/dom/workers/WorkerDebugger.cpp
@@ -37,7 +37,7 @@ class DebuggerMessageEventRunnable final : public WorkerDebuggerRunnable {
public:
DebuggerMessageEventRunnable(WorkerPrivate* aWorkerPrivate,
const nsAString& aMessage)
- : WorkerDebuggerRunnable(aWorkerPrivate, "DebuggerMessageEventRunnable"),
+ : WorkerDebuggerRunnable("DebuggerMessageEventRunnable"),
mMessage(aMessage) {}
private:
@@ -74,7 +74,7 @@ class CompileDebuggerScriptRunnable final : public WorkerDebuggerRunnable {
CompileDebuggerScriptRunnable(WorkerPrivate* aWorkerPrivate,
const nsAString& aScriptURL,
const mozilla::Encoding* aDocumentEncoding)
- : WorkerDebuggerRunnable(aWorkerPrivate, "CompileDebuggerScriptRunnable"),
+ : WorkerDebuggerRunnable("CompileDebuggerScriptRunnable"),
mScriptURL(aScriptURL),
mDocumentEncoding(aDocumentEncoding) {}
@@ -376,7 +376,7 @@ WorkerDebugger::Initialize(const nsAString& aURL) {
RefPtr<CompileDebuggerScriptRunnable> runnable =
new CompileDebuggerScriptRunnable(mWorkerPrivate, aURL,
aDocumentEncoding);
- if (!runnable->Dispatch()) {
+ if (!runnable->Dispatch(mWorkerPrivate)) {
return NS_ERROR_FAILURE;
}
@@ -396,7 +396,7 @@ WorkerDebugger::PostMessageMoz(const nsAString& aMessage) {
RefPtr<DebuggerMessageEventRunnable> runnable =
new DebuggerMessageEventRunnable(mWorkerPrivate, aMessage);
- if (!runnable->Dispatch()) {
+ if (!runnable->Dispatch(mWorkerPrivate)) {
return NS_ERROR_FAILURE;
}