How is PaleMoon 5 times smaller than Firefox on macOS? Topic is solved

Discussions for the Apple Mac OS builds of Pale Moon

Moderator: dbsoft

Forum rules
Important note:
The old Mac OS versions of Pale Moon were provided by various people and not official or in any way organized. Please make sure you check the date of topic threads to know if the topic is current or relevant! We are using this board for both old discussions and new development of Pale Moon on Mac.

Any specific bugs you find that don't have their own topic yet: please make a new topic; one bug per topic please to keep things organized.
User avatar
marigold
Moonbather
Moonbather
Posts: 61
Joined: 2023-05-26, 17:45

How is PaleMoon 5 times smaller than Firefox on macOS?

Post by marigold » 2026-06-14, 17:44

I use PaleMoon as my regular browser and also have Tor Browser (Firefox) as my stand-by browser. While upgrading PaleMoon to 34.3.0.1, I observed that the latest version of Palemoon is only around 103+ MB where as the latest version of Tor Browser (Firefox) is around 503+ MB - that's 5 times bigger than PaleMoon! Even though I had deleted the Tor module (around 70+ MB) from the Tor Browser, I thought maybe the large size is just particular to the Tor Browser. So I downloaded the latest version of Firefox (macOS), and to my surprise, that is also around 503+ MB.

Now, I know that while PaleMoon is a fork of Firefox its codebase has diverged from it. But even without the code for something like WebRTC, WebExtensions and DRM media extensions, is there any particular technical decisions that have made PaleMoon / Goanna 5 times smaller than Firefox / Gecko?

(Kudos to the PaleMoon team for that)!

User avatar
BenFenner
Keeps coming back
Keeps coming back
Posts: 979
Joined: 2015-06-01, 12:52
Location: US Southeast

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by BenFenner » 2026-06-14, 22:27

I'm way too lazy to check, but it is unclear if you've confirmed the size of the Pale Moon browser installed on disc, or the installer size itself, or only the size of the update? Those are all potentially 3 very different sizes (not to mention the size of the codebase) and each only so meaningful on their own. Then you're trying to compare that to what exactly? Other browser installer sizes?

Don't make us work for this.

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1237
Joined: 2020-11-03, 06:47
Location: Philippines

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by jobbautista9 » 2026-06-15, 06:13

I think Firefox's macOS version is a "fat binary", which allows it to support both Intel and ARM in the same package. We have separate DMGs for each architecture.
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
marigold
Moonbather
Moonbather
Posts: 61
Joined: 2023-05-26, 17:45

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by marigold » 2026-06-15, 06:39

BenFenner wrote:
2026-06-14, 22:27
... it is unclear if you've confirmed the size of the Pale Moon browser installed on disc, or the installer size itself, or only the size of the update? ...
You are right - I should have highlighted that I was talking about the installed size of both applications.

User avatar
marigold
Moonbather
Moonbather
Posts: 61
Joined: 2023-05-26, 17:45

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by marigold » 2026-06-15, 06:56

jobbautista9 wrote:
2026-06-15, 06:13
I think Firefox's macOS version is a "fat binary", which allows it to support both Intel and ARM in the same package. We have separate DMGs for each architecture.
Yes, that seems to be it.

Code: Select all

> file /Applications/Pale\ Moon.app/Contents/MacOS/palemoon

Code: Select all

/Applications/Pale Moon.app/Contents/MacOS/palemoon: Mach-O 64-bit executable x86_64

Code: Select all

> file /Applications/Tor\ Browser.app/Contents/MacOS/firefox 

Code: Select all

/Applications/Tor Browser.app/Contents/MacOS/firefox: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64
- Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64
- Mach-O 64-bit executable arm64]
/Applications/Tor Browser.app/Contents/MacOS/firefox (for architecture x86_64):Mach-O 64-bit executable x86_64
/Applications/Tor Browser.app/Contents/MacOS/firefox (for architecture arm64):	Mach-O 64-bit executable arm64
Assuming that the individual binaries of Firefox, for the two platforms, are roughly half the size (i.e. around 250 GB) that is still commendable for PaleMoon ...

User avatar
Moonchild
Project founder
Project founder
Posts: 39633
Joined: 2011-08-28, 17:27
Location: Sweden

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by Moonchild » 2026-06-15, 07:07

It's because of their massive bloat due to Rust, if nothing else. Their xul.dll in Windows is currently a whopping 172 MB in size (as opposed to our 38). I'm pretty sure most of that is due to Rust. Add to that a ton of gadgeteering support and "remote" control code and telemetry, and it adds up.
Not to mention a bunch of "helper apps" like a messaging proxy that tightly integrates with Chrome if installed on the same system.
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"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
UCyborg
Board Warrior
Board Warrior
Posts: 1086
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by UCyborg » 2026-06-15, 20:38

