mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
devtools: Use webview_id
as browser_id
(#35956)
* use `webview_id` as `browser_id` Signed-off-by: atbrakhi <atbrakhi@igalia.com> * use correct webview id Signed-off-by: atbrakhi <atbrakhi@igalia.com> * fmt Signed-off-by: atbrakhi <atbrakhi@igalia.com> * review fix Signed-off-by: atbrakhi <atbrakhi@igalia.com> --------- Signed-off-by: atbrakhi <atbrakhi@igalia.com>
This commit is contained in:
parent
4acaa08cf5
commit
2362e4c134
7 changed files with 43 additions and 17 deletions
|
@ -186,6 +186,8 @@ impl WorkerMethods<crate::DomTypeHolder> for Worker {
|
|||
pipeline_id: global.pipeline_id(),
|
||||
};
|
||||
|
||||
let webview_id = global.webview_id().expect("global must have a webview id");
|
||||
|
||||
let browsing_context = global
|
||||
.downcast::<Window>()
|
||||
.map(|w| w.window_proxy().browsing_context_id())
|
||||
|
@ -207,7 +209,7 @@ impl WorkerMethods<crate::DomTypeHolder> for Worker {
|
|||
is_top_level_global: false,
|
||||
};
|
||||
let _ = chan.send(ScriptToDevtoolsControlMsg::NewGlobal(
|
||||
(browsing_context, pipeline_id, Some(worker_id)),
|
||||
(browsing_context, pipeline_id, Some(worker_id), webview_id),
|
||||
devtools_sender.clone(),
|
||||
page_info,
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue