Bug 1924848 - Use the correct await in sendPlacedInUrlbarTrigger r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D226679
This commit is contained in:
@@ -437,7 +437,7 @@ export var PageActions = {
|
||||
*/
|
||||
sendPlacedInUrlbarTrigger(buttonNode) {
|
||||
lazy.setTimeout(async () => {
|
||||
await lazy.ASRouter.initialized;
|
||||
await lazy.ASRouter.waitForInitialized;
|
||||
let win = buttonNode?.ownerGlobal;
|
||||
if (!win || buttonNode.hidden) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user