From bd15a4fbd803d2a7d73f440efd741d98f7cc72a6 Mon Sep 17 00:00:00 2001 From: webbeef Date: Tue, 18 Jun 2024 04:10:14 -0700 Subject: [PATCH] servoshell: Reset link status when loading a new document (#32518) * Reset link status when loading a new document * Reset hover link when navigating back or forward --- components/script/dom/document.rs | 1 + components/servo/lib.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 5c0fb4e2c7c..5cfa099932f 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1048,6 +1048,7 @@ impl Document { DocumentReadyState::Loading => { if self.window().is_top_level() { self.send_to_embedder(EmbedderMsg::LoadStart); + self.send_to_embedder(EmbedderMsg::Status(None)); } update_with_current_time_ms(&self.dom_loading); }, diff --git a/components/servo/lib.rs b/components/servo/lib.rs index d6b3d38590b..282fee3f67c 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -683,6 +683,10 @@ where if let Err(e) = self.constellation_chan.send(msg) { warn!("Sending navigation to constellation failed ({:?}).", e); } + self.messages_for_embedder.push(( + Some(top_level_browsing_context_id), + EmbedderMsg::Status(None), + )); }, EmbedderEvent::Keyboard(key_event) => {