add firefox extension template

This commit is contained in:
2025-08-07 16:03:16 -05:00
parent 6cbb29fed1
commit 5df289ffcb
586 changed files with 13636 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package webextension_polyfill.urlbar;
/**
When a query starts, this event is fired for the given provider if the provider is active for the query and there are no
other providers that are restricting. Its purpose is to request the provider's results for the query.
The listener should return a list of results in response.
**/
typedef OnResultsRequestedEvent = {
/**
Registers an event listener <em>callback</em> to an event.
**/
function addListener(callback:(query:Query) -> Array<Result>, providerName:String):Void;
/**
Deregisters an event listener <em>callback</em> from an event.
**/
function removeListener(callback:(query:Query) -> Array<Result>):Void;
function hasListener(callback:(query:Query) -> Array<Result>):Bool;
function hasListeners():Bool;
};