Pass site permission grants to sidecar snapshots
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
use ely_domain::{ProfileId, SiteOrigin, SitePermissionFeature, TabId, UrlText, WebViewId};
|
||||
use ely_domain::{
|
||||
ProfileId, SiteOrigin, SitePermissionDecision, SitePermissionFeature, TabId, UrlText, WebViewId,
|
||||
};
|
||||
|
||||
use crate::ServoHostError;
|
||||
|
||||
@@ -276,6 +278,16 @@ pub enum PermissionDecision {
|
||||
DenyAlways,
|
||||
}
|
||||
|
||||
impl From<SitePermissionDecision> for PermissionDecision {
|
||||
fn from(decision: SitePermissionDecision) -> Self {
|
||||
match decision {
|
||||
SitePermissionDecision::AllowOnce => Self::AllowOnce,
|
||||
SitePermissionDecision::AllowAlways => Self::AllowAlways,
|
||||
SitePermissionDecision::DenyAlways => Self::DenyAlways,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub trait ServoHost {
|
||||
fn create_webview(
|
||||
&mut self,
|
||||
|
||||
Reference in New Issue
Block a user