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

@ -40,12 +40,3 @@ contract @mozilla.org/browser/browserglue;1 {eab9012e-5f74-4cbc-b2b5-a590235513c
category app-startup nsBrowserGlue service,@mozilla.org/browser/browserglue;1 application={3c2e2abc-06d4-11e1-ac3b-374f68613e61} application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} application={aa3c5121-dab2-40e2-81ca-7ea25febc110} application={a23983c0-fd0e-11dc-95ff-0800200c9a66} application={d1bfe7d9-c01e-4237-998b-7b5f960a4314} category app-startup nsBrowserGlue service,@mozilla.org/browser/browserglue;1 application={3c2e2abc-06d4-11e1-ac3b-374f68613e61} application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} application={aa3c5121-dab2-40e2-81ca-7ea25febc110} application={a23983c0-fd0e-11dc-95ff-0800200c9a66} application={d1bfe7d9-c01e-4237-998b-7b5f960a4314}
component {d8903bf6-68d5-4e97-bcd1-e4d3012f721a} nsBrowserGlue.js component {d8903bf6-68d5-4e97-bcd1-e4d3012f721a} nsBrowserGlue.js
contract @mozilla.org/content-permission/prompt;1 {d8903bf6-68d5-4e97-bcd1-e4d3012f721a} contract @mozilla.org/content-permission/prompt;1 {d8903bf6-68d5-4e97-bcd1-e4d3012f721a}
# OverbiteFF built-in Gopher support
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
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

@ -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: 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. - `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/protocol.js` implements Gopher networking, directory conversion, internal resources, and supported item types.
- `components/about.js` supplies the Overbite information page. - `components/about.js` supplies the Overbite information page.
- `jar.mn` packages the `overbiteff` content and locale namespaces. - `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 = 'dist/bin/browser'
FINAL_TARGET_FILES.components += [ FINAL_TARGET_FILES.components += [
'components/about.manifest',
'components/about.js', 'components/about.js',
'components/protocol.manifest',
'components/protocol.js', 'components/protocol.js',
] ]

View file

@ -360,7 +360,9 @@
@RESPATH@/browser/components/nsSetDefaultBrowser.js @RESPATH@/browser/components/nsSetDefaultBrowser.js
@RESPATH@/browser/components/internaluserscripts.js @RESPATH@/browser/components/internaluserscripts.js
@RESPATH@/browser/components/internaluserscripts.manifest @RESPATH@/browser/components/internaluserscripts.manifest
@RESPATH@/browser/components/about.manifest
@RESPATH@/browser/components/about.js @RESPATH@/browser/components/about.js
@RESPATH@/browser/components/protocol.manifest
@RESPATH@/browser/components/protocol.js @RESPATH@/browser/components/protocol.js
@RESPATH@/browser/components/devtools-startup.manifest @RESPATH@/browser/components/devtools-startup.manifest
@RESPATH@/browser/components/devtools-startup.js @RESPATH@/browser/components/devtools-startup.js