summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/loader
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /js/xpconnect/loader
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/xpconnect/loader')
-rw-r--r--js/xpconnect/loader/mozJSModuleLoader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/xpconnect/loader/mozJSModuleLoader.cpp b/js/xpconnect/loader/mozJSModuleLoader.cpp
index cdf4df1970..5a9b552357 100644
--- a/js/xpconnect/loader/mozJSModuleLoader.cpp
+++ b/js/xpconnect/loader/mozJSModuleLoader.cpp
@@ -788,9 +788,9 @@ class ScriptReaderRunnable final : public nsIRunnable,
mRv = aRv;
RefPtr<dom::MainThreadStopSyncLoopRunnable> runnable =
- new dom::MainThreadStopSyncLoopRunnable(
- mWorkerPrivate, std::move(mSyncLoopTarget), mRv);
- MOZ_ALWAYS_TRUE(runnable->Dispatch());
+ new dom::MainThreadStopSyncLoopRunnable(std::move(mSyncLoopTarget),
+ mRv);
+ MOZ_ALWAYS_TRUE(runnable->Dispatch(mWorkerPrivate));
mWorkerPrivate = nullptr;
mSyncLoopTarget = nullptr;
@@ -1505,7 +1505,7 @@ nsresult mozJSModuleLoader::GetLoadedJSAndESModules(
#ifdef STARTUP_RECORDER_ENABLED
void mozJSModuleLoader::RecordImportStack(JSContext* aCx,
const nsACString& aLocation) {
- if (!Preferences::GetBool("browser.startup.record", false)) {
+ if (!StaticPrefs::browser_startup_record()) {
return;
}
@@ -1515,7 +1515,7 @@ void mozJSModuleLoader::RecordImportStack(JSContext* aCx,
void mozJSModuleLoader::RecordImportStack(
JSContext* aCx, JS::loader::ModuleLoadRequest* aRequest) {
- if (!Preferences::GetBool("browser.startup.record", false)) {
+ if (!StaticPrefs::browser_startup_record()) {
return;
}