Fix browser.search regression

Somehow we made a slightly flakey search failure
deterministic with one of our changes
This commit is contained in:
Oliver Blanthorn 2026-07-25 21:31:26 +02:00
parent a544a0dba1
commit a24e83be86
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -3041,7 +3041,7 @@ export async function tabopen_helper({ addressarr = [], waitForDom = false }): P
// right after openInNewTab(). Calling browser.tabs.get() between openInNewTab()
// and browser.search.search() seems to fix that problem.
// See https://github.com/tridactyl/tridactyl/pull/4791.
return openInNewTab(null, args, waitForDom)
return openInNewTab("about:blank", args, waitForDom)
.then(tab => browser.tabs.get(tab.id))
.then(tab => browser.search.search({ tabId: tab.id, ...maybeURL }))
}