In the WebExtension API, what is the proper way to reset the new tab page to a custom one?

In chrome, this could be handled in the manifest.
I’m not sure of the proper approach in Firefox.

There are APIs that can do that in Firefox, but they are not (yet) available for WebExtensions.

I know. I’m asking this because I’m trying to port application from Add-on to WebExtension but it seems like many of the needed functions are MIA.
You could technically detect a new tab creation using the TABS API and if the URL is unset or is set to the default new tab URL to redirect it elsewhere.

That sounds like a really bad idea :smiley:

You could embed your WebExtension in a SDK add-on, port everything exept for the actual new tab overwrite into the WebExtension and use messaging to call the overwrite in the SDK code.

A WebExtension API for this will most definitely come in the future, and this is a good way to start porting now.