summaryrefslogtreecommitdiffstats
path: root/devtools/startup
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/startup')
-rw-r--r--devtools/startup/tests/browser/browser_command_line_urls.js3
1 files changed, 3 insertions, 0 deletions
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(),