tor-browser

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

commit c13b7064a7eaf502c4baeffea8d1e566eb88b285
parent 444f01bb4c74621c12c5ffeb93272905483b73be
Author: Julian Descottes <jdescottes@mozilla.com>
Date:   Thu,  6 Nov 2025 07:35:14 +0000

Bug 1995762 - [devtools] Avoid unhandled promise rejections in browser_destroying_iframes.js r=devtools-reviewers,bomsy

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

Diffstat:
Mdevtools/client/framework/test/browser_destroying_iframes.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/devtools/client/framework/test/browser_destroying_iframes.js b/devtools/client/framework/test/browser_destroying_iframes.js @@ -6,7 +6,7 @@ // an iframe early after its creation. add_task(async function () { - const { tab } = await openInspectorForURL("about:blank"); + const { tab, toolbox } = await openInspectorForURL("about:blank"); const browser = tab.linkedBrowser; // Create/remove an extra one now, after the load event. @@ -18,4 +18,7 @@ add_task(async function () { iframe.remove(); }); } + + // Wait for requests to settle to avoid unhandled promise rejections + await toolbox.commands.waitForRequestsToSettle(); });