1 2#------------------------------------------------------------------------------ 3# $File: mozilla,v 1.10 2019/04/19 00:42:27 christos Exp $ 4# mozilla: file(1) magic for Mozilla XUL fastload files 5# (XUL.mfasl and XPC.mfasl) 6# URL: https://www.mozilla.org/ 7# From: Josh Triplett <josh@freedesktop.org> 8 90 string XPCOM\nMozFASL\r\n\x1A Mozilla XUL fastload data 10# Probably the next magic line contains misspelled "mozLz40\0" 110 string mozLz4a Mozilla lz4 compressed bookmark data 12# From: Joerg Jenderek 13# URL: https://lz4.github.io/lz4/ 14# Reference: https://github.com/avih/dejsonlz4/archive/master.zip/ 15# dejsonlz4-master\src\dejsonlz4.c 16# Note: mostly JSON compressed with a non-standard LZ4 header 17# can be unpacked by dejsonlz4 but not lz4 programm. 180 string mozLz40\0 Mozilla lz4 compressed data 19!:mime application/x-lz4+json 20# mozlz4 extension seems to be used for search/store, while jsonlz4 for bookmarks 21!:ext jsonlz4/mozlz4 22# decomp_size 23>8 ulelong x \b, originally %u bytes 24# lz4 data 25#>12 ubequad x \b, lz4 data 0x%16.16llx 26 27# From: Joerg Jenderek 28# URL: https://en.wikipedia.org/wiki/Firefox_4 29# Reference: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT 30# Note: Most ZIP utilities are able to extract such archives 31# maybe only partly or after some warnings. Example: 32# zip -FF omni.ja --out omni.zip 334 string PK\001\002 Mozilla archive omni.ja 34!:mime application/x-zip 35!:ext ja 36# TODO: 37#>4 use zip-dir-entry 38