mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
Add about.manifest and protocol.manifest
This commit is contained in:
parent
6c5998576b
commit
c01bef620c
6 changed files with 13 additions and 10 deletions
|
|
@ -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.
|
||||
|
|
|
|||
5
browser/gopher/components/about.manifest
Normal file
5
browser/gopher/components/about.manifest
Normal 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
|
||||
3
browser/gopher/components/protocol.manifest
Normal file
3
browser/gopher/components/protocol.manifest
Normal 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
|
||||
|
|
@ -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',
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue