Add about.manifest and protocol.manifest

This commit is contained in:
wuggy 2026-09-19 07:55:11 -07:00
commit c01bef620c
6 changed files with 13 additions and 10 deletions

View file

@ -9,7 +9,7 @@ In this tree it is built into the browser rather than installed as an add-on. Th
The integration is split into the same pieces used by other browser-native features:
- `moz.build` adds the component files, default preferences, and chrome package to the browser build.
- `components/gopher.manifest` registers the Gopher protocol and the `about:gopher`/`about:overbite` pages.
- `components/protocol.manifest` registers the Gopher protocol, while `components/about.manifest` registers the `about:gopher` and `about:overbite` pages.
- `components/protocol.js` implements Gopher networking, directory conversion, internal resources, and supported item types.
- `components/about.js` supplies the Overbite information page.
- `jar.mn` packages the `overbiteff` content and locale namespaces.

View file

@ -0,0 +1,5 @@
component {80d3faa0-de53-11dc-95ff-0800200c9a66} about.js
contract @mozilla.org/network/protocol/about;1?what=gopher {80d3faa0-de53-11dc-95ff-0800200c9a66}
contract @mozilla.org/network/protocol/about;1?what=overbite {80d3faa0-de53-11dc-95ff-0800200c9a66}
category profile-after-change OverbiteAbout @mozilla.org/network/protocol/about;1?what=gopher
category profile-after-change OverbiteAbout @mozilla.org/network/protocol/about;1?what=overbite

View file

@ -0,0 +1,3 @@
component {977ffc4c-a635-433d-8477-ea575bfb7b19} protocol.js
contract @mozilla.org/network/protocol;1?name=gopher {977ffc4c-a635-433d-8477-ea575bfb7b19}
category profile-after-change GopherProtocol @mozilla.org/network/protocol;1?name=gopher

View file

@ -8,7 +8,9 @@ JAR_MANIFESTS += ['jar.mn']
FINAL_TARGET = 'dist/bin/browser'
FINAL_TARGET_FILES.components += [
'components/about.manifest',
'components/about.js',
'components/protocol.manifest',
'components/protocol.js',
]