| 73 | // newTab: Optional. Whether to open the result in a new tab. |
| 74 | // keyword: A keyword which will scope the search to a UserSearchEngine. |
| 75 | open(sourceFrameId, vomnibarShowOptions) { |
| 76 | this.init(); |
| 77 | // The Vomnibar cannot coexist with the help dialog (it causes focus issues). |
| 78 | HelpDialog.abort(); |
| 79 | Utils.assertType(VomnibarShowOptions, vomnibarShowOptions); |
| 80 | this.vomnibarUI.show( |
| 81 | Object.assign(vomnibarShowOptions, { name: "activate" }), |
| 82 | { sourceFrameId, focus: true }, |
| 83 | ); |
| 84 | }, |
| 85 | }; |
| 86 | |
| 87 | globalThis.Vomnibar = Vomnibar; |