Skip to content

Commit

Permalink
Add comment about not sending WebViewBlurred on close
Browse files Browse the repository at this point in the history
  • Loading branch information
delan committed Mar 8, 2024
1 parent c5eb4f9 commit 78e3c91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/constellation/constellation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3104,6 +3104,9 @@ where
self.webviews.remove(top_level_browsing_context_id);
self.compositor_proxy
.send(CompositorMsg::RemoveWebView(top_level_browsing_context_id));

// Notify the embedder that the webview was closed, but don’t notify that it was blurred.
// Let the embedder deduce that, so it can focus another webview if it wants.
self.embedder_proxy.send((
Some(top_level_browsing_context_id),
EmbedderMsg::WebViewClosed(top_level_browsing_context_id),
Expand Down

0 comments on commit 78e3c91

Please sign in to comment.