Chromium's chrome.dll is 2x times that and that's still C++ I think. 🙃
The Merovingian wrote:Choice is an illusion, created between those with power, and those without.

User avatar
Moonchild
Project founder
Project founder
Posts: 39633
Joined: 2011-08-28, 17:27
Location: Sweden

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by Moonchild » 2026-06-16, 06:12

Actually, looking at the nmhproxy included in Firefox, I fell into a bit of a rabbit hole. Neither the bz bug introducing it nor follow ups have descriptions, at all. And they link to Jira as a see-also that is restricted to Mozilla devs only. So basically, Firefox comes with a black box listening proxy that listens for native messages from Chrome that can directly control the browser... !
I'd be extremely weary of such a setup. That would be an easy way for malware to hijack Firefox if they figure out the control protocol for it (seems to be json from stdin)...
You do not have the required permissions to view the files attached to this post.
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"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: 5901
Joined: 2015-12-09, 15:45

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by moonbat » 2026-06-16, 08:58

UCyborg wrote:
2026-06-15, 20:38
Chromium's chrome.dll is 2x times that and that's still C++ I think. 🙃
Chrome wants to become a VM for web applications and are probably trying to replicate functionality that belongs in an operating system.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
UCyborg
Board Warrior
Board Warrior
Posts: 1086
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by UCyborg » 2026-06-16, 14:14

^ You could say it already is.
The Merovingian wrote:Choice is an illusion, created between those with power, and those without.

User avatar
Moonchild
Project founder
Project founder
Posts: 39633
Joined: 2011-08-28, 17:27
Location: Sweden

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by Moonchild » 2026-06-16, 14:58

moonbat wrote:
2026-06-16, 08:58
Chrome wants to become a VM for web applications and are probably trying to replicate functionality that belongs in an operating system.
UCyborg wrote:
2026-06-16, 14:14
^ You could say it already is.
Pretty much. And Chrome also controls the specs of that VM.
We're partially there as well with how our JS has massively expanded. Unfortunately it has its drawbacks as well.
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"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
marigold
Moonbather
Moonbather
Posts: 61
Joined: 2023-05-26, 17:45

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by marigold » 2026-06-18, 12:07

Moonchild wrote:
2026-06-15, 07:07
Not to mention a bunch of "helper apps" like a messaging proxy that tightly integrates with Chrome if installed on the same system.
Why would Firefox need "helper apps" to integrate with Google Chrome? Perhaps it is for "syncing browsing data" between the two - if I remember right, both can can import bookmarks and maybe even history from each other? But it is weird if, as you say, Google Chrome can send messages to Firefox and ... do something ... !!? (Or did you mean the "Firefox's chrome"?)

User avatar
Moonchild
Project founder
Project founder
Posts: 39633
Joined: 2011-08-28, 17:27
Location: Sweden

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by Moonchild » 2026-06-19, 05:29

No i meant the Chrome browser. And no, it is not for "syncing data" it is literally an "in" for a native messaging protocol to launch and control parts of Firefox. That has zero actual documentation open to the public.
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"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
Gemmaugr
Astronaut
Astronaut
Posts: 745
Joined: 2025-02-03, 07:55

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by Gemmaugr » 2026-06-19, 07:53

Does this shed some more light on that black box? https://bugzilla.mozilla.org/show_bug.cgi?id=1876342
||OS: Win 10 | CPU: i7 10700 | GPU: GeForce RTX 3070||
"Judge a person not by their superficial identity attributes, but by the content of their character."
"Organized Identity Politics are the bane of civilized society."

User avatar
Moonchild
Project founder
Project founder
Posts: 39633
Joined: 2011-08-28, 17:27
Location: Sweden

Re: How is PaleMoon 5 times smaller than Firefox on macOS?

Post by Moonchild » 2026-06-19, 09:57

Gemmaugr wrote:
2026-06-19, 07:53
Does this shed some more light on that black box? https://bugzilla.mozilla.org/show_bug.cgi?id=1876342
Not really, as it just deals with system registration of the proxy as a scheme handler; it doesn't explain anything about the proxy itself other than a drive-by mention of a "dual browser" setup and launching Firefox from within Chrome, which I already figured out before. It says nothing about why this would be a thing to begin with, or why Firefox needs to integrate so tightly with Chrome, or how it can be used in good or bad ways.
Assuming Firefox defaults to accepting known extension IDs in Chrome, I can see abuse being easy.
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite