tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit b07347e94d084fb061dc51411e0c7bb8db1bd10d
parent 1c9ebb9aec7e8f5b118905bf956c1395b05b5890
Author: Alexandre Poirot <poirot.alex@gmail.com>
Date:   Fri, 28 Nov 2025 21:44:43 +0000

Bug 2002728 - [devtools] Ensure passing an explicit module context for memory module. r=devtools-reviewers,nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D274279

Diffstat:
Mdevtools/shared/heapsnapshot/HeapSnapshotFileUtils.js | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/devtools/shared/heapsnapshot/HeapSnapshotFileUtils.js b/devtools/shared/heapsnapshot/HeapSnapshotFileUtils.js @@ -23,9 +23,13 @@ "use strict"; const lazy = {}; -ChromeUtils.defineESModuleGetters(lazy, { - FileUtils: "resource://gre/modules/FileUtils.sys.mjs", -}); +ChromeUtils.defineESModuleGetters( + lazy, + { + FileUtils: "resource://gre/modules/FileUtils.sys.mjs", + }, + { global: "contextual" } +); function getHeapSnapshotFileTemplate() { return PathUtils.join(PathUtils.tempDir, `${Date.now()}.fxsnapshot`);