Make all tests initialize a search through a common UrlbarTestUtils method
Categories
(Firefox :: Address Bar, task, P3)
Tracking
()
People
(Reporter: mak, Unassigned)
References
Details
Currently tests can start querying the Urlbar in different ways, and they don't have a common path to listen for results and completion.
This means we need to expose lastQueryContextPromise from UrlbarInput, because when a test method is invoked it has no way to check if a query is running or complete.
Having something like UrlbarTestUtils.waitForQuery(stringOrFn); would allow to start listening for onQueryFinished before starting the query and properly manage the query life cycle inside UrlbarUtils.
Comment 1•5 years ago
|
||
Tentatively taking as I may do some of this as part of bug 1522489.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
I forgot to comment on this. I think there's possibilities for simplification here, but it is going to be hard to do that whilst we still support the current address bar.
I think we should definitely do it, but not until after we remove the current address bar.
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Updated•4 years ago
|
Updated•2 years ago
|
Description
•