Remove Servo::allow_navigation_request (#35544)

This method is now unused in the new Servo API.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-02-19 15:55:11 +01:00 committed by GitHub
parent b0561c78c7
commit 4a5ff01e06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 12 deletions

View file

@ -33,7 +33,7 @@ use std::sync::{Arc, Mutex};
use std::thread;
pub use base::id::TopLevelBrowsingContextId;
use base::id::{PipelineId, PipelineNamespace, PipelineNamespaceId, WebViewId};
use base::id::{PipelineNamespace, PipelineNamespaceId, WebViewId};
#[cfg(feature = "bluetooth")]
use bluetooth::BluetoothThreadFactory;
#[cfg(feature = "bluetooth")]
@ -693,16 +693,6 @@ impl Servo {
self.compositor.borrow_mut().start_shutting_down();
}
pub fn allow_navigation_response(&self, pipeline_id: PipelineId, allow: bool) {
let msg = ConstellationMsg::AllowNavigationResponse(pipeline_id, allow);
if let Err(e) = self.constellation_proxy.try_send(msg) {
warn!(
"Sending allow navigation to constellation failed ({:?}).",
e
);
}
}
pub fn deinit(&self) {
self.compositor.borrow_mut().deinit();
}

View file

@ -33,7 +33,7 @@ impl ConstellationProxy {
}
}
pub fn try_send(&self, msg: ConstellationMsg) -> Result<(), SendError<ConstellationMsg>> {
fn try_send(&self, msg: ConstellationMsg) -> Result<(), SendError<ConstellationMsg>> {
if self.disconnected() {
return Err(SendError(msg));
}