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/.
|
|
|
|
|
2015-06-09 02:21:31 +03:00
|
|
|
TEST_DIRS += ['test']
|
|
|
|
|
2014-10-28 02:58:20 +03:00
|
|
|
EXPORTS.mozilla.dom += [
|
2016-03-14 13:56:35 +03:00
|
|
|
'ContentVerifier.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',
|
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',
|
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',
|
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',
|
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',
|
2015-01-20 11:58:00 +03:00
|
|
|
'/netwerk/base',
|
2014-10-28 02:58:20 +03:00
|
|
|
]
|
2015-07-28 02:14:56 +03:00
|
|
|
|
2015-07-28 03:12:58 +03:00
|
|
|
if CONFIG['GNU_CC']:
|
2016-05-14 10:54:55 +03:00
|
|
|
CFLAGS += ['-Wformat-security']
|
|
|
|
CXXFLAGS += ['-Wformat-security']
|