mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Issue #2402 - Fill in column in CSP Report.
This commit is contained in:
parent
e21d466d13
commit
b842a1937a
1 changed files with 5 additions and 0 deletions
|
|
@ -1041,6 +1041,11 @@ nsCSPContext::SendReports(
|
|||
report.mCsp_report.mLine_number.Value() = aViolationEventInit.mLineNumber;
|
||||
}
|
||||
|
||||
if (aViolationEventInit.mColumnNumber != 0) {
|
||||
report.mCsp_report.mColumn_number.Construct();
|
||||
report.mCsp_report.mColumn_number.Value() = aViolationEventInit.mColumnNumber;
|
||||
}
|
||||
|
||||
nsString csp_report;
|
||||
if (!report.ToJSON(csp_report)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue