From 0681b3ac9a6ab4879ca2fbfcf8aa9d00a67b8365 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Jun 2024 11:03:13 +0200 Subject: Merging upstream version 115.12.0esr. Signed-off-by: Daniel Baumann --- devtools/startup/tests/browser/browser_command_line_urls.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'devtools/startup/tests/browser') diff --git a/devtools/startup/tests/browser/browser_command_line_urls.js b/devtools/startup/tests/browser/browser_command_line_urls.js index e435d08406..99c5214eac 100644 --- a/devtools/startup/tests/browser/browser_command_line_urls.js +++ b/devtools/startup/tests/browser/browser_command_line_urls.js @@ -93,6 +93,9 @@ add_task(async function openingWithDevToolsButUnknownSource() { ); await SpecialPowers.spawn(gBrowser.selectedBrowser, [], async function () { + // View source may not have updated the selection just yet + ContentTaskUtils.waitForCondition(() => !!content.getSelection()); + const selection = content.getSelection(); Assert.equal( selection.toString(), -- cgit v1.2.3