servo/components
Tim van der Lippe 8edc6ba1b2
Return correct source position for element CSP violations (#37970)
The scripted_caller only has information if the context is coming
from a script. If an element fetch listener processes CSP
violations, then this information doesn't exist. Instead, we should
use the global URL and the line number. WPT tests don't appear
to expect a column number, as they are all zero. Not all elements
are updated, as I am not actually sure all of them need it.

The source position remains an Option, since there are also code
paths that don't correspond to element or script sources. Maybe
in the future we can always determine the source position, but
let's take small steps towards that.

Part of #4577

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
2025-07-11 08:42:51 +00:00
..
allocator Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
background_hang_monitor bhm: Add backtrace demangling (#37819) 2025-07-02 13:39:36 +00:00
bluetooth Replace bluetooth Readme with corrected version from devices repository (#36429) 2025-04-10 18:02:45 +00:00
canvas canvas: Properly bound all image pattern axis by inserting clip (#37668) 2025-07-11 06:49:09 +00:00
compositing Move webdriver actions commands to servoshell (#37669) 2025-07-04 16:29:38 +00:00
config refactor(webdriver): move webdriver_port option to servoshell pref (#37867) 2025-07-04 07:04:49 +00:00
constellation Chore: cleanup unused EmbedderMsg::WebDriverCommand (#37979) 2025-07-10 12:54:46 +00:00
deny_public_fields
devtools Devtools: send error replies instead of ignoring messages (#37686) 2025-07-07 12:40:44 +00:00
dom_struct
domobject_derive
fonts Clean up unused dependencies / features and centralize more feature selection into root Cargo.toml (#37720) 2025-06-26 11:56:48 +00:00
geometry
hyper_serde
jstraceable_derive
layout layout: Lay out grid items with a consistent tentative block size (#37981) 2025-07-10 19:46:21 +00:00
malloc_size_of Clean up unused dependencies / features and centralize more feature selection into root Cargo.toml (#37720) 2025-06-26 11:56:48 +00:00
media compositing: Combine webrender_traits and compositing_traits (#36372) 2025-04-06 17:34:18 +00:00
metrics Removing unused dependencies in crates. (#37096) 2025-05-23 12:58:00 +00:00
net Implement cookie expiry date parsing algorithm (#37715) 2025-07-11 05:18:11 +00:00
pixels add support for apng and webp animated image decoding (#37637) 2025-07-10 08:54:16 +00:00
profile Profile: Resident Segments was not correctly parsing /proc/self/smaps as the regexp did not work anymore. (#37549) 2025-06-19 09:19:31 +00:00
rand
range
script Return correct source position for element CSP violations (#37970) 2025-07-11 08:42:51 +00:00
script_bindings WebGL2: support TexImage3D (#37718) 2025-07-09 14:22:03 +00:00
servo Chore: cleanup unused EmbedderMsg::WebDriverCommand (#37979) 2025-07-10 12:54:46 +00:00
servo_tracing [tracing] Add convenience macro for function tracing (#36573) 2025-04-22 19:58:20 +00:00
shared [IndexedDB] Key ranges implementation (#37684) 2025-07-10 18:33:23 +00:00
timers script: Allow reflows that do not produce display lists (#37186) 2025-06-12 19:25:04 +00:00
url script: complete resolve_module_specifier (#37552) 2025-06-21 06:17:27 +00:00
webdriver_server Webdriver: limit tick action duration to ECMA maximum safe integer (#37977) 2025-07-11 03:23:49 +00:00
webgl WebGL2: support TexImage3D (#37718) 2025-07-09 14:22:03 +00:00
webgpu Add a basic caching mechanism for ImageKeys. (#37369) 2025-07-03 13:16:43 +00:00
webxr Removing unused dependencies in crates. (#37096) 2025-05-23 12:58:00 +00:00