diff options
author | Josh Matthews <josh@joshmatthews.net> | 2025-04-27 16:44:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-27 20:44:52 +0000 |
commit | 2892e7924dd7e18c966ff957d68f0aad308ff19a (patch) | |
tree | d7ec48e886f36656ac1d659e85f8cfad8aba90a0 /components | |
parent | 085ad9ea48c045cbdddad1d29cc021a8d56a94b9 (diff) | |
download | servo-2892e7924dd7e18c966ff957d68f0aad308ff19a.tar.gz servo-2892e7924dd7e18c966ff957d68f0aad308ff19a.zip |
constellation: Move log inside relevant conditional. (#36713)
This message is logged when we don't actually act on it and is confusing
as a result. By moving it inside the conditional, we only log the
message when we actually notify webdriver that the load is complete.
Testing: Manual testing.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components')
-rw-r--r-- | components/constellation/constellation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 05081fe0ba7..2175028a81b 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -3744,8 +3744,8 @@ where fn handle_load_complete_msg(&mut self, webview_id: WebViewId, pipeline_id: PipelineId) { let mut webdriver_reset = false; if let Some((expected_pipeline_id, ref reply_chan)) = self.webdriver.load_channel { - debug!("Sending load for {:?} to WebDriver", expected_pipeline_id); if expected_pipeline_id == pipeline_id { + debug!("Sending load for {:?} to WebDriver", expected_pipeline_id); let _ = reply_chan.send(WebDriverLoadStatus::Complete); webdriver_reset = true; } |