fork

For discussions about side projects, potential future projects or helper applications for Pale Moon.
User avatar
arthuralvescosta8z
Newbie
Newbie
Posts: 3
Joined: 2022-12-01, 01:10

fork

Unread post by arthuralvescosta8z » 2023-03-01, 11:40

Can i make a fork of pale moon to make the browser run chrome extensions?

User avatar
Nuck-TH
Project Contributor
Project Contributor
Posts: 197
Joined: 2020-03-02, 16:04

Re: fork

Unread post by Nuck-TH » 2023-03-01, 12:05

I just will say: "good luck with that, huh".
And it is not because license and whatsnot.

Webextensions have completely different API and (worse)security model.
So in addition to need implementing that API, you have 2 options to dealing with completely different security models of UXP and webextension browsers:
  • Wreck existing chrome(privileged)-content(restricted) separation.
  • Painstakingly search for secure workarounds, which may not even be fully possible.
Picking first option will result in... Firefox.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2183
Joined: 2018-05-05, 13:29

Re: fork

Unread post by vannilla » 2023-03-01, 12:42

In theory WebExtensions can be "emulated" (for a lack of a better word) using XPCOM.
You need to write a compatibility shim to translate WebExt APIs to XPCOM and doing that doesn't break the existing XUL-based model.

Of course, whether this is possible in practice is a different matter. ;)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: fork

Unread post by Moonchild » 2023-03-01, 15:17

vannilla wrote:
2023-03-01, 12:42
You need to write a compatibility shim to translate WebExt APIs to XPCOM and doing that doesn't break the existing XUL-based model.
Aside from that you need to make a secure environment to host html-based elements in inside XUL in the UI. This should be possible but may clash severely with our customizability and theming if not done carefully.
You may also run into issues with WEs assuming e10s specifics that are not present in UXP.

It's not going to be trivial to say the least, and you'd probably have an easier time with less work creating/updating/modifying extensions for our platform natively than trying to somehow force WEs into an incompatible host application.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: fork

Unread post by moonbat » 2023-03-02, 00:40

tl;dr - don't waste your time screwing around with builds and just use Waterfox Classic, which claims to support both XUL and WebExtensions. Haven't seen it in a couple of years so unsure whether they still support both and to what extent the latter.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Mæstro
Lunatic
Lunatic
Posts: 463
Joined: 2019-08-13, 00:30
Location: Casumia

Re: fork

Unread post by Mæstro » 2023-03-07, 18:05

Waterfox Classic is no longer maintained. Its last release was in Ⅺ 22. SeaMonkey plans to support WebExtensions beside traditional extensions from v2·57 on, but does not yet. (Beside killing NPAPI support, this is one reason I have chosen Pale Moon over SeaMonkey.) I know of no actively maintained browser which supports both at this time.
Browser: Pale Moon (Pusser’s repository for Debian)
Operating System: Linux Mint Debian Edition 4 (amd64)
※Receiving Debian 10 LTS security upgrades
Hardware: HP Pavilion DV6-7010 (1400 MHz, 6 GB)
Formerly user TheRealMaestro: æsc is the best letter.

dapgo
Fanatic
Fanatic
Posts: 206
Joined: 2016-10-11, 11:36

Re: fork

Unread post by dapgo » 2023-03-09, 13:40

Mæstro wrote:
2023-03-07, 18:05
Waterfox Classic is no longer maintained. Its last release was in Ⅺ 22. SeaMonkey plans to support WebExtensions beside traditional extensions from v2·57 on, but does not yet. (Beside killing NPAPI support, this is one reason I have chosen Pale Moon over SeaMonkey.) I know of no actively maintained browser which supports both at this time.
where is this seamonkey roadmap or info about the this future support for XUL+WE?

User avatar
Mæstro
Lunatic
Lunatic
Posts: 463
Joined: 2019-08-13, 00:30
Location: Casumia

Re: fork

Unread post by Mæstro » 2023-03-09, 15:20

The relevant statement is in the release notes for SeaMonkey 2·53·15, which I had linked:
SeaMonkey does not currently support the WebExtensions add-on api. Some popular add-ons like NoScript and uBlock Origin are no longer shown because of this on the SeaMonkey add-ons website. You can usually get compatible versions from the manufacturers site. WebExtensions support is a planned feature for 2.57.
Browser: Pale Moon (Pusser’s repository for Debian)
Operating System: Linux Mint Debian Edition 4 (amd64)
※Receiving Debian 10 LTS security upgrades
Hardware: HP Pavilion DV6-7010 (1400 MHz, 6 GB)
Formerly user TheRealMaestro: æsc is the best letter.

Locked