Skip to content

Commit

Permalink
Send the message on first webview as well
Browse files Browse the repository at this point in the history
  • Loading branch information
wusyong committed Apr 28, 2024
1 parent b749454 commit bd4c956
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/compositing/compositor.rs
Expand Up @@ -369,6 +369,10 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
},
)
.expect("Infallible with a new WebViewManager");
let msg = ConstellationMsg::WebViewOpened(top_level_browsing_context_id);
if let Err(e) = state.constellation_chan.send(msg) {
warn!("Sending event to constellation failed ({:?}).", e);
}
webviews
.show(top_level_browsing_context_id)
.expect("Infallible due to add");
Expand Down

0 comments on commit bd4c956

Please sign in to comment.