tor-browser

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

commit 37c6625b3460c2dd053340126487dd773faec9cc
parent d0918f4e741af7374483ce50638a3bde418210e0
Author: Julian Descottes <jdescottes@mozilla.com>
Date:   Wed, 29 Oct 2025 13:39:41 +0000

Bug 1997045 - [devtools] Ignore promise rejections for REDUX_MIDDLEWARE_IGNORED_REDUX_ACTION in allocations tests r=devtools-reviewers,nchevobbe

Should fix the recent spike for devtools/client/framework/test/allocations/browser_allocations_browser_console.js

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

Diffstat:
Mdevtools/client/framework/test/allocations/head.js | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/devtools/client/framework/test/allocations/head.js b/devtools/client/framework/test/allocations/head.js @@ -28,6 +28,16 @@ registerCleanupFunction(async () => { } }); +// Ignore promise rejections for actions triggered after panels are closed. +{ + const { PromiseTestUtils } = ChromeUtils.importESModule( + "resource://testing-common/PromiseTestUtils.sys.mjs" + ); + PromiseTestUtils.allowMatchingRejectionsGlobally( + /REDUX_MIDDLEWARE_IGNORED_REDUX_ACTION/ + ); +} + // Load the tracker very first in order to ensure tracking all objects created by DevTools. // This is especially important for allocation sites. We need to catch the global the // earliest possible in order to ensure that all allocation objects come with a stack.