Chore: Remove unused GetFocusTopLevelBrowsingContext from EmbedderToConstellationMessage (#37716)

This is a legacy message used only by WebDriver to focus the webview,
when session just created. Right now this is just dead_code which is not
detected by Lint.

Testing: No behaviour change.

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-06-26 17:45:59 +08:00 committed by GitHub
parent 3cda9f2fb2
commit 125df89836
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 17 deletions

View file

@ -1277,17 +1277,6 @@ where
EmbedderToConstellationMessage::Exit => {
self.handle_exit();
},
EmbedderToConstellationMessage::GetFocusTopLevelBrowsingContext(resp_chan) => {
let focused_context = self
.webviews
.focused_webview()
.filter(|(_, webview)| {
self.browsing_contexts
.contains_key(&webview.focused_browsing_context_id)
})
.map(|(id, _)| id);
let _ = resp_chan.send(focused_context);
},
// Perform a navigation previously requested by script, if approved by the embedder.
// If there is already a pending page (self.pending_changes), it will not be overridden;
// However, if the id is not encompassed by another change, it will be.