fix(permissions): make profile snapshots authoritative

This commit is contained in:
2026-07-09 21:56:36 -04:00
parent c28ec2bee8
commit b422ac1631
47 changed files with 1918 additions and 403 deletions
@@ -1,6 +1,19 @@
use crate::services::servo_profile_data::TransientProfileDataDir;
use std::path::PathBuf;
use super::LiveRuntimeWorker;
use crate::services::{servo_live::ServoLiveClient, servo_profile_data::TransientProfileDataDir};
use super::{LiveRuntimeClient, LiveRuntimeWorker};
pub(super) type LiveRuntimeClientFactory =
fn(PathBuf) -> Result<Box<dyn LiveRuntimeClient>, String>;
pub(super) fn new_servo_live_client(
config_dir: PathBuf,
) -> Result<Box<dyn LiveRuntimeClient>, String> {
ServoLiveClient::new(config_dir)
.map(|client| Box::new(client) as Box<dyn LiveRuntimeClient>)
.map_err(|error| error.to_string())
}
pub(super) struct ScopedWorker {
pub(super) worker: LiveRuntimeWorker,