mirror of
https://github.com/servo/servo
synced 2026-05-09 00:22:16 +02:00
The CSP crate was incorrectly using the request URL for both checking if policies were matching, as well as reporting that URL. However, the CSP specification uses the current URL to check for policies and the url for reporting a violation. Therefore, set the new current_url field for these requests, leaving the ws scheme URLs as a special case. We also should take redirects into account for navigations (which is only relevant for forms), but LoadData currently has no notion of keeping track of that. Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>