Tim van der Lippe
baa18e18af
Support CSP report-only header ( #36623 )
...
This turned out to be a full rabbit hole. The new header
is parsed in the new `parse_csp_list_from_metadata` which
sets `disposition` to `report.
I was testing this with
`script-src-report-only-policy-works-with-external-hash-policy.html`
which was blocking the script incorrectly. Turns out that there
were multiple bugs in the CSP library, as well as a missing
check in `fetch` to report violations.
Additionally, in several locations we were manually reporting csp
violations, instead of the new `global.report_csp_violations`. As
a result of that, they would double report, since the report-only
header would be appended as a policy and now would report twice.
Now, all callsides use `global.report_csp_violations`. As a nice
side-effect, I added the code to set source file information,
since that was already present for the `eval` check, but nowhere
else.
Part of #36437
Requires servo/rust-content-security-policy#5
---------
Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com >
Signed-off-by: Tim van der Lippe <TimvdLippe@users.noreply.github.com >
2025-04-25 19:59:44 +00:00
..
2025-04-23 15:29:01 +00:00
2025-03-30 11:06:30 +00:00
2025-04-21 12:47:06 +00:00
2025-04-07 19:48:05 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-23 07:32:47 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-19 08:33:11 +00:00
2025-04-05 22:13:29 +00:00
2025-03-03 11:26:53 +00:00
2025-04-06 23:26:15 +00:00
2025-03-16 13:46:14 +00:00
2025-03-12 00:02:12 +00:00
2025-04-19 11:49:37 +00:00
2025-03-10 19:43:04 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-03-03 11:26:53 +00:00
2025-02-04 06:58:08 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-13 18:10:04 +00:00
2025-03-12 00:02:12 +00:00
2025-03-16 13:46:14 +00:00
2025-04-23 13:05:41 +00:00
2025-04-05 22:13:29 +00:00
2025-03-25 19:24:47 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-23 07:32:47 +00:00
2025-01-10 08:19:19 +00:00
2025-03-16 13:46:14 +00:00
2025-03-16 13:46:14 +00:00
2025-04-06 23:44:58 +00:00
2025-03-03 11:26:53 +00:00
2025-04-14 13:49:43 +00:00
2025-03-30 11:06:30 +00:00
2025-04-06 23:47:57 +00:00
2025-03-12 00:02:12 +00:00
2025-01-10 08:19:19 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-04-19 11:49:37 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 19:18:07 +00:00
2025-02-20 16:17:45 +00:00
2025-04-01 19:18:07 +00:00
2025-02-20 16:17:45 +00:00
2025-03-05 08:39:11 +00:00
2025-03-05 08:39:11 +00:00
2025-04-01 19:18:07 +00:00
2025-03-19 18:03:09 +00:00
2025-03-05 08:39:11 +00:00
2025-02-20 16:17:45 +00:00
2025-04-01 11:20:46 +00:00
2025-04-01 11:20:46 +00:00
2025-04-15 14:05:13 +00:00
2025-04-02 13:54:42 +00:00
2025-04-06 23:44:58 +00:00
2025-04-23 15:29:01 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-04-19 11:49:37 +00:00
2025-03-31 17:15:48 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 12:17:25 +00:00
2025-03-19 18:03:09 +00:00
2025-04-21 12:47:06 +00:00
2025-02-25 03:58:36 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-04-08 02:33:21 +00:00
2025-04-24 19:03:14 +00:00
2025-04-08 02:33:21 +00:00
2025-04-05 22:13:29 +00:00
2025-04-08 02:33:21 +00:00
2025-04-23 15:29:01 +00:00
2025-04-19 11:49:37 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-05 05:38:24 +00:00
2025-04-23 13:05:41 +00:00
2025-04-23 13:05:41 +00:00
2025-03-03 11:26:53 +00:00
2025-04-08 02:33:21 +00:00
2025-04-02 14:50:56 +00:00
2025-04-08 02:33:21 +00:00
2025-03-03 11:26:53 +00:00
2025-04-08 02:33:21 +00:00
2025-04-19 11:49:37 +00:00
2025-03-03 11:26:53 +00:00
2025-04-21 06:56:40 +00:00
2025-04-13 05:15:07 +00:00
2025-03-31 17:15:48 +00:00
2025-04-06 23:26:15 +00:00
2025-04-13 20:54:59 +00:00
2025-04-17 21:11:25 +00:00
2025-03-12 00:02:12 +00:00
2025-03-19 18:03:09 +00:00
2025-04-11 17:59:03 +00:00
2025-03-10 03:55:38 +00:00
2025-04-13 01:41:39 +00:00
2025-03-03 11:26:53 +00:00
2025-03-31 17:15:48 +00:00
2025-03-13 10:28:11 +00:00
2025-02-23 12:12:21 +00:00
2025-04-11 17:59:03 +00:00
2025-04-02 14:50:56 +00:00
2025-03-16 13:46:14 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-19 18:03:09 +00:00
2025-03-10 19:43:04 +00:00
2025-04-25 19:59:44 +00:00
2025-02-08 08:16:21 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-04-05 22:13:29 +00:00
2025-04-13 05:15:07 +00:00
2025-04-13 05:15:07 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-04-23 07:32:47 +00:00
2025-04-13 07:10:00 +00:00
2025-01-18 21:36:15 +00:00
2025-04-13 07:10:00 +00:00
2025-04-13 07:10:00 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-13 07:10:00 +00:00
2025-04-19 11:49:37 +00:00
2025-04-13 07:10:00 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-03-29 13:09:56 +00:00
2025-03-03 11:26:53 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-04-06 06:27:59 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-04-19 11:49:37 +00:00
2025-04-11 06:21:50 +00:00
2025-03-29 13:09:56 +00:00
2025-03-19 07:57:43 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-04-06 06:27:59 +00:00
2025-01-18 21:36:15 +00:00
2025-04-21 06:56:40 +00:00
2025-04-11 06:21:50 +00:00
2025-04-19 11:49:37 +00:00
2025-04-11 06:32:34 +00:00
2025-01-18 21:36:15 +00:00
2025-04-15 14:05:13 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-03-03 11:26:53 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-04-20 01:46:09 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-04-17 06:41:23 +00:00
2025-01-10 08:19:19 +00:00
2025-04-04 17:06:34 +00:00
2025-03-18 11:09:44 +00:00
2025-03-18 11:09:44 +00:00
2025-01-10 08:19:19 +00:00
2025-04-05 22:13:29 +00:00
2025-04-21 06:56:40 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-15 14:05:13 +00:00
2025-03-03 11:26:53 +00:00
2025-03-10 09:44:16 +00:00
2025-03-12 00:02:12 +00:00
2025-04-05 22:13:29 +00:00
2025-03-03 11:26:53 +00:00
2025-03-16 13:46:14 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-03-19 18:03:09 +00:00
2025-04-23 13:05:41 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-04-14 13:49:43 +00:00
2025-04-05 22:13:29 +00:00
2025-04-19 11:49:37 +00:00
2025-03-03 11:26:53 +00:00
2025-04-11 06:21:50 +00:00
2025-03-03 11:26:53 +00:00
2025-04-19 01:34:13 +00:00
2025-04-01 22:59:50 +00:00
2025-04-24 12:01:51 +00:00
2025-03-03 12:17:25 +00:00
2025-03-12 00:02:12 +00:00
2025-04-13 20:54:59 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-04-23 07:32:47 +00:00
2025-04-23 07:32:47 +00:00
2025-03-16 13:46:14 +00:00
2025-03-12 00:02:12 +00:00
2025-04-01 11:22:00 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 15:36:52 +00:00
2025-03-16 13:46:14 +00:00
2025-03-26 12:12:44 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-03-16 13:46:14 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 11:20:25 +00:00
2025-03-12 00:02:12 +00:00
2025-01-10 08:19:19 +00:00
2025-04-13 01:41:39 +00:00
2025-04-09 16:35:35 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 00:02:12 +00:00
2025-03-12 00:02:12 +00:00
2025-04-06 06:27:59 +00:00
2025-03-12 00:02:12 +00:00
2025-03-17 22:29:41 +00:00
2025-04-23 13:05:41 +00:00
2025-03-17 22:29:41 +00:00
2025-03-16 13:46:14 +00:00
2025-03-17 22:29:41 +00:00
2025-03-28 12:39:42 +00:00
2025-03-17 22:29:41 +00:00
2025-04-05 05:38:24 +00:00
2025-03-31 16:01:16 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 11:26:53 +00:00
2025-04-25 08:49:21 +00:00
2025-04-05 22:13:29 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-15 18:31:46 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-04-05 22:13:29 +00:00
2025-04-05 22:13:29 +00:00
2025-04-21 03:32:21 +00:00
2025-04-05 22:13:29 +00:00
2025-04-05 22:13:29 +00:00
2025-03-29 13:09:56 +00:00
2025-01-10 08:19:19 +00:00
2025-03-16 13:46:14 +00:00
2025-04-05 22:13:29 +00:00
2025-03-12 00:02:12 +00:00
2025-03-12 00:02:12 +00:00
2025-02-23 00:34:51 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-16 13:46:14 +00:00
2025-04-19 11:49:37 +00:00
2025-03-12 00:02:12 +00:00
2025-04-19 11:49:37 +00:00
2025-04-05 22:13:29 +00:00
2025-03-03 11:26:53 +00:00
2025-03-22 19:55:27 +00:00
2025-03-22 19:55:27 +00:00
2025-03-03 11:26:53 +00:00
2025-01-10 08:19:19 +00:00
2025-03-22 19:55:27 +00:00
2025-03-22 19:55:27 +00:00
2025-01-18 21:36:15 +00:00
2025-04-04 19:42:28 +00:00
2025-03-03 11:26:53 +00:00
2025-02-05 12:51:34 +00:00
2025-04-06 06:27:59 +00:00
2025-01-30 11:15:35 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-02-23 00:34:51 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 12:17:25 +00:00
2025-04-05 13:08:56 +00:00
2025-04-05 13:08:56 +00:00
2025-04-21 06:56:40 +00:00
2025-04-21 06:56:40 +00:00
2025-04-21 06:56:40 +00:00
2025-03-12 00:02:12 +00:00
2025-04-15 07:39:26 +00:00
2025-03-03 11:26:53 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-03-27 03:00:08 +00:00
2025-03-29 13:09:56 +00:00
2025-04-03 12:11:55 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 13:09:56 +00:00
2025-02-20 16:17:45 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-23 07:32:47 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 00:02:12 +00:00
2025-03-13 10:28:11 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-23 07:32:47 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-13 20:54:59 +00:00
2025-01-10 08:19:19 +00:00
2025-04-25 13:38:05 +00:00
2025-04-05 22:13:29 +00:00
2025-04-13 20:54:59 +00:00
2025-04-21 12:47:06 +00:00
2025-03-03 11:26:53 +00:00
2025-04-19 01:34:13 +00:00
2025-03-03 11:26:53 +00:00
2025-04-21 03:32:21 +00:00
2025-04-23 13:05:41 +00:00
2025-04-22 06:49:18 +00:00
2025-03-18 11:13:09 +00:00
2025-04-15 17:12:48 +00:00
2025-04-15 17:12:48 +00:00
2025-01-10 08:19:19 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00