MozillaZine

Why does Firefox lz4 bookmarks and sessions?

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

Post Posted August 21st, 2018, 3:41 am

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.

Grumpus

User avatar
 
Posts: 12019
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Post Posted August 21st, 2018, 4:58 am

Maybe this link will help - Export Bookmarks

therube

User avatar
 
Posts: 19165
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted August 21st, 2018, 9:10 am

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 ;-).
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

jscher2000

User avatar
 
Posts: 10300
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA

Post Posted August 21st, 2018, 9:25 pm

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: 2910
Joined: February 3rd, 2009, 6:29 pm

Post Posted August 22nd, 2018, 6:44 am

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

RobertJ
Moderator

User avatar
 
Posts: 10681
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted August 22nd, 2018, 6:59 am

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 63.0.3 - FF 64b10 - FF 65a - TB 60.3 - Mac OSX 10.13.6
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

therube

User avatar
 
Posts: 19165
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted August 22nd, 2018, 10:54 am

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.
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

RobertJ
Moderator

User avatar
 
Posts: 10681
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted August 22nd, 2018, 10:59 am

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 63.0.3 - FF 64b10 - FF 65a - TB 60.3 - Mac OSX 10.13.6
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

jscher2000

User avatar
 
Posts: 10300
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA

Post Posted August 25th, 2018, 4:21 pm

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

Benjamin Markson

User avatar
 
Posts: 365
Joined: November 19th, 2011, 3:57 am
Location: en-GB

Post Posted August 26th, 2018, 11:34 am

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.

RobertJ
Moderator

User avatar
 
Posts: 10681
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted August 26th, 2018, 11:44 am

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

Locking

.
FF 63.0.3 - FF 64b10 - FF 65a - TB 60.3 - Mac OSX 10.13.6
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

Return to Firefox Support


Who is online

Users browsing this forum: Google [Bot] and 12 guests