script: remove redundant ScriptWindowProxies method (#43276)

ScriptWindowProxies's find_window_proxy and get methods are exactly the
same; remove the latter.

Testing:  Existing WPT tests should cover the script_thread.rs change
Fixes: https://github.com/servo/servo/issues/43251

Signed-off-by: Simon Martin <simon@nasilyan.com>
This commit is contained in:
Simon Martin
2026-03-15 09:53:29 +01:00
committed by GitHub
parent 3335d3df58
commit 23a23f41ae
2 changed files with 5 additions and 10 deletions

View File

@@ -3003,7 +3003,9 @@ impl ScriptThread {
Some(window) => {
let mut last = None;
for browsing_context_id in source_with_ancestry.into_iter().rev() {
if let Some(window_proxy) = self.window_proxies.get(browsing_context_id) {
if let Some(window_proxy) =
self.window_proxies.find_window_proxy(browsing_context_id)
{
last = Some(window_proxy);
continue;
}