servo/components/devtools/actors
atbrakhi 7a801f0ef5
DevTools: Implement support for showing source_content in Debugger > Source panel (#36774)
This patch adds support for showing source_content in `Debugger >
Source` panel. This works by handling the clients `source` messages in
the source actor. These source actors are already advertised as resource
via the watcher, populating the source list. We also update the
`sources` handler in thread actor for future work in thread debugging.

Note: while this PR also adds support for showing worker script
source_content, worker has been broken (See
https://github.com/servo/servo/issues/37012). I was able to confirm the
`content_type` and `source_content` for worker script in logs.


![image](https://github.com/user-attachments/assets/bd53ea29-003a-4b5e-a3e8-6e280afa4671)

Fixes: part of https://github.com/servo/servo/issues/36027

---------

Signed-off-by: atbrakhi <atbrakhi@igalia.com>
2025-06-13 09:31:33 +00:00
..
inspector devtools: Allow highlighting elements from the inspector (#35822) 2025-05-05 10:10:25 +00:00
watcher Process colorSchemeSimulation in TargetConfigurationActor (#36297) 2025-04-06 14:19:42 +00:00
breakpoint.rs DevTools: Fix empty debugger > source panel (#37197) 2025-05-31 06:51:03 +00:00
browsing_context.rs devtools: Fix inspector on Firefox 139 (#37247) 2025-06-04 12:11:53 +00:00
console.rs DevTools: Improve resource_available to handle multiple connections (#36933) 2025-05-09 12:06:33 +00:00
device.rs devtools: update targeted firefox version. (#35792) 2025-03-05 06:08:40 +00:00
framerate.rs devtools: improve ID Naming for better readability and context (#35942) 2025-03-13 07:36:54 +00:00
inspector.rs devtools: Allow highlighting elements from the inspector (#35822) 2025-05-05 10:10:25 +00:00
memory.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
network_event.rs Update handle_network_event to use BrowsingContextActor for HttpRequest (#37263) 2025-06-10 14:11:39 +00:00
object.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
performance.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
preference.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
process.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
reflow.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
root.rs Update handle_network_event to use BrowsingContextActor for HttpRequest (#37263) 2025-06-10 14:11:39 +00:00
source.rs DevTools: Implement support for showing source_content in Debugger > Source panel (#36774) 2025-06-13 09:31:33 +00:00
stylesheets.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
tab.rs devtools: Fix id collisions by using incrementing counters (#35971) 2025-04-01 09:00:40 +00:00
thread.rs DevTools: Implement support for showing source_content in Debugger > Source panel (#36774) 2025-06-13 09:31:33 +00:00
timeline.rs devtools: improve ID Naming for better readability and context (#35942) 2025-03-13 07:36:54 +00:00
watcher.rs DevTools: Fix empty debugger > source panel (#37197) 2025-05-31 06:51:03 +00:00
worker.rs DevTools: Improve resource_available to handle multiple connections (#36933) 2025-05-09 12:06:33 +00:00