gecko-dev/dom/reporting/moz.build
freyalaluna da762ea8c3 Bug 1391243 - Implementing Report-To Directive r=sefeng,farre
Updated Content Security Policy reporting to align with current W3C reporting standards. Reporting now supports
the usage of the report-to directive, which utilizes a client's response header field to determine where a report
should be sent upon a content security policy violation occurring. Unlike the previous report-uri directive, which
parsed endpoint URIs directly from the response header, report-to utilizes endpoint groups to store the URIs
that will receive the report. This patch handles the reception of a CSP violation, creation of a report from said
violation, and report delivery, while the parsing of the endpoint URIs are handled by D193461. While the deprecated
report-uri directive remains supported, it is now only used for reporting if a client does not specify a report-
to header.

Differential Revision: https://phabricator.services.mozilla.com/D197480
2024-07-23 20:53:53 +00:00

54 lines
1.4 KiB
Python

# -*- 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/.
EXPORTS.mozilla.dom = [
"CrashReport.h",
"CSPViolationReportBody.h",
"DeprecationReportBody.h",
"EndpointForReportChild.h",
"EndpointForReportParent.h",
"FeaturePolicyViolationReportBody.h",
"Report.h",
"ReportBody.h",
"ReportDeliver.h",
"ReportingHeader.h",
"ReportingObserver.h",
"ReportingUtils.h",
"TestingDeprecatedInterface.h",
]
UNIFIED_SOURCES += [
"CrashReport.cpp",
"CSPViolationReportBody.cpp",
"DeprecationReportBody.cpp",
"EndpointForReportChild.cpp",
"EndpointForReportParent.cpp",
"FeaturePolicyViolationReportBody.cpp",
"Report.cpp",
"ReportBody.cpp",
"ReportDeliver.cpp",
"ReportingHeader.cpp",
"ReportingObserver.cpp",
"ReportingUtils.cpp",
"TestingDeprecatedInterface.cpp",
]
IPDL_SOURCES += [
"PEndpointForReport.ipdl",
]
include("/ipc/chromium/chromium-config.mozbuild")
with Files("**"):
BUG_COMPONENT = ("Core", "DOM: Security")
FINAL_LIBRARY = "xul"
MOCHITEST_MANIFESTS += ["tests/mochitest.toml"]
BROWSER_CHROME_MANIFESTS += ["tests/browser.toml"]
TEST_DIRS += ["tests/gtest"]