mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 20:57:43 -10:00
Modern compression algorithms are better than zlib both in terms of space and time. The jar format, used for e.g. omni.ja, addons, etc. could benefit from using such modern algorithms, but the format only allows a limited set of compression algorithms. However, the format in itself is flexible, in that it can be extended with arbitrary compression algorithms. This breaks compatibility with programs like unzip, obviously, but we've never promised the files shipped with Firefox will always remain "valid" zips (which they already aren't, but they currently work with most zip readers). With this change, we allow those archives to contain brotli streams, using an arbitrary large value for the compression type in the Zip local file header. This only allows to read such archives, but not to produce them, and, for now, support for brotli streams is kept Nightly-only, until everything is pieced together and we're happy to ship it.
51 lines
1.1 KiB
INI
51 lines
1.1 KiB
INI
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
with Files('**'):
|
|
BUG_COMPONENT = ('Core', 'Networking: JAR')
|
|
|
|
if CONFIG['MOZ_ZIPWRITER']:
|
|
DIRS += ['zipwriter']
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome/chrome.ini']
|
|
|
|
MOCHITEST_MANIFESTS += ['test/mochitest/mochitest.ini']
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
|
|
|
|
XPIDL_SOURCES += [
|
|
'nsIJARChannel.idl',
|
|
'nsIJARProtocolHandler.idl',
|
|
'nsIJARURI.idl',
|
|
'nsIZipReader.idl',
|
|
]
|
|
|
|
XPIDL_MODULE = 'jar'
|
|
|
|
EXPORTS += [
|
|
'nsJARURI.h',
|
|
'nsZipArchive.h',
|
|
'zipstruct.h',
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
'nsJAR.cpp',
|
|
'nsJARChannel.cpp',
|
|
'nsJARFactory.cpp',
|
|
'nsJARInputStream.cpp',
|
|
'nsJARProtocolHandler.cpp',
|
|
'nsJARURI.cpp',
|
|
'nsZipArchive.cpp',
|
|
]
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
LOCAL_INCLUDES += [
|
|
'/modules/brotli/dec',
|
|
]
|