core: Add SandboxType::Application for AIR apps
This commit is contained in:
parent
6053fc586d
commit
41446f07d8
|
@ -65,7 +65,7 @@ fn get_sandbox_type<'gc>(
|
||||||
SandboxType::Remote => "remote",
|
SandboxType::Remote => "remote",
|
||||||
SandboxType::LocalWithFile => "localWithFile",
|
SandboxType::LocalWithFile => "localWithFile",
|
||||||
SandboxType::LocalWithNetwork => "localWithNetwork",
|
SandboxType::LocalWithNetwork => "localWithNetwork",
|
||||||
SandboxType::LocalTrusted => "localTrusted",
|
SandboxType::LocalTrusted | SandboxType::Application => "localTrusted",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.into())
|
.into())
|
||||||
|
|
|
@ -44,6 +44,7 @@ pub fn get_sandbox_type<'gc>(
|
||||||
SandboxType::LocalWithFile => "localWithFile",
|
SandboxType::LocalWithFile => "localWithFile",
|
||||||
SandboxType::LocalWithNetwork => "localWithNetwork",
|
SandboxType::LocalWithNetwork => "localWithNetwork",
|
||||||
SandboxType::LocalTrusted => "localTrusted",
|
SandboxType::LocalTrusted => "localTrusted",
|
||||||
|
SandboxType::Application => "application",
|
||||||
};
|
};
|
||||||
return Ok(AvmString::new_utf8(activation.context.gc_context, sandbox_type).into());
|
return Ok(AvmString::new_utf8(activation.context.gc_context, sandbox_type).into());
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,4 +24,7 @@ pub enum SandboxType {
|
||||||
|
|
||||||
/// The movie is a trusted local movie with access to both filesystem and network.
|
/// The movie is a trusted local movie with access to both filesystem and network.
|
||||||
LocalTrusted,
|
LocalTrusted,
|
||||||
|
|
||||||
|
/// The movie is an AIR application with access to both filesystem and network.
|
||||||
|
Application,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue