Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: dom/base/test/chrome.toml
<!DOCTYPE HTML>
<html>
<head>
<title>Test for structured clone deserialization in a sandbox</title>
</head>
<body>
<script type="application/javascript">
"use strict";
let sandbox = new Cu.Sandbox(window, { sandboxPrototype: window });
let holder = new StructuredCloneHolder("", "", new Blob([]), sandbox);
let result = holder.deserialize(sandbox);
ok(sandbox.Blob.isInstance(result),
"Deserializing into a sandbox with a DOM global as its prototype should work");
</script>
</body>
</html>