1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 03:23:50 +00:00

initial sandbox implementation for mac app store builds

This commit is contained in:
John Harrington
2025-11-18 16:20:12 -07:00
parent 9efc31534b
commit f40233fce4
14 changed files with 601 additions and 8 deletions

View File

@@ -1181,6 +1181,13 @@ pub mod chromium_importer {
.map(|logins| logins.into_iter().map(LoginImportResult::from).collect())
.map_err(|e| napi::Error::from_reason(e.to_string()))
}
#[cfg_attr(all(target_os = "macos", feature = "sandbox"), napi)]
#[cfg(all(target_os = "macos", feature = "sandbox"))]
pub fn request_browser_access(browser: String) -> napi::Result<()> {
chromium_importer::chromium::request_browser_access(&browser)
.map_err(|e| napi::Error::from_reason(e.to_string()))
}
}
#[napi]