mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
0d460e3432
This is split from the previous changeset since if we include dom/ the file size is too large for phabricator to handle. This is an autogenerated commit to handle scripts loading mochitest harness files, in the simple case where the script src is on the same line as the tag. This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170 using the `--part 2` argument. Differential Revision: https://phabricator.services.mozilla.com/D27457 --HG-- extra : moz-landing-system : lando
36 lines
1002 B
HTML
36 lines
1002 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Test for Bug 341604</title>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
<script src="/tests/SimpleTest/EventUtils.js"></script>
|
|
</head>
|
|
<script type="application/javascript">
|
|
window.addEventListener("message", receiveMessage);
|
|
|
|
function receiveMessage(event) {
|
|
// this message is part of if_11's test
|
|
if (event.data.test == 'if_11') {
|
|
doIf11TestPart2();
|
|
return;
|
|
}
|
|
}
|
|
|
|
function ok_wrapper(result, msg) {
|
|
window.opener.postMessage({ok: result, desc: msg}, "*");
|
|
window.close();
|
|
}
|
|
|
|
function doIf11TestPart2() {
|
|
var if_11 = document.getElementById('if_11');
|
|
if_11.sandbox = 'allow-scripts allow-same-origin';
|
|
// window.history is no longer cross-origin accessible in gecko.
|
|
SpecialPowers.wrap(if_11).contentWindow.history.back();
|
|
}
|
|
</script>
|
|
<body>
|
|
<iframe sandbox='allow-scripts' id="if_11" src="file_iframe_sandbox_d_if11.html" height="10" width="10"></iframe>
|
|
</body>
|
|
</html>
|