I've just accidentally downgraded my profile to 4.0 and borked it.

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1109
Joined: 2020-11-03, 06:47
Location: Philippines

I've just accidentally downgraded my profile to 4.0 and borked it.

Post by jobbautista9 » 2025-12-02, 14:56

I was looking at ancient versions of Pale Moon to look for some differences I'm finding compared to the current version, and I just accidentally forgot to ensure the profile manager to be opened first. Very unluckily this was in 4.0 when Pale Moon started using a different directory from Firefox for the profiles, resulting in my default profile getting opened and downgraded... The profile no longer opened in the current version, which I assume is due to the profile no longer having a working NSS credential store in SQLite and the browser just crashes when it can't look for one. Fortunately I was able to salvage it and make it work again by putting the profile in 28.17.0 (which as documented in the profile migration documentation is the last version to support migrating the NSS credential stores from DBM to SQLite). Now it opens in 33.9.1.

My profile seems to work fine. My selected theme got reset which I quickly fixed back to Moonscape (and it's due to this accident I noticed that my lightweight theme's URL for its image no longer works, which I also fixed). Remarkably my history (browsing, search and forms) and bookmarks (including the live bookmarks) are intact. I've lost no add-ons nor their settings. Site preferences still seem the same. My userscripts and userstyles are also fine. All of the toolbar buttons are where they should be except for uBlock Origin (which has always removed itself from its toolbar anyway) and RecordRewind (which moved itself to the Navigation Toolbar). My Mojeek got pushed to the bottom of the search engines which I've quickly moved back to the top but other than that I kept all of my search plugins. I'm still synced to my sync account (which I worried might've broken because 4.0 showed that the Sync is not setup).

Really the only things I've lost are my cookies, which funnily enough happened to me one time randomly before even though I haven't really done anything to my profile or cleared my cookies (so I think my profile might've already gotten its gremlins before this incident). And even then I'm still logged in to my SNSes that don't use cookies for storing logins, like Pleroma and Bluesky... My logins in SubWebView are also safe, thanks to being contained in its own subdirectory. Saved passwords are also intact, though I'm not sure if it's due to Sync or if they really didn't get touched by the migration.

So I wonder how screwed I really am... :think:
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
Moonchild
Project founder
Project founder
Posts: 38665
Joined: 2011-08-28, 17:27
Location: Sweden

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by Moonchild » 2025-12-02, 15:14

jobbautista9 wrote:
2025-12-02, 14:56
So I wonder how screwed I really am...
Really hard to tell. It's likely that 4.0 simply wasn't aware of data storage locations from modern Pale Moon, so it just wouldn't have touched them. Being in a broken state likely also prevented damage by not being able to initialize.
So, I'm thinking damage is probably limited
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"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
jobbautista9
Board Warrior
Board Warrior
Posts: 1109
Joined: 2020-11-03, 06:47
Location: Philippines

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by jobbautista9 » 2025-12-02, 15:24

I see... What about the migration to 28.17.0 though? Or is it that version 33 vs 28.17.0-32.5.2 (except 30.x) are all very closely similar platform-wise anyway (i.e. they're all UXP and using SQLite for NSS), compared to say 28 vs 27 (UXP vs Tycho), that damage in that front would be limited too?
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
Moonchild
Project founder
Project founder
Posts: 38665
Joined: 2011-08-28, 17:27
Location: Sweden

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by Moonchild » 2025-12-02, 19:37

Maybe someone with more time can dive into those questions. As it is, i have stuff to unpack and set up at my new place but bad timing of bad timings I'm now ill with a nasty cold, so not having any sort of reasonable head space.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

jarsealer
Moonbather
Moonbather
Posts: 59
Joined: 2025-08-03, 23:56

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by jarsealer » 2025-12-04, 14:57

jobbautista9 wrote:
2025-12-02, 14:56
My selected theme got reset which I quickly fixed back to Moonscape (and it's due to this accident I noticed that my lightweight theme's URL for its image no longer works, which I also fixed).
I thought lightweight themes were stored/saved by the browser, is it downloaded every time you open PM?
Pale Moon, Basilisk and SeaLion arm64 user, on Raspberry Pi 5 (8 GB RAM)

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

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by jobbautista9 » 2025-12-04, 15:00

I'm not sure about lightweight themes applied normally, but for LW themes applied by the ThemeTool extension I'm pretty sure it's cached, and I guess the cache got lost after it got disabled by the 4.0 downgrade...
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.

jarsealer
Moonbather
Moonbather
Posts: 59
Joined: 2025-08-03, 23:56

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by jarsealer » 2025-12-08, 15:33

I tested this and saw in my firewall that when using the ThemeTool extension it connects to addons.palemoon.org and loads the LW themes. Same thing when applying LW themes normally from Add-ons manager.
Pale Moon, Basilisk and SeaLion arm64 user, on Raspberry Pi 5 (8 GB RAM)

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

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by Moonchild » 2025-12-08, 17:31

Lightweight themes are a bit of an oddity. They are inherently online themes but get the active one persistently cached. So they may seem offline like full themes but they are not.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

jarsealer
Moonbather
Moonbather
Posts: 59
Joined: 2025-08-03, 23:56

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by jarsealer » 2025-12-08, 20:32

Moonchild wrote:
2025-12-08, 17:31
Lightweight themes are a bit of an oddity. They are inherently online themes but get the active one persistently cached. So they may seem offline like full themes but they are not.
I don't see why they have to be fetched online if all of them can be stored offline or cached, unless for updates. Maybe it's a technical limitation?

Also more of lightweight themes would be nice to see some day, I'd make one myself but can't code, or can you use ones other than on the official add-ons store?
Pale Moon, Basilisk and SeaLion arm64 user, on Raspberry Pi 5 (8 GB RAM)

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

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by Moonchild » 2025-12-08, 20:54

lightweight themes are just 2 images and a small set of color definitions for text. They don't technically have to be stored online but they were designed from the ground up as customization-as-a-service. making new ones is easy as anything. just make a proper format set of images and define a few variables in a text file.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"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: 5746
Joined: 2015-12-09, 15:45

Re: I've just accidentally downgraded my profile to 4.0 and borked it.

Post by moonbat » 2025-12-09, 01:41

Can one create a light theme with a file: URL pointing to a local file, instead of an online image?
"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