Why does Firefox lz4 bookmarks and sessions?

User Help for Mozilla Firefox
Locked
fsckDsk
Posts: 28
Joined: April 9th, 2018, 2:12 pm

Why does Firefox lz4 bookmarks and sessions?

Post by fsckDsk »

The lz4 compression layer for bookmarks and session is additional purpose-less garbage nobody asked for.

It adds additional bulk when trying to recover sessions.

Now, why does it need lz4? Why can Firefox not just store it in plain text to make life easier when recovering the session?

I need help comprehending the purpose of lz4.
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: Why does Firefox lz4 bookmarks and sessions?

Post by Grumpus »

Maybe this link will help - Export Bookmarks
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Why does Firefox lz4 bookmarks and sessions?

Post by therube »

lz4 is faster, they might say.
lz4 is smaller, they might say.

And that said, i don't think they can come up with a rational reason ;-).
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
jscher2000
Posts: 11762
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
Contact:

Re: Why does Firefox lz4 bookmarks and sessions?

Post by jscher2000 »

fsckDsk wrote:It adds additional bulk when trying to recover sessions.
"Bulk"?? Compression radically reduces file sizes, so I don't know what you mean.
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Why does Firefox lz4 bookmarks and sessions?

Post by morat »

They might say that lz4 files are an implementation detail of how Firefox stores data. It should be considered a black box.

Similar comment on omni.ja with brotli compression
https://bugzilla.mozilla.org/show_bug.c ... 352595#c31
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Re: Why does Firefox lz4 bookmarks and sessions?

Post by RobertJ »

fsckDsk wrote:The lz4 compression layer for bookmarks and session is additional purpose-less garbage nobody asked for.

It adds additional bulk when trying to recover sessions.
As usual, you have strong opinions but don't know what you are talking about.

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Why does Firefox lz4 bookmarks and sessions?

Post by therube »

jscher2000 wrote:"Bulk"??
He's not speaking of size, but speaking in terms of a human being being able to manipulate ones data.

And in that respect, he is very correct.

What works for computer, what a computer can easily manipulate; json & lz4, makes things just that much more difficult for a person to deal with.

Starting with lz4.
To begin with, you need to be able to decompress it.
And as Mozilla uses old methods (before more standardized methods were finalized) to deal with lz4, it makes things even more difficult.
And once you've gotten past that barrier, then json itself isn't very user friendly...


Black boxes, yes.
I mentioned that here, https://bugzilla.mozilla.org/show_bug.cgi?id=674824#c2.
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Re: Why does Firefox lz4 bookmarks and sessions?

Post by RobertJ »

therube wrote: He's not speaking of size, but speaking in terms of a human being being able to manipulate ones data.
In that case he should build his own browser. :-"

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
User avatar
jscher2000
Posts: 11762
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
Contact:

Re: Why does Firefox lz4 bookmarks and sessions?

Post by jscher2000 »

therube wrote:
jscher2000 wrote:"Bulk"??
He's not speaking of size, but speaking in terms of a human being being able to manipulate ones data.
Yes, I found it quite difficult to sort out exactly how to read out the JSON. But what I learned is open sourced here:

https://github.com/jscher2000/scrounger

and live for use here:

https://www.jeffersonscher.com/res/scrounger.html
User avatar
Benjamin Markson
Posts: 397
Joined: November 19th, 2011, 3:57 am
Location: en-GB

Re: Why does Firefox lz4 bookmarks and sessions?

Post by Benjamin Markson »

The naughty part are the mozlz4 files which are an unnecessary, non-standard, hack of lz4 - beyond some messing about with the header it is the same as a regular lz4 compressed file. Security by obscurity won't stop the bad guys but it will inconvenience everybody else.

MozLz4a compression/decompression utility

...additional bulk indeed.

To quickly view and navigate a json file I would suggest this: Online SON Viewer

Ben.
XUL is dead. Long live the Google Chrome Clones.
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Re: Why does Firefox lz4 bookmarks and sessions?

Post by RobertJ »

.
The OP was not looking for support; just wanted to rant.

Locking

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
Locked