mirror of
https://github.com/servo/servo
synced 2026-05-11 01:22:19 +02:00
whenever a browsing context loads a new document or otherwise navigates, the constellation sends a new frame tree to the compositor, giving us a nice, relatively central way to detect when we may need to update the graft node in a webview’s AccessKit subtree. but we only want to update that graft node when the pipeline in its *top-level* browsing context has changed, not just when the pipeline in *any* of its browsing contexts has changed. this patch adds a field to the ConstellationWebView that tracks the active top-level pipeline for each webview, allowing us to check when a set_frame_tree_for_webview() call actually involves navigation in the top-level browsing context. Testing: will be covered by accessibility tree tests in a later patch Fixes: part of #4344, extracted from our work in #42338 Signed-off-by: delan azabani <dazabani@igalia.com> Co-authored-by: Alice Boxhall <alice@igalia.com>