It is possible to override default firefox pages with chrome.manifest.
For example:
override chrome://global/content/netError.xhtml chrome://offline/content/netError.xhtml
How can I do this with package.json or with Javascript API for WebExtensions addon?