mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
Register iframes with the devtools (#35874)
Previously, the devtools didn't know about <iframe>s. They either ignored messages coming from iframes or crashed. This reverts https://github.com/servo/servo/pull/34032 and then filters out non-tab globals in the "listTabs" message to the root actor. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
4d73de3dde
commit
48aacc43b7
7 changed files with 34 additions and 13 deletions
|
@ -180,7 +180,11 @@ impl BrowsingContextActor {
|
|||
actors: &mut ActorRegistry,
|
||||
) -> BrowsingContextActor {
|
||||
let name = actors.new_name("target");
|
||||
let DevtoolsPageInfo { title, url } = page_info;
|
||||
let DevtoolsPageInfo {
|
||||
title,
|
||||
url,
|
||||
is_top_level_global,
|
||||
} = page_info;
|
||||
|
||||
let accessibility = AccessibilityActor::new(actors.new_name("accessibility"));
|
||||
|
||||
|
@ -205,7 +209,7 @@ impl BrowsingContextActor {
|
|||
|
||||
let style_sheets = StyleSheetsActor::new(actors.new_name("stylesheets"));
|
||||
|
||||
let tabdesc = TabDescriptorActor::new(actors, name.clone());
|
||||
let tabdesc = TabDescriptorActor::new(actors, name.clone(), is_top_level_global);
|
||||
|
||||
let thread = ThreadActor::new(actors.new_name("thread"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue