mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
Fix browser.search regression
Somehow we made a slightly flakey search failure deterministic with one of our changes
This commit is contained in:
parent
a544a0dba1
commit
a24e83be86
|
|
@ -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 }))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue