mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
30 lines
808 B
HTML
30 lines
808 B
HTML
|
<!doctype html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<script type="application/javascript">
|
||
|
|
||
|
// Set up the objects for cloning.
|
||
|
function setup() {
|
||
|
window.testObject = { myNumber: 42,
|
||
|
myDomain: window.location.domain };
|
||
|
window.blob = (new MozBlobBuilder()).getBlob('text/plain');
|
||
|
window.fileList = document.getElementById('fileinput').files;
|
||
|
}
|
||
|
|
||
|
// Called by the chrome parent window.
|
||
|
function tryToClone(obj, shouldSucceed, message) {
|
||
|
var success = false;
|
||
|
var sink = window.frames[0];
|
||
|
try { sink.postMessage(obj, '*'); success = true; }
|
||
|
catch (e) { message = message + ' (threw: ' + e.message + ')'; }
|
||
|
is(success, shouldSucceed, message);
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="setup()">
|
||
|
<input id="fileinput" type="file"></input>
|
||
|
<iframe id="sink">
|
||
|
</body>
|
||
|
</html>
|