mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update handle_network_event to use BrowsingContextActor for HttpRequest (#37263)
- Add browsing_context_actor_name parameter to handle_network_event - Replace NetworkEventMsg in HttpRequest case with BrowsingContextActor::resource_available - Update DevTools caller in lib.rs to pass browsing_context_actor_name Testing: Fixes: https://github.com/servo/servo/issues/33556#issuecomment-2756544430 --------- Signed-off-by: Uthman Yahaya Baba <uthmanyahayababa@gmail.com>
This commit is contained in:
parent
5c597f98e0
commit
e1ec650cfe
4 changed files with 49 additions and 29 deletions
|
@ -478,18 +478,21 @@ impl DevtoolsInstance {
|
|||
request_id: String,
|
||||
network_event: NetworkEvent,
|
||||
) {
|
||||
let console_actor_name = match self.find_console_actor(pipeline_id, None) {
|
||||
Some(name) => name,
|
||||
None => return,
|
||||
};
|
||||
let netevent_actor_name = self.find_network_event_actor(request_id);
|
||||
|
||||
let Some(id) = self.pipelines.get(&pipeline_id) else {
|
||||
return;
|
||||
};
|
||||
let Some(browsing_context_actor_name) = self.browsing_contexts.get(id) else {
|
||||
return;
|
||||
};
|
||||
|
||||
handle_network_event(
|
||||
Arc::clone(&self.actors),
|
||||
console_actor_name,
|
||||
netevent_actor_name,
|
||||
connections,
|
||||
network_event,
|
||||
browsing_context_actor_name.to_string(),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue