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
+8 -1
View File
@@ -1,4 +1,4 @@
use ely_domain::{ProfileId, WebViewId};
use ely_domain::{ProfileId, SiteOrigin, SitePermissionFeature, WebViewId};
use thiserror::Error;
#[derive(Clone, Debug, Error, Eq, PartialEq)]
@@ -15,6 +15,13 @@ pub enum ServoHostError {
#[error("permission profile mismatch for {webview_id}: expected {expected}, got {actual}")]
PermissionProfileMismatch { webview_id: WebViewId, expected: ProfileId, actual: ProfileId },
#[error("duplicate permission snapshot entry for {profile_id} {origin:?} {feature:?}")]
DuplicatePermissionSnapshotEntry {
profile_id: ProfileId,
origin: SiteOrigin,
feature: SitePermissionFeature,
},
#[error("servo runtime is already started in this process")]
RuntimeAlreadyStarted,