2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2014-10-28 02:58:20 +03:00
|
|
|
# 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/.
|
|
|
|
|
2017-01-27 16:18:50 +03:00
|
|
|
with Files('*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'DOM: Security')
|
|
|
|
|
2015-06-09 02:21:31 +03:00
|
|
|
TEST_DIRS += ['test']
|
|
|
|
|
2018-10-01 09:09:43 +03:00
|
|
|
DIRS += [ 'featurepolicy' ]
|
|
|
|
|
2014-10-28 02:58:20 +03:00
|
|
|
EXPORTS.mozilla.dom += [
|
2016-03-14 13:56:35 +03:00
|
|
|
'ContentVerifier.h',
|
2018-09-17 18:53:10 +03:00
|
|
|
'CSPEvalChecker.h',
|
2017-06-19 07:59:44 +03:00
|
|
|
'FramingChecker.h',
|
2015-07-20 05:12:11 +03:00
|
|
|
'nsContentSecurityManager.h',
|
2014-10-28 02:58:20 +03:00
|
|
|
'nsCSPContext.h',
|
|
|
|
'nsCSPService.h',
|
|
|
|
'nsCSPUtils.h',
|
2014-10-28 19:44:11 +03:00
|
|
|
'nsMixedContentBlocker.h',
|
2018-05-02 17:36:51 +03:00
|
|
|
'PolicyTokenizer.h',
|
2019-02-12 22:35:32 +03:00
|
|
|
'ReferrerInfo.h',
|
2015-08-13 06:19:11 +03:00
|
|
|
'SRICheck.h',
|
2016-05-04 03:43:33 +03:00
|
|
|
'SRILogHelper.h',
|
2015-08-13 06:19:11 +03:00
|
|
|
'SRIMetadata.h',
|
2014-10-28 02:58:20 +03:00
|
|
|
]
|
|
|
|
|
2014-12-31 02:54:59 +03:00
|
|
|
EXPORTS += [
|
2015-07-20 05:12:11 +03:00
|
|
|
'nsContentSecurityManager.h',
|
Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.
Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.
nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.
MozReview-Commit-ID: ES1JruCtDdX
--HG--
extra : rebase_source : 2ac6c93c49f2862fc0b9e595eb0598cd1ea4bedf
2016-09-27 18:27:00 +03:00
|
|
|
'nsMixedContentBlocker.h',
|
2019-02-12 22:35:32 +03:00
|
|
|
'ReferrerInfo.h',
|
2014-12-31 02:54:59 +03:00
|
|
|
]
|
|
|
|
|
2014-10-28 02:58:20 +03:00
|
|
|
UNIFIED_SOURCES += [
|
2016-03-14 13:56:35 +03:00
|
|
|
'ContentVerifier.cpp',
|
2018-09-17 18:53:10 +03:00
|
|
|
'CSPEvalChecker.cpp',
|
2017-06-19 07:59:44 +03:00
|
|
|
'FramingChecker.cpp',
|
2015-07-20 05:12:11 +03:00
|
|
|
'nsContentSecurityManager.cpp',
|
2014-10-28 02:58:20 +03:00
|
|
|
'nsCSPContext.cpp',
|
|
|
|
'nsCSPParser.cpp',
|
|
|
|
'nsCSPService.cpp',
|
|
|
|
'nsCSPUtils.cpp',
|
2014-10-28 19:44:11 +03:00
|
|
|
'nsMixedContentBlocker.cpp',
|
2018-05-02 17:36:51 +03:00
|
|
|
'PolicyTokenizer.cpp',
|
2019-02-12 22:35:32 +03:00
|
|
|
'ReferrerInfo.cpp',
|
2015-08-13 06:19:11 +03:00
|
|
|
'SRICheck.cpp',
|
|
|
|
'SRIMetadata.cpp',
|
2014-10-28 02:58:20 +03:00
|
|
|
]
|
|
|
|
|
2015-09-09 22:14:27 +03:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-10-28 02:58:20 +03:00
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/caps',
|
2017-06-19 07:59:44 +03:00
|
|
|
'/docshell/base', # for nsDocShell.h
|
2015-01-20 11:58:00 +03:00
|
|
|
'/netwerk/base',
|
2017-11-13 23:25:02 +03:00
|
|
|
'/netwerk/protocol/data', # for nsDataHandler.h
|
2014-10-28 02:58:20 +03:00
|
|
|
]
|
2018-08-24 11:30:24 +03:00
|
|
|
|
|
|
|
include('/tools/fuzzing/libfuzzer-config.mozbuild')
|
|
|
|
|
|
|
|
if CONFIG['FUZZING_INTERFACES']:
|
|
|
|
TEST_DIRS += [
|
|
|
|
'fuzztest'
|
|
|
|
]
|
|
|
|
|