tests: Add avm1/sandbox_type_remote test

Verifies the sandbox type of SWFs loaded through network.
This commit is contained in:
Kamil Jarosz 2024-09-04 12:12:12 +02:00
parent 5da61c8b90
commit 24b0c8b01e
6 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Current sandbox type: localWithNetwork
[network] Current sandbox type: remote
[no network] Current sandbox type: remote

View File

@ -0,0 +1,10 @@
trace("Current sandbox type: " + System.security.sandboxType);
var networkMc = _root.createEmptyMovieClip("network_mc", _root.getNextHighestDepth());
var loader = new MovieClipLoader();
loader.onLoadInit = function(target, status) {
var noNetworkMc = _root.createEmptyMovieClip("no_network_mc", _root.getNextHighestDepth());
noNetworkMc.loadMovie("http://localhost:8000/test-no-network.swf");
}
loader.loadClip("http://localhost:8000/test-network.swf", networkMc);

Binary file not shown.

View File

@ -0,0 +1 @@
num_ticks = 3