summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/loader
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 /js/xpconnect/loader
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 '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;
}