mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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:
parent
b0561c78c7
commit
4a5ff01e06
2 changed files with 2 additions and 12 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue