From c01bef620c690a1f734d7d829082643cf04d06f0 Mon Sep 17 00:00:00 2001 From: wuggy Date: Sat, 19 Sep 2026 07:55:11 -0700 Subject: [PATCH] Add about.manifest and protocol.manifest --- browser/components/BrowserComponents.manifest | 9 --------- browser/gopher/README.md | 2 +- browser/gopher/components/about.manifest | 5 +++++ browser/gopher/components/protocol.manifest | 3 +++ browser/gopher/moz.build | 2 ++ browser/installer/package-manifest.in | 2 ++ 6 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 browser/gopher/components/about.manifest create mode 100644 browser/gopher/components/protocol.manifest diff --git a/browser/components/BrowserComponents.manifest b/browser/components/BrowserComponents.manifest index 0a641e45a7..0c80006beb 100644 --- a/browser/components/BrowserComponents.manifest +++ b/browser/components/BrowserComponents.manifest @@ -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} component {d8903bf6-68d5-4e97-bcd1-e4d3012f721a} nsBrowserGlue.js 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 diff --git a/browser/gopher/README.md b/browser/gopher/README.md index f08a8db010..d106dc2980 100644 --- a/browser/gopher/README.md +++ b/browser/gopher/README.md @@ -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. diff --git a/browser/gopher/components/about.manifest b/browser/gopher/components/about.manifest new file mode 100644 index 0000000000..e2046883dd --- /dev/null +++ b/browser/gopher/components/about.manifest @@ -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 diff --git a/browser/gopher/components/protocol.manifest b/browser/gopher/components/protocol.manifest new file mode 100644 index 0000000000..bd8695e11d --- /dev/null +++ b/browser/gopher/components/protocol.manifest @@ -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 diff --git a/browser/gopher/moz.build b/browser/gopher/moz.build index edc1757e98..54ec07ad45 100644 --- a/browser/gopher/moz.build +++ b/browser/gopher/moz.build @@ -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', ] diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in index bfbee1e4ff..1c7ac731d7 100644 --- a/browser/installer/package-manifest.in +++ b/browser/installer/package-manifest.in @@ -360,7 +360,9 @@ @RESPATH@/browser/components/nsSetDefaultBrowser.js @RESPATH@/browser/components/internaluserscripts.js @RESPATH@/browser/components/internaluserscripts.manifest +@RESPATH@/browser/components/about.manifest @RESPATH@/browser/components/about.js +@RESPATH@/browser/components/protocol.manifest @RESPATH@/browser/components/protocol.js @RESPATH@/browser/components/devtools-startup.manifest @RESPATH@/browser/components/devtools-startup.js