fix(servo): gate vulnerable RSA private operations

This commit is contained in:
2026-07-10 01:06:48 -04:00
parent 670f7abe60
commit e085174b89
67 changed files with 10535 additions and 21 deletions
+18
View File
@@ -15,6 +15,8 @@ use serde_json::{Value, json};
#[cfg(all(feature = "hardware-render", target_os = "macos"))]
#[path = "sidecar/mach_receiver.rs"]
mod mach_receiver;
#[path = "sidecar/pages.rs"]
mod pages;
#[path = "sidecar/support.rs"]
mod support;
@@ -160,6 +162,22 @@ fn live_sidecar_delivers_a_valid_white_page() -> Result<(), Box<dyn Error>> {
Ok(())
}
#[test]
fn live_sidecar_gates_rsa_private_operations() -> Result<(), Box<dyn Error>> {
let server = TestServer::start()?;
let root = TestDirectory::new()?;
let mut sidecar = Sidecar::spawn(root.path())?;
sidecar.ensure_and_wait(
&ProfileId::new(),
&server.url("/rsa-private-operations"),
"rsa-private-operations-gated",
)?;
sidecar.shutdown()?;
Ok(())
}
#[test]
fn live_sidecar_rejects_an_incompatible_protocol() -> Result<(), Box<dyn Error>> {
let root = TestDirectory::new()?;