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::LocalWithFile => "localWithFile",
|
||||
SandboxType::LocalWithNetwork => "localWithNetwork",
|
||||
SandboxType::LocalTrusted => "localTrusted",
|
||||
SandboxType::LocalTrusted | SandboxType::Application => "localTrusted",
|
||||
},
|
||||
)
|
||||
.into())
|
||||
|
|
|
@ -44,6 +44,7 @@ pub fn get_sandbox_type<'gc>(
|
|||
SandboxType::LocalWithFile => "localWithFile",
|
||||
SandboxType::LocalWithNetwork => "localWithNetwork",
|
||||
SandboxType::LocalTrusted => "localTrusted",
|
||||
SandboxType::Application => "application",
|
||||
};
|
||||
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.
|
||||
LocalTrusted,
|
||||
|
||||
/// The movie is an AIR application with access to both filesystem and network.
|
||||
Application,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue