fix(permissions): make profile snapshots authoritative
This commit is contained in:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